Generating Tiles Without a Request File
This process generates tiles directly by specifying all parameters in the command. No input file is needed.
To generate tiles:
- Extract the files from TileGeneratorUtility.zip to a location of your choice.
-
In the command window, type cache_builder.bat followed by the parameters
as defined in the table below.
cache_builder.bat -url=http://<server>:<port>/rest/Spatial/MapTilingService -image=png -level="1,2-4" -threads=1 -map=/NamedTiles/WorldTile -mbr="-20000000, -20000000, 20000000, 20000000" -dirOutput=C:\SpatialServer\TILING\OUTPUT -username=admin -password=admin
Parameter Required Description -dirOutput <dirOutput> yes Path to the directory the generated tiles will be saved to. If the Tile Generator is located on the same machine as Spectrum™ Technology Platform, dirOutput must be a different location that what is configured for the diskPath tile cache parameter in the MapTiling service configuration. -image <image> yes Image type of tiles (e.g., png). -level <level> yes Level(s) to generate tiles for (e.g., comma separated 1,2,6 or range 1-10). -map <map> yes Named tile resource used to create tile(s) in the repository (e.g., /NamedTiles/WorldTile). -mbr <mbr> no Minimum Bounding Rectangle (MBR) to be used to generate tiles. -password <password> yes Password to access the repository. -threads <threads> no Number of threads to use to generate the tiles. -url <url> yes Specifies the URL to the Map Tiling Service. -username <username> yes User to access the repository. -cache <cache> no When set to false, sets the HTTP “cache-control” header to “no-cache” when doing a tile request. This tells the proxy server to go back to the originating server for the tile. The proxy server will replace what’s in its cache with the new tile.