AGSImageServiceLayer Class Reference
Description
An instance of this class allows you to display maps from an image service of ArcGIS Server. For example: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/World/MODIS/ImageServer.
In a Model-View-Controller architecture, this object represents the Model. The corresponding View object, AGSDynamicLayerView
, is created when this layer is added to the map.
- Defined in:
- AGSImageServiceLayer.h (ArcGIS library)
- Since:
- 1.0
List of all members.
Member Function Documentation
This method tells the layer that the data has changed and it should be redrawn.
- Since:
- 1.0
Implemented in AGSGraphicsLayer.
Get new map image. The exportDelegate is notified when the image is exported. This method must be implemented by subclasses.
- Parameters:
-
| params | The input parameters for the export image operation. |
- Since:
- 1.0
+ (id) imageServiceLayerWithURL: |
|
(NSURL *) |
url |
|
|
A method to get an initalized and autoreleased layer using a URL to an ArcGIS Server image service.
- Parameters:
-
| url | URL pointing to an image service. |
- Returns:
- A new, autoreleased, image service layer.
- Since:
- 1.0
+ (id) imageServiceLayerWithURL: |
|
(NSURL *) |
url |
credential: |
|
(AGSCredential *) |
cred | |
|
|
| | |
A method to get an initalized and autoreleased layer using a credential and URL to an ArcGIS Server image service.
- Parameters:
-
| url | URL pointing to an image service. |
| cred | AGSCredential used to access secure service. |
- Returns:
- A new, autoreleased, image service layer.
- Since:
- 1.0
- (id) initWithURL: |
|
(NSURL *) |
url |
|
|
Initalize this layer with a URL to an ArcGIS Server image service.
- Parameters:
-
| url | URL pointing to an image service. |
- Returns:
- A new, initialized, image serivce layer.
- Since:
- 1.0
- (id) initWithURL: |
|
(NSURL *) |
url |
credential: |
|
(AGSCredential *) |
cred | |
|
|
| | |
Initalize this layer with a credential and URL to an ArcGIS Server image service.
- Parameters:
-
| url | URL pointing to an image service. |
| cred | AGSCredential used to access secure service. |
- Returns:
- A new, initialized, image serivce layer.
- Since:
- 1.0
- (void) layerDidFailToLoad: |
|
(NSError *) |
error |
|
|
Method to notify the delegate that a layer failed to load. This method will also post a "LayerFailedToLoad" notification that can be observed by the developer.
- Parameters:
-
| error | Information regarding the cause of the layer failing to load. |
- Since:
- 1.0
Method to notify the delegate that a layer successfully loaded. This method will also post a "LayerDidLoad" notification that can be observed by the developer.
- Since:
- 1.0
- (void) resubmitWithURL: |
|
(NSURL *) |
url |
credential: |
|
(AGSCredential *) |
cred | |
|
|
| | |
If the layer failed to load with a specific url and credential, you can resubmit it with a new URL and credential. This function does nothing if the layer is already loaded. This function also does nothing if the layer is currently trying to load.
- Parameters:
-
| url | URL pointing to an image service. |
| cred | AGSCredential used to access the secured resource. |
- Since:
- 1.0
Property Documentation
- (NSArray*) bandIds [read, write, assign] |
The IDs of bands which are to be included in the map. The map can contain 1 band for gray scale images, or 3 bands for color images. The band IDs are numbered from 0 to the AGSImageServiceInfo
bandCount
property - 1.
- Since:
- 1.0
- (NSUInteger*) compressionQuality [read, write, assign] |
The compression quality of maps generated by the image service. The value can be between 0 - 100.
- A value of 0 means maximum compression (lowest quality)
- A value of 100 means minimum compression (highest quality)
- Since:
- 1.0
The credential to be used to access secured resources.
- Since:
- 1.0
Reimplemented from <AGSSecuredResource>.
Delegate to be notified when the layer is loaded or fails to load. When this layer is loaded, a corresponding AGSLayerView
object is automatically set as the delegate. This delegate must not be replaced.
- Since:
- 1.0
- (NSError*) error [read, retain, inherited] |
Information about the error associated with a layer.
- Since:
- 1.0
Delegate to be notified of events related to exporting the map image. When this layer is loaded, a corresponding View object is automatically set as the exportDelegate
which should not be replaced.
- Since:
- 1.0
- (AGSEnvelope*) fullEnvelope [read, assign, inherited] |
Information about the image service.
- Since:
- 1.0
- (AGSEnvelope*) initialEnvelope [read, assign, inherited] |
- (BOOL) loaded [read, assign, inherited] |
A property indicating whether the layer is loaded and ready to be used. When the layer is loaded, the value becomes YES
, and layer properties can be accessed.
- Since:
- 1.0
- See also:
- AGSLayerDelegate
- (double) maxScale [read, assign, inherited] |
- (double) minScale [read, assign, inherited] |
- (BOOL) timeAware [read, assign, inherited] |
A property indicating whether the layer is time-aware.
- Since:
- 1.0
- (AGSUnits) units [read, write, assign, inherited] |
The units the layer is in. Possible values include
AGSUnitsCentimeters
AGSUnitsDecimalDegrees
AGSUnitsDecimeters
AGSUnitsFeet
AGSUnitsInches
AGSUnitsKilometers
AGSUnitsMeters
AGSUnitsMiles
AGSUnitsMillimeters
AGSUnitsNauticalMiles
AGSUnitsPoints
AGSUnitsUnknown
AGSUnitsYards
- Since:
- 1.0
- (NSURL*) URL [read, retain] |
URL of the image service resource in the ArcGIS Server REST Services Directory.
- Since:
- 1.0