|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.map.Layer com.esri.map.DynamicLayer com.esri.map.ArcGISImageServiceLayer
public class ArcGISImageServiceLayer
A layer that provides provides access to raster data.
Allows you to work with an Image Service resource exposed by the ArcGIS Server REST API (available in
ArcGIS Server 9.3 and above). Image Service is optimized for delivering raw or finished imagery that can be RGB,
panchromatic, multispectral, or elevation data stored in a geodatabase or file system.
More information can be found at http://resources.arcgis.com/en/help/rest/apiref/imageserver.html
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.esri.map.Layer |
---|
Layer.LayerStatus |
Field Summary |
---|
Fields inherited from class com.esri.map.DynamicLayer |
---|
_nativeCreateSpatialRef |
Fields inherited from class com.esri.map.Layer |
---|
_credentials, _progress, _resolutionList, serviceInfo |
Constructor Summary | |
---|---|
ArcGISImageServiceLayer()
Default constructor. |
|
ArcGISImageServiceLayer(String url)
Constructs the image map service layer with a URL to the service end point. |
|
ArcGISImageServiceLayer(String url,
ImageServiceParameters options)
Constructs a layer from a URL with provided options. |
|
ArcGISImageServiceLayer(String url,
UserCredentials credentials)
Constructs a layer from a URL and credentials for the secure service. |
|
ArcGISImageServiceLayer(String url,
UserCredentials credentials,
ImageServiceParameters options)
|
Method Summary | |
---|---|
int |
getBandCount()
Gets the number of bands in the ArcGISImageServiceLayer. |
int[] |
getBandIds()
Gets ImageService Band IDs. |
int |
getCompressionQuality()
Gets the compression quality of the exported image. |
ImageServiceParameters.IMAGE_FORMAT |
getImageFormat()
Gets the image format. |
ImageServiceParameters.RSP |
getInterpolation()
Gets the interpolation method. |
LayerLegendInfoCollection |
getLegend()
|
double[] |
getMaxValues()
Returns the maximum pixel values of all bands. |
double[] |
getMeanValues()
Returns the mean pixel values of all bands. |
double[] |
getMinValues()
Returns the minimum pixel values of all bands. |
MosaicRule |
getMosaicRule()
Gets the mosaic rule of the layer. |
ImageServiceParameters |
getOptions()
Gets the options of the ArcGISImageServiceLayer. |
double |
getPixelSizeX()
Gets the size of pixel in X direction. |
double |
getPixelSizeY()
Gets the size of pixel in Y direction. |
ImageServiceParameters.PIXEL_TYPE |
getPixelType()
Gets the pixel type of the image service. |
RasterFunction |
getRenderingRule()
Gets the rendering rule of the layer. |
double[] |
getStdvValues()
Returns the standard deviation pixel values of all bands. |
TimeExtent |
getTimeExtent()
Gets the valid TimeExtent object for the Layer or null if this service does not support time based queries. |
TimeInfo |
getTimeInfo()
Get all the time awareness information for this layer. |
TimeExtent |
getTimeInterval()
Get the current date/time range that this layer is filtered by. |
protected void |
init(boolean isVisible,
int[] visibleLayers,
String title,
float opacity)
This method is called only when composing a Map from a Web Map. |
protected void |
internalInit()
|
boolean |
isTimeAware()
Indicates whether or not this image service layer belongs to a service which is time aware. |
void |
setBandIds(int[] bandIds)
If there are multiple bands, you can specify a single band to export, or you can change the band combination (red, green, blue) by specifying the band number. |
void |
setCompressionQuality(int compressionQuality)
Sets the compression quality of the exported image. |
void |
setImageFormat(ImageServiceParameters.IMAGE_FORMAT format)
Sets the image format. |
void |
setInterpolation(ImageServiceParameters.RSP interpolation)
Sets the interpolation method. |
void |
setMosaicRule(MosaicRule mosaicRule)
Sets the mosaic rule of the layer to the specified value. |
void |
setRenderingRule(RasterFunction renderingRule)
Sets the rendering rule of the layer to the given value. |
void |
setTimeInterval(TimeExtent timeInterval)
Set the current date/time range that this layer will be filtered by. |
Methods inherited from class com.esri.map.DynamicLayer |
---|
createNativeLayer, getCenterMeridian, getDefaultSpatialReference, getResolution, initializeNativeLayer, isCrossesDateline, refresh, requestImage, setUrl, startlisteningToMapEvents, stopListeningToMapEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArcGISImageServiceLayer()
public ArcGISImageServiceLayer(String url, UserCredentials credentials, ImageServiceParameters options)
public ArcGISImageServiceLayer(String url)
url
- the URL to the service.public ArcGISImageServiceLayer(String url, UserCredentials credentials)
url
- the URLcredentials
- the credentialspublic ArcGISImageServiceLayer(String url, ImageServiceParameters options)
url
- the URLoptions
- image service optionscredentials
- the credentialsMethod Detail |
---|
public double getPixelSizeX()
public double getPixelSizeY()
public ImageServiceParameters.PIXEL_TYPE getPixelType()
public double[] getMinValues()
public double[] getMaxValues()
public double[] getMeanValues()
public double[] getStdvValues()
public int getBandCount()
public ImageServiceParameters getOptions()
ArcGISImageServiceLayer(String, ImageServiceParameters)
public void setBandIds(int[] bandIds)
bandIds
- the new band ids.public int[] getBandIds()
public void setCompressionQuality(int compressionQuality)
compressionQuality
- A value from 0 to 100. 100 is best quality but largest in file size.
DynamicLayer.refresh()
to reflect changes of the compression quality.public int getCompressionQuality()
public void setImageFormat(ImageServiceParameters.IMAGE_FORMAT format)
DynamicLayer.refresh()
to reflect changes of the format.
format
- the new image format.public ImageServiceParameters.IMAGE_FORMAT getImageFormat()
public void setInterpolation(ImageServiceParameters.RSP interpolation)
DynamicLayer.refresh()
to reflect changes of
the interpolation value.
interpolation
- the new interpolation value.public ImageServiceParameters.RSP getInterpolation()
public void setMosaicRule(MosaicRule mosaicRule)
DynamicLayer.refresh()
to reflect changes of the MosaicRule.
mosaicRule
- the mosaic rule.public MosaicRule getMosaicRule()
public void setRenderingRule(RasterFunction renderingRule)
DynamicLayer.refresh()
to reflect changes of
the rendering rule.
renderingRule
- the new rendering rule.public RasterFunction getRenderingRule()
protected void internalInit()
internalInit
in class Layer
public LayerLegendInfoCollection getLegend()
getLegend
in class Layer
protected void init(boolean isVisible, int[] visibleLayers, String title, float opacity)
Layer
init
in class Layer
public boolean isTimeAware()
isTimeAware
in interface TimeAwareLayer
public TimeExtent getTimeExtent()
TimeAwareLayer
getTimeExtent
in interface TimeAwareLayer
public TimeExtent getTimeInterval()
TimeAwareLayer
getTimeInterval
in interface TimeAwareLayer
public void setTimeInterval(TimeExtent timeInterval)
TimeAwareLayer
setTimeInterval
in interface TimeAwareLayer
timeInterval
- the new date/time rangepublic TimeInfo getTimeInfo()
TimeAwareLayer
getTimeInfo
in interface TimeAwareLayer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |