Map service GetTileImageInfo method

Gets information about the image format of the cache tiles.

GetTileImageInfo(string MapName)

Parameter

Description

MapName

The name of the map (data frame) that contains a cache.

Return Value

A TileImageInfo object that contains information about the image format and compression quality, if applicable.

Remarks

Depending on how the cache for the map service was generated, four image formats may be available: PNG8, PNG24, PNG32 or JPEG. Compression quality only applies to lossy image formats (JPEG).

Examples

C#

MapService_MapServer mapservice = new MapService_MapServer();

mapservice.Url = "http://localhost:6080/arcgis/services/MapFusedCache/MapServer";

string mapname = mapservice.GetDefaultMapName();

if (mapservice.HasSingleFusedMapCache(mapname))

{

      TileImageInfo tileimageinfo = mapservice.GetTileImageInfo(mapname);

}

VB.NET

Dim mapservice As MapService_MapServer = New MapService_MapServer()

mapservice.Url = "http://localhost:6080/arcgis/services/MapFusedCache/MapServer"

 

Dim mapname As String = mapservice.GetDefaultMapName()

If mapservice.HasSingleFusedMapCache(mapname) Then

      Dim tileimageinfo As TileImageInfo = mapservice.GetTileImageInfo(mapname)

End If

Java

String serviceURL = "http://localhost:6080/arcgis/services/MapService/MapServer";

MapServerBindingStub mapService = new MapServerBindingStub(serviceURL);

  

String mapName = mapService.getDefaultMapName();

if (mapService.hasSingleFusedMapCache(mapName))

{

      TileImageInfo tileImageInfo = mapService.getTileImageInfo(mapName);

      System.out.println("Compression Quality: " + tileImageInfo.getCompressionQuality());

      System.out.println("Anti-Aliasing: " + tileImageInfo.getAntialiasing());

      System.out.println("Cache Tile Format: " + tileImageInfo.getCacheTileFormat());

}

2/28/2020