{ "name": "CreateMapTilePackage", "displayName": "Create Map Tile Package", "description": "Generates tiles from a map or basemap and packages the tiles to create a single compressed .tpk file.", "category": "", "helpUrl": "https://ghprodsrv03.giscoe.com/arcgis/rest/directories/arcgisoutput/GISCOE/CreateMapTilePackage2_GPServer/GISCOE_CreateMapTilePackage2/CreateMapTilePackage.htm", "executionType": "esriExecutionTypeAsynchronous", "parameters": [ { "name": "in_map", "dataType": "GPString", "displayName": "Input Map", "description": "The map from which tiles will be generated and packaged.", "direction": "esriGPParameterDirectionInput", "defaultValue": "Ward Delimitation Tool", "parameterType": "esriGPParameterTypeRequired", "category": "", "choiceList": [ "Layers", "Magareng_Electricity", "Layers1", "AmaJingqi Traditional Council", "Labels", "Ward Delimitation Tool", "Wards", "Work Management", "Cameroon", "DRC", "Mozambique", "Malawi", "Zambia", "Namibia", "Map10", "za_NGI", "AA_MRDMS", "AA_Legacy Data Capture", "Map11", "Map12", "Map13", "Map14", "Anglo_AngolaRoads_Progress1", "Map2", "eThekwini Data", "Map3", "Map4", "Map5", "RBA", "Map6", "Map7", "Map8", "Map9", "MapControlMap1", "Mine Residue Deposits Map", "New Data Frame" ] }, { "name": "service_type", "dataType": "GPBoolean", "displayName": "Package for ArcGIS Online | Bing Maps | Google Maps", "description": "Specifies whether the tiling scheme will be generated from an existing map service or whether map tiles will be generated for ArcGIS Online, Bing Maps, and Google Maps.Checked\u2014The ArcGIS Online/Bing Maps/Google Maps tiling scheme will be used. This is the default.The ArcGIS Online/Bing Maps/Google Maps tiling scheme allows you to overlay your cache tiles with tiles from these online mapping services. ArcGIS Desktop includes this tiling scheme as a built-in option when loading a tiling scheme. When you choose this tiling scheme, the source map must use the WGS 1984 Web Mercator (Auxiliary Sphere) projected coordinate system.The ArcGIS Online/Bing Maps/Google Maps tiling scheme is required if you'll be overlaying your package with ArcGIS Online, Bing Maps, or Google Maps. One advantage of the ArcGIS Online/Bing Maps/Google Maps tiling scheme is that it is widely known in the web mapping world, so your tiles will match those of other organizations that have used this tiling scheme. Even if you don't plan to overlay any of these well-known map services, you may choose the tiling scheme for its interoperability potential.The ArcGIS Online/Bing Maps/Google Maps tiling scheme may contain scales that would be zoomed in too far to be of use in your map. Packaging for large scales can take up much time and disk storage space. For example, the largest scale in the tiling scheme is about 1:1,000. Packaging the entire continental United States at this scale can take weeks and require hundreds of gigabytes of storage. If you aren't prepared to package at this scale level, remove this scale level when you create the tile package.Unchecked\u2014A tiling scheme from an existing map service will be used.Choose this option if your organization has created a tiling scheme for an existing service on your server and you want to match it. Matching tiling schemes ensures that your tiles will overlay correctly in your ArcGIS Runtime application.If you choose this option, use the same coordinate system for your source map as the map with the tiling scheme you're importing.", "direction": "esriGPParameterDirectionInput", "defaultValue": true, "parameterType": "esriGPParameterTypeRequired", "category": "" }, { "name": "output_file", "dataType": "GPDataFile", "displayName": "Output File", "description": "The output map tile package.", "direction": "esriGPParameterDirectionOutput", "defaultValue": null, "parameterType": "esriGPParameterTypeRequired", "category": "" }, { "name": "format_type", "dataType": "GPString", "displayName": "Tiling Format", "description": "Specifies the format of the generated tiles.PNG\u2014Use PNG to automatically select the correct format (PNG 8, PNG 24, or PNG 32) based on the specified Level of Detail. This is the default.PNG 8 bit\u2014Use PNG 8 for overlay services that need to have a transparent background, such as roads and boundaries. PNG 8 creates tiles of very small size on disk with no loss of information. Do not use PNG 8 if your map contains more than 256 colors. Imagery, hillshades, gradient fills, transparency, and antialiasing can easily push your map over 256 colors. Even symbols such as highway shields may have subtle antialiasing around the edges that unexpectedly adds colors to your map.PNG 24 bit\u2014Use PNG 24 for overlay services, such as roads and boundaries, that have more than 256 colors (if fewer than 256 colors, use PNG 8).PNG 32 bit\u2014Use PNG 32 for overlay services, such as roads and boundaries, that have more than 256 colors. PNG 32 is an especially good choice for overlay services that have antialiasing enabled on lines or text. PNG 32 creates larger tiles on disk than PNG 24.JPEG\u2014Use this format for basemap services that have large color variation and do not need to have a transparent background. For example, raster imagery and very detailed vector basemaps tend to work well with JPEG. JPEG is a lossy image format. It attempts to selectively remove data without affecting the appearance of the image. This can cause very small tile sizes on disk, but if your map contains vector line work or labels, it may produce too much noise or blurry area around the lines. If this is the case, you can attempt to raise the compression value from the default of 75. A higher value, such as 90, may balance an acceptable quality of line work with the small tile size benefit of the JPEG.You decide what image quality you consider acceptable. If you are willing to accept a minor amount of noise in the images, you may save large amounts of disk space by choosing JPEG. The smaller tile size also means the application can download the tiles faster.Mixed\u2014A mixed package uses JPEG in the center of the package and PNG 32 on the edge of the package. Use the mixed mode when you want to cleanly overlay raster packages on other layers.When a mixed package is created, PNG 32 tiles are created anywhere that transparency is detected (in other words, anywhere that the map background is visible). The rest of the tiles are built using JPEG. This keeps the average file size down while providing a clean overlay on top of other packages. If you do not use the mixed mode package in this scenario, you will see a nontransparent collar around the periphery of your image where it overlaps the other package.", "direction": "esriGPParameterDirectionInput", "defaultValue": "PNG8", "parameterType": "esriGPParameterTypeRequired", "category": "", "choiceList": [ "PNG", "PNG8", "PNG24", "PNG32", "JPEG", "MIXED" ] }, { "name": "level_of_detail", "dataType": "GPLong", "displayName": "Maximum Level Of Detail", "description": "The maximum scale at which tiles will be generated for the package. The default is 1. Possible values are 1 through 24.Larger values reflect larger scales that show more detail but take more storage space, while smaller values reflect smaller scales that show less detail and take less storage space.This value must be greater than or equal to Minimum Level Of Detail.", "direction": "esriGPParameterDirectionInput", "filter": { "type": "range", "minimum": 1, "maximum": 24 }, "defaultValue": 20, "parameterType": "esriGPParameterTypeRequired", "category": "" }, { "name": "summary", "dataType": "GPString", "displayName": "Summary", "description": "Adds summary information to the properties of the package.", "direction": "esriGPParameterDirectionInput", "defaultValue": "test", "parameterType": "esriGPParameterTypeOptional", "category": "" }, { "name": "tags", "dataType": "GPString", "displayName": "Tags", "description": "Adds tag information to the properties of the package. Multiple tags can be added, separated by a comma or semicolon.", "direction": "esriGPParameterDirectionInput", "defaultValue": "test, tpk", "parameterType": "esriGPParameterTypeOptional", "category": "" }, { "name": "extent", "dataType": "GPString", "displayName": "Extent", "description": "Specifies the extent that will be used to select or clip features.Default\u2014The extent will be based on the maximum extent of all participating inputs. This is the default.Union of Inputs\u2014The extent will be based on the maximum extent of all inputs.Intersection of Inputs\u2014The extent will be based on the minimum area common to all inputs.Current Display Extent\u2014The extent is equal to the visible display. The option is not available when there is no active map.As Specified Below\u2014The extent will be based on the minimum and maximum extent values specified.Browse\u2014The extent will be based on an existing dataset.", "direction": "esriGPParameterDirectionInput", "defaultValue": "27,9343279540474 -36,1918920749353 28,8014278213469 -35,6518786960402", "parameterType": "esriGPParameterTypeOptional", "category": "" }, { "name": "compression_quality", "dataType": "GPLong", "displayName": "Compression Quality", "description": "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 and MIXED format. Choosing a higher value will result in a larger file size with a higher-quality image. Choosing a lower value will result in a smaller file size with a lower-quality image.", "direction": "esriGPParameterDirectionInput", "filter": { "type": "range", "minimum": 0, "maximum": 100 }, "defaultValue": 75, "parameterType": "esriGPParameterTypeOptional", "category": "" }, { "name": "package_type", "dataType": "GPString", "displayName": "Package type", "description": "Specifies the type of tile package that will be created.tpk\u2014Tiles are stored using Compact storage format. It is supported across the ArcGIS platform.tpkx\u2014Tiles are stored using CompactV2 storage format, which provides better performance on network shares and cloud store directories. This improved and simplified package structure type is supported by newer versions of ArcGIS products such as ArcGIS Online 7.1, ArcGIS Enterprise 10.7, and ArcGIS Runtime 100.5. This is the default.", "direction": "esriGPParameterDirectionInput", "defaultValue": "tpk", "parameterType": "esriGPParameterTypeOptional", "category": "", "choiceList": [ "tpk", "tpkx" ] }, { "name": "min_level_of_detail", "dataType": "GPLong", "displayName": "Minimum Level Of Detail", "description": "The minimum scale at which tiles will be generated for the package. The default is 1. Possible values are 1 through 24.Larger values reflect larger scales that show more detail but take more storage space, while smaller values reflect smaller scales that show less detail and take less storage space.This value must be less than or equal to Maximum Level Of Detail.", "direction": "esriGPParameterDirectionInput", "filter": { "type": "range", "minimum": 0, "maximum": 24 }, "defaultValue": 4, "parameterType": "esriGPParameterTypeOptional", "category": "" } ] }