| Visual Basic (Declaration) | |
|---|---|
Public Function New( _ ByVal built_with As String, _ ByVal out_folder As Object, _ ByVal tiling_scheme_type As String, _ ByVal scales_type As String, _ ByVal num_of_scales As Integer, _ ByVal dpi As Integer, _ ByVal tile_width As Integer, _ ByVal tile_height As Integer _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public GenerateMapServerCache( string built_with, object out_folder, string tiling_scheme_type, string scales_type, int num_of_scales, int dpi, int tile_width, int tile_height ) | |
Parameters
- built_with
- This parameter allows you to select where the processing for the cache creation takes place.
(In, Required)This Computer—to build the cache using the resources of this computer. ArcGIS Server—to leverage the resources of a specified ArcGIS Server to build the cache rapidly. - out_folder
- The path name where the cache will be created. This should be a shared directory that is accessible by the user running this tool. If an ArcGIS Server is being used to create the cache, the Server Object Container account user on each Server Object Container machine must have access to this directory. (In, Required)
- tiling_scheme_type
- Choose between a new or a predefined tiling scheme.A tiling scheme describes how clients should reference the tiles in the cache. There is a a relationship between the spatial reference of the source map document and the tiling grid. The tiling grid uses a level of detail (scale level), row, and column referencing scheme. The scheme also defines the scale levels (levels of detail) at which the cache has tiles, the size of the tiles in the pixels and the screen resolution for which the tiles are intended to be commonly displayed.A 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 tool. (In, Required)
- scales_type
- Define the scale levels that should be cached. The Standard option will auto-generate the scales based on the number defined in the "Number of Scales" field. It will use levels that increase or decrease by half from 1:1000000 and will start with a level closest to the extent of the source map document. For example, if the source map document starts at 1:121,000,000 and 14 levels are defined, the scale levels will cache at:
The Custom option permits the cache designer to create a number ofscales defined by the "Number of Scales" field at any scale they wish. (In, Required)1:128,000,000 1:64,000,000 1:32,000,000 1:16,000,000 1:8,000,000 1:4,000,000 1:2,000,000 1:1,000,000 1:500,000 1:250,000 1:125,000 1:64,000 1:32,000 1:16,000. - num_of_scales
- The number of scale levels to use when caching the source map document. (In, Required)
- dpi
- The dots per inch (DPI) value should match the resolution of the output device that is used to view the map cache. If an incorrect DPI chosen does not match the resolution of the output device, the scale of the map tile will appear incorrect. The default value is 96. (In, Required)
- tile_width
- Specifies the width, in pixels, of the output map tiles. Small widths may improve performance of the application requesting tiles from the cache as less data will travel over the wire. However, there will be more edge effects, such as labeling inconsistencies, that with larger sized tiles. The default tile width is 512. (In, Required)
- tile_height
- Specifies the height, in pixels, of the output map tiles. Small heights may improve performance of the application requesting tiles from the cache as less data will travel over the wire. However, there will be more edge effects, such as labeling inconsistencies that with larger sized tiles. The default tile width is 512. (In, Required)
Target Platforms: Windows XP Professional, Windows Server 2003 family