Creating a Tile Request File with Tile Generator

Description

This process generates a tile request file used to generate tiles.

Parameters

To create this file, use the following options:

Parameter Required Description Example
-url=<url> yes The URL to the MapTiling service (MTS) or proxy when configured with MTS as an origin server.
Note: When using a third-party cache tool, specify the third-party URL instead of the Spectrum MapTiling service URL. Refer to the third-party help for details.
url=http://<server>:<port>/ rest/Spatial/MapTilingService
-fileOutput=<fileOutput> yes Path and name of the file the tile requests will save to. fileOutput=C:\SpatialServer\ TILING\MapTilingRequests.txt
-map=<map> yes Named Tile Resource to create tiles in the repository. map=/NamedTiles/NYCTile
-level=<level> yes Level to generate tiles for. This is a comma-separated list (such as 1,2,6) or a value range (such as 1-10). (You might skip a level if it is already generated.) level="2,5-8"
-mbr=<mbr> no Minimum Bounding Rectangle (MBR) to use to generate tiles. Four values represent the lower left and upper right corners of a bounding rectangle in the coordinate system of the named tile. Defaults to the Tile bounds. See also Minimum Bounding Rectangle (-mbr). mbr="-8275553, 4932706, -8188786, 5003330"
-username=<username> yes Spectrum user accessing the repository. Either an administrator (any user with the Spectrum admin role) or a user with Spatial access permission to the named tile and its dependent resources. username=admin
-password=<password> yes Password for the Spectrum user. password=admin

Example

This request calculates and generates a file containing tile information. It only generates a file. It does not generate tiles. It does this only for levels 2 and 5 to 8 skipping levels 1, 3, and 4.


cache_builder.bat -url=http://<server>:<port>/rest/Spatial/MapTilingService -fileOutput=C:\SpatialServer\TILING\MapTilingRequests.txt -map=/NamedTiles/WorldTile -level="2,5-8" -mbr="--8275553,4932706,-8188786,5003330" -username=admin -password=admin