|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.android.map.Layer com.esri.android.map.DynamicLayer com.esri.android.map.ags.ArcGISImageServiceLayer
public class ArcGISImageServiceLayer
The ArcGISImageServiceLayer class allows you to work with an image service resource that is exposed by the ArcGIS Server REST API (see the system requirements document for supported versions of ArcGIS Server). A image service generates map images on the server each time a request comes in.
The following are examples of how you might work with the ArcGISImageServiceLayer class. The code will add a map
service from ArcGIS Online using map services that are dynamically retrieved. When working with dynamic services the
ArcGISImageServiceLayer class must be used. This example code shows you how to connect to ArcGIS Online, but you can
easily update the code to point to your own ArcGIS Server REST end points. Java usage:
//ArcGISImageServiceLayer class is used to define the Layer that is added to the
//MapView object.
MapView mv = new MapView(this);
mv.addLayer(new ArcGISImageServiceLayer(
"http://myserver/arcgis/rest/services/MyImage/ImageServer",null));
setContentView(mv);
Constructor Summary | |
---|---|
ArcGISImageServiceLayer(String url,
ImageServiceParameters options)
This constructor is used if you're instantiating the ArcGISImageServiceLayer. |
|
ArcGISImageServiceLayer(String url,
ImageServiceParameters options,
UserCredentials credentials)
This constructor is used if you're instantiating the ArcGISImageServiceLayer (see the class description for an example of this usage). |
|
ArcGISImageServiceLayer(String url,
ImageServiceParameters options,
UserCredentials credentials,
boolean initLayer)
This constructor is used if you instantiate an ArcGISImageServiceLayer object. |
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. |
String |
getCopyrightText()
Gets the copyright information of the ArcGISImageServiceLayer. |
ImageServiceParameters.IMAGE_FORMAT |
getImageFormat()
Gets the image format. |
ImageServiceParameters.RSP |
getInterpolation()
Gets the interpolation method. |
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. |
void |
setBandIds(int[] bandIds)
Sets the R,G,B of the exported image to the appropriate ImageService Band ID. |
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. |
Methods inherited from class com.esri.android.map.DynamicLayer |
---|
cancelPendingTasks, getBrightness, getContrast, getGamma, recycle, refresh, setBrightness, setContrast, setGamma |
Methods inherited from class com.esri.android.map.Layer |
---|
getCredentials, getDefaultSpatialReference, getExtent, getFullExtent, getHeight, getID, getName, getOpacity, getPopupInfo, getResolution, getSpatialReference, getTitle, getUrl, getUrlHashCode, getWidth, isInitialized, isRecycled, isVisible, isWebMapBaselayer, reinitializeLayer, setName, setOnStatusChangedListener, setOpacity, setPopupInfos, setVisible |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArcGISImageServiceLayer(String url, ImageServiceParameters options)
url
- the URL of the dynamic map service.options
- optional parameters.public ArcGISImageServiceLayer(String url, ImageServiceParameters options, UserCredentials credentials, boolean initLayer)
url
- the URL of the dynamic map service.options
- optional parameters.initLayer
- set to true to initialize the the layer, or the layer will not initialized.public ArcGISImageServiceLayer(String url, ImageServiceParameters options, UserCredentials credentials)
url
- the URL of the image map service.options
- optional parameters.Method Detail |
---|
public void setBandIds(int[] bandIds)
DynamicLayer.refresh()
to reflect changes of the band ids.
bandIds
- the new band ids.public int[] getBandIds()
public void setCompressionQuality(int compressionQuality)
DynamicLayer.refresh()
to reflect changes of the compression quality.
compressionQuality
- A value from 0 to 100. 100 is best quality but largest in file size.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()
public double getPixelSizeX()
public double getPixelSizeY()
public ImageServiceParameters.PIXEL_TYPE getPixelType()
public int getBandCount()
public String getCopyrightText()
public ImageServiceParameters getOptions()
ArcGISImageServiceLayer(String, ImageServiceParameters)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |