AGSTileInfo Class Reference


Description

This object represents the tiling scheme used by a cached map service. For example, ArcGIS Server cached map service, Bing Maps, etc. The tiling scheme contains information about how a map is broken up into tiles of images and how a client can use these tiles to display a map.

Defined in:
AGSTiledLayer.h ( ArcGIS library)
Since:
1.0
Inheritance diagram for AGSTileInfo:
<AGSCoding>

List of all members.

Public Member Functions

(void) - computeTileBounds:
(void) - decodeWithJSON:
(NSDictionary *) - encodeToJSON
(AGSEnvelope *) - envelopeForTileAtLevel:row:column:
(AGSEnvelope *) - envelopeForTileAtLOD:row:column:
(id) - initWithDpi:format:lods:origin:spatialReference:tileSize:
(id) - initWithJSON:

Properties

NSUInteger dpi
NSString * format
NSArray * lods
AGSPointorigin
AGSSpatialReferencespatialReference
CGSize tileSize

Member Function Documentation

- (void) computeTileBounds: (AGSEnvelope *)  envelope  

For each level of detail in the tiling scheme, compute start/end column/row.

Parameters:
envelope The envelope of service to compute tile bounds.
Since:
1.0
- (void) decodeWithJSON: (NSDictionary *)  json   [optional, inherited]

Decode object from JSON representation.

Parameters:
json The JSON representation of the object to be decoded.
Since:
1.0
- (NSDictionary *) encodeToJSON   [optional, inherited]

Encode and return JSON representation for object.

Returns:
JSON representation of object.
Since:
1.0
- (AGSEnvelope *) envelopeForTileAtLevel: (NSInteger)  level
row: (NSInteger)  row
column: (NSInteger)  column 

Get an envelope that represents the extent of a given tile.

Parameters:
level The level of detail of the tile.
row The row index of the tile.
column The column index of the tile.
Returns:
envelope The envelope that covers the tile.
Since:
1.0
- (AGSEnvelope*) envelopeForTileAtLOD: (AGSLOD *)  lod
row: (NSInteger)  row
column: (NSInteger)  col 

Get an envelope that represents the extent of a given tile.

Parameters:
lod The level of detail of the tile.
row The row index of the tile.
col The column index of the tile.
Returns:
envelope The envelope that covers the tile.
Since:
2.0
- (id) initWithDpi: (NSUInteger)  dpi
format: (NSString *)  format
lods: (NSArray *)  lods
origin: (AGSPoint *)  origin
spatialReference: (AGSSpatialReference *)  spatialReference
tileSize: (CGSize)  tileSize 

Initializes an AGSTileInfo object.

Parameters:
dpi The dots per inch of the tiles to be requested.
format The format of the tiled images.
lods The levels of detail representing the scale levels in the tiling scheme.
origin The origin of the tile.
spatialReference The spatial reference of the tile to be requested.
tileSize The size of the tile to be requested.
Returns:
An initialized AGSTileInfo object.
Since:
1.0
- (id) initWithJSON: (NSDictionary *)  json   [optional, inherited]

Initialize and return object from JSON representation.

Parameters:
json The JSON representation of the object to be created.
Returns:
Object decoded from JSON representation.
Since:
1.0

Property Documentation

- (NSUInteger) dpi [read, assign]

The Dots-Per-Inch (DPI) resolution of tiled images.

Since:
1.0
- (NSString*) format [read, copy]

The format of tiled images. Valid values are png8, png24, png32, and jpg.

Since:
1.0
- (NSArray*) lods [read, assign]

Array of AGSLOD objects representing the scale levels (Levels of Detail) in the tiling scheme.

Since:
1.0
- (AGSPoint*) origin [read, assign]

The tiling scheme origin.

Since:
1.0
- (AGSSpatialReference*) spatialReference [read, assign]

The spatial reference of the tiling scheme.

Since:
1.0
- (CGSize) tileSize [read, assign]

Dimensions (in pixels) of tiled images.

Since:
1.0