com.esri.arcgis.carto
Class RasterServiceHelper

java.lang.Object
  extended by com.esri.arcgis.carto.RasterServiceHelper
All Implemented Interfaces:
IRasterServiceHelper, IRasterServiceHelper2, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class RasterServiceHelper
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IRasterServiceHelper, IRasterServiceHelper2

A Web Service helper class.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Constructor Summary
RasterServiceHelper()
          Constructs a RasterServiceHelper using ArcGIS Engine.
RasterServiceHelper(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterServiceHelper theRasterServiceHelper = (RasterServiceHelper) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 IPropertySet getLayerPropertiesFromURL(String uRL)
          Gets the WMS layer names from the URL.
 int hashCode()
          the hashcode for this object
 IRasterDataset open(IName pName)
          Creates a raster dataset given a WCS or Image Service name object.
 IRasterDataset openFromFile(String urlString)
          Creates a raster dataset given an Image Service Reference file.
 IRasterDataset openFromURL(String uRL, String rasterTypeName, IPropertySet pWMSParameters)
          Opens the image service referenced by the URL as a raster dataset.
 IRasterDataset openWMSConnection(IName pName, IPropertySet pConnectionProperties, IPropertySet pWMSParameters)
          Creates a raster dataset given a WMS/WCS or Image Service name object, connection properties and other properties like pixel size etc.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

RasterServiceHelper

public RasterServiceHelper()
                    throws IOException,
                           UnknownHostException
Constructs a RasterServiceHelper using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

RasterServiceHelper

public RasterServiceHelper(Object obj)
                    throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterServiceHelper theRasterServiceHelper = (RasterServiceHelper) obj;

Construct a RasterServiceHelper using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to RasterServiceHelper.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

open

public IRasterDataset open(IName pName)
                    throws IOException,
                           AutomationException
Creates a raster dataset given a WCS or Image Service name object.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
open in interface IRasterServiceHelper
Parameters:
pName - A reference to a com.esri.arcgis.system.IName (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRasterDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

openFromFile

public IRasterDataset openFromFile(String urlString)
                            throws IOException,
                                   AutomationException
Creates a raster dataset given an Image Service Reference file.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
openFromFile in interface IRasterServiceHelper
Parameters:
urlString - The urlString (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRasterDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

openWMSConnection

public IRasterDataset openWMSConnection(IName pName,
                                        IPropertySet pConnectionProperties,
                                        IPropertySet pWMSParameters)
                                 throws IOException,
                                        AutomationException
Creates a raster dataset given a WMS/WCS or Image Service name object, connection properties and other properties like pixel size etc.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
openWMSConnection in interface IRasterServiceHelper2
Parameters:
pName - A reference to a com.esri.arcgis.system.IName (in)
pConnectionProperties - A reference to a com.esri.arcgis.system.IPropertySet (in)
pWMSParameters - A reference to a com.esri.arcgis.system.IPropertySet (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRasterDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

openFromURL

public IRasterDataset openFromURL(String uRL,
                                  String rasterTypeName,
                                  IPropertySet pWMSParameters)
                           throws IOException,
                                  AutomationException
Opens the image service referenced by the URL as a raster dataset.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
openFromURL in interface IRasterServiceHelper2
Parameters:
uRL - The uRL (in)
rasterTypeName - The rasterTypeName (in)
pWMSParameters - A reference to a com.esri.arcgis.system.IPropertySet (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRasterDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLayerPropertiesFromURL

public IPropertySet getLayerPropertiesFromURL(String uRL)
                                       throws IOException,
                                              AutomationException
Gets the WMS layer names from the URL.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getLayerPropertiesFromURL in interface IRasterServiceHelper2
Parameters:
uRL - The uRL (in)
Returns:
A reference to a com.esri.arcgis.system.IPropertySet
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.