|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geoprocessing.AbstractGPTool com.esri.arcgis.geoprocessing.tools.servertools.GenerateMapServerCache
public class GenerateMapServerCache
Generates a cache of static image tiles for an ArcGIS Server Map Service. The Generate Map Server Cache tool is contained in the Server Tools tool box.
Field Summary |
---|
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool |
---|
vals |
Constructor Summary | |
---|---|
GenerateMapServerCache()
Creates the Generate Map Server Cache tool with defaults. |
|
GenerateMapServerCache(String serverName,
String objectName,
String dataFrame,
String outFolder,
String tilingSchemeType,
String scalesType,
int numOfScales,
int dpi,
int tileWidth,
int tileHeight)
Creates the Generate Map Server Cache tool with the required parameters. |
Method Summary | |
---|---|
String |
getAntialiasing()
Returns the Antialiasing (Smoothes edges of labels and lines for improved display quality) parameter of this tool . |
String |
getCacheFormat()
Returns the Cache Tile Format parameter of this tool . |
String |
getDataFrame()
Returns the Data Frame parameter of this tool . |
int |
getDpi()
Returns the Dots(Pixels) Per Inch parameter of this tool . |
Object |
getLayer()
Returns the Input Layers parameter of this tool . |
Object |
getLevels()
Returns the Scales parameter of this tool . |
String |
getMapOrLayers()
Returns the Cache Type parameter of this tool . |
int |
getNumOfScales()
Returns the Number of Scales parameter of this tool . |
String |
getObjectName()
Returns the Map Server parameter of this tool . |
String |
getOutFolder()
Returns the Server Cache Directory parameter of this tool . |
String |
getOutObjectName()
Returns the Output Map Server parameter of this tool (Read only). |
String |
getOutServerName()
Returns the Output Host parameter of this tool (Read only). |
String |
getScalesType()
Returns the Scales parameter of this tool . |
String |
getServerName()
Returns the Host parameter of this tool . |
int |
getThreadCount()
Returns the Number of MapServer Instances parameter of this tool . |
int |
getTileCompressionQuality()
Returns the Tile Compression Quality parameter of this tool . |
int |
getTileHeight()
Returns the Tile Height (in pixels) parameter of this tool . |
Object |
getTileOrigin()
Returns the Tiling origin in map units parameter of this tool . |
int |
getTileWidth()
Returns the Tile Width (in pixels) parameter of this tool . |
Object |
getTilingSchema()
Returns the Predefined Tiling Scheme parameter of this tool . |
String |
getTilingSchemeType()
Returns the Tiling Scheme parameter of this tool . |
String |
getToolboxAlias()
Returns the alias of the tool box containing this tool. |
String |
getToolboxName()
Returns the name of the tool box containing this tool. |
String |
getToolName()
Returns the name of this tool. |
void |
setAntialiasing(String antialiasing)
Sets the Antialiasing (Smoothes edges of labels and lines for improved display quality) parameter of this tool . |
void |
setCacheFormat(String cacheFormat)
Sets the Cache Tile Format parameter of this tool . |
void |
setDataFrame(String dataFrame)
Sets the Data Frame parameter of this tool . |
void |
setDpi(int dpi)
Sets the Dots(Pixels) Per Inch parameter of this tool . |
void |
setLayer(Object layer)
Sets the Input Layers parameter of this tool . |
void |
setLevels(Object levels)
Sets the Scales parameter of this tool . |
void |
setMapOrLayers(String mapOrLayers)
Sets the Cache Type parameter of this tool . |
void |
setNumOfScales(int numOfScales)
Sets the Number of Scales parameter of this tool . |
void |
setObjectName(String objectName)
Sets the Map Server parameter of this tool . |
void |
setOutFolder(String outFolder)
Sets the Server Cache Directory parameter of this tool . |
void |
setScalesType(String scalesType)
Sets the Scales parameter of this tool . |
void |
setServerName(String serverName)
Sets the Host parameter of this tool . |
void |
setThreadCount(int threadCount)
Sets the Number of MapServer Instances parameter of this tool . |
void |
setTileCompressionQuality(int tileCompressionQuality)
Sets the Tile Compression Quality parameter of this tool . |
void |
setTileHeight(int tileHeight)
Sets the Tile Height (in pixels) parameter of this tool . |
void |
setTileOrigin(Object tileOrigin)
Sets the Tiling origin in map units parameter of this tool . |
void |
setTileWidth(int tileWidth)
Sets the Tile Width (in pixels) parameter of this tool . |
void |
setTilingSchema(Object tilingSchema)
Sets the Predefined Tiling Scheme parameter of this tool . |
void |
setTilingSchemeType(String tilingSchemeType)
Sets the Tiling Scheme parameter of this tool . |
Methods inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool |
---|
getParameterValues, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GenerateMapServerCache()
Initializes the array of tool parameters with the default values specified when the tool was created.
public GenerateMapServerCache(String serverName, String objectName, String dataFrame, String outFolder, String tilingSchemeType, String scalesType, int numOfScales, int dpi, int tileWidth, int tileHeight)
Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.
serverName
- the host name of the ArcGIS Server to use to generate the cache.objectName
- the name of the Map Service to use to generate the cache.dataFrame
- the map documents data frame to cache. Make sure you select the same data frame that you selected for your map service.outFolder
- the parent directory for this Map Service cache.tilingSchemeType
- choose to use a NEW or PREDEFINED tiling scheme. A new tiling scheme can be defined in this tool, or a predefined scheme file (.xml) can be loaded. A predefined scheme can be created by running the Generate Map Server Cache Tiling Scheme GP Tool. nEW is the default.scalesType
- set the scale levelnumOfScales
- the number of scale levels to create in the cache.dpi
- the dots per inch of the intended output device. If a DPI is chosen that does not match the resolution of the output device, the scale of the map tile will appear incorrect. The default value is 96.tileWidth
- the width, in pixels, of output map tiles. Small widths map improve performance of the application requesting tiles from the cache as less data will travel over the wire. However, smaller tile size results in a larger cache size and longer creation time. The default tile width is 512.tileHeight
- the height, in pixels, of output map tiles. Small heights map improve performance of the application requesting tiles from the cache as less data will travel over the wire. However, smaller tile size results in a larger cache size and longer creation time. The default tile height is 512.Method Detail |
---|
public String getServerName()
public void setServerName(String serverName)
serverName
- the host name of the ArcGIS Server to use to generate the cache.public String getObjectName()
public void setObjectName(String objectName)
objectName
- the name of the Map Service to use to generate the cache.public String getDataFrame()
public void setDataFrame(String dataFrame)
dataFrame
- the map documents data frame to cache. Make sure you select the same data frame that you selected for your map service.public String getOutFolder()
public void setOutFolder(String outFolder)
outFolder
- the parent directory for this Map Service cache.public String getTilingSchemeType()
public void setTilingSchemeType(String tilingSchemeType)
tilingSchemeType
- choose to use a NEW or PREDEFINED tiling scheme. A new tiling scheme can be defined in this tool, or a predefined scheme file (.xml) can be loaded. A predefined scheme can be created by running the Generate Map Server Cache Tiling Scheme GP Tool. nEW is the default.public String getScalesType()
public void setScalesType(String scalesType)
scalesType
- set the scale levelpublic int getNumOfScales()
public void setNumOfScales(int numOfScales)
numOfScales
- the number of scale levels to create in the cache.public int getDpi()
public void setDpi(int dpi)
dpi
- the dots per inch of the intended output device. If a DPI is chosen that does not match the resolution of the output device, the scale of the map tile will appear incorrect. The default value is 96.public int getTileWidth()
public void setTileWidth(int tileWidth)
tileWidth
- the width, in pixels, of output map tiles. Small widths map improve performance of the application requesting tiles from the cache as less data will travel over the wire. However, smaller tile size results in a larger cache size and longer creation time. The default tile width is 512.public int getTileHeight()
public void setTileHeight(int tileHeight)
tileHeight
- the height, in pixels, of output map tiles. Small heights map improve performance of the application requesting tiles from the cache as less data will travel over the wire. However, smaller tile size results in a larger cache size and longer creation time. The default tile height is 512.public String getMapOrLayers()
public void setMapOrLayers(String mapOrLayers)
mapOrLayers
- choose to generate a FUSED or MULTI_LAYER cache:public Object getTilingSchema()
public void setTilingSchema(Object tilingSchema)
tilingSchema
- path to a pre-defined tiling scheme.public Object getTileOrigin()
public void setTileOrigin(Object tileOrigin)
tileOrigin
- specify the origin (upper left corner) of the tiling scheme in coordinates of the spatial reference of the source map document. The extent of the source map document must be within (but does not need to coincide) with this region.public Object getLevels()
public void setLevels(Object levels)
levels
- scales at which to cache the Map Service.public Object getLayer()
public void setLayer(Object layer)
layer
- nullpublic int getThreadCount()
public void setThreadCount(int threadCount)
threadCount
- the number of MapServer Instances to use while generating the cache.public String getAntialiasing()
public void setAntialiasing(String antialiasing)
antialiasing
- choose whether to use antialiasing when rendering the tiles. If ANTIALIASING is chosen, edges of lines, borders, and text will be smoothed. There is a performance cost for this option. No benefit will be gained on raster data.public String getCacheFormat()
public void setCacheFormat(String cacheFormat)
cacheFormat
- choose either PNG8, PNG24, PNG32 or JPEG file format for the tiles in the cache. PNG24 is the default.public int getTileCompressionQuality()
public void setTileCompressionQuality(int tileCompressionQuality)
tileCompressionQuality
- enter a value between 1 and 100 for the JPEG compression quality. The default value is 75 for JPEG tile format and zero for other formats. compression is supported only for JPEG format. The level of compression will depend on the data, but can also be controlled by changing the compression quality. Choosing a higher value will result in less compression and a higher-quality image. Choosing a lower value will result in more compression but a lower-quality image.public String getOutServerName()
public String getOutObjectName()
public String getToolName()
public String getToolboxName()
public String getToolboxAlias()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |