ESRI.ArcGIS.ServerTools
CreateMapServerCache Constructor(String,String,String,String,String,String,Int32,Int32,Int32,Int32)
See Also  Send your comments to: Site Administrator | Terms of Use | PRIVACY | Copyright @ ESRI | Careers
ESRI.ArcGIS.ServerTools Namespace > CreateMapServerCache Class > CreateMapServerCache Constructor : CreateMapServerCache Constructor(String,String,String,String,String,String,Int32,Int32,Int32,Int32)




server_name
The ArcGIS Server machine hosting the service to be cached. (In, Required)
object_name
The map service to be cached. (In, Required)
data_frame
The map data frame to be cached. (In, Required)
out_folder
The parent directory for the cache. This must be a registered ArcGIS Server cache directory. (In, Required)
tiling_scheme_type
Choose to use a NEW or PREDEFINED tiling scheme. You can define a new tiling scheme with this tool or browse to a predefined tiling scheme file (.xml). A predefined scheme can be created by running the Generate Map Server Cache Tiling Scheme tool. (In, Required)
scales_type
Specify how you will define the scales for the tiles. (In, Required)
num_of_scales
The number of scale levels to create in the cache. This option is disabled if you create a custom list of scales. (In, Required)
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. (In, Required)
tile_width
The width of the cache tiles in pixels. The default is 256. For the best balance between performance and manageability, avoid deviating from standard widths of 256 or 512. (In, Required)
tile_height
The height of the cache tiles in pixels. The default is 256. For the best balance between performance and manageability, avoid deviating from standard widths of 256 or 512. (In, Required)
Constructor that takes all required parameters for geoprocessor execution.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal server_name As String, _
   ByVal object_name As String, _
   ByVal data_frame As String, _
   ByVal out_folder As String, _
   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
Dim server_name As String
Dim object_name As String
Dim data_frame As String
Dim out_folder As String
Dim tiling_scheme_type As String
Dim scales_type As String
Dim num_of_scales As Integer
Dim dpi As Integer
Dim tile_width As Integer
Dim tile_height As Integer
 
Dim instance As CreateMapServerCache(server_name, object_name, data_frame, out_folder, tiling_scheme_type, scales_type, num_of_scales, dpi, tile_width, tile_height)
C# 
public CreateMapServerCache( 
   string server_name,
   string object_name,
   string data_frame,
   string out_folder,
   string tiling_scheme_type,
   string scales_type,
   int num_of_scales,
   int dpi,
   int tile_width,
   int tile_height
)

Parameters

server_name
The ArcGIS Server machine hosting the service to be cached. (In, Required)
object_name
The map service to be cached. (In, Required)
data_frame
The map data frame to be cached. (In, Required)
out_folder
The parent directory for the cache. This must be a registered ArcGIS Server cache directory. (In, Required)
tiling_scheme_type
Choose to use a NEW or PREDEFINED tiling scheme. You can define a new tiling scheme with this tool or browse to a predefined tiling scheme file (.xml). A predefined scheme can be created by running the Generate Map Server Cache Tiling Scheme tool. (In, Required)
scales_type
Specify how you will define the scales for the tiles. (In, Required)
num_of_scales
The number of scale levels to create in the cache. This option is disabled if you create a custom list of scales. (In, Required)
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. (In, Required)
tile_width
The width of the cache tiles in pixels. The default is 256. For the best balance between performance and manageability, avoid deviating from standard widths of 256 or 512. (In, Required)
tile_height
The height of the cache tiles in pixels. The default is 256. For the best balance between performance and manageability, avoid deviating from standard widths of 256 or 512. (In, Required)

See Also

© 2010 All Rights Reserved.