export web mbtiles with clipping
I have a raster data (.tif format) that i want to export to format .mbtiles with clip to spesific area and use the attribute name to file name after export it. I write this script and try it but i doesnt run like i desire. Anyone know what im missed?
Any help regarding question will be great. thanks in advance
n.b this is some sample of my data
Answers
-
And this is the script i write
GLOBAL_MAPPER_SCRIPT VERSION=1.00
DIR_LOOP_START DIRECTORY="D:\Riset Batch Proses Tiling\files4" FILENAME_MASKS="*.tif" RECURSE_DIR=YES
IMPORT FILENAME="%FNAME_W_DIR%"
EXPORT_WEB FILENAME="D:\Riset Batch Proses Tiling\files4\%FNAME_WO_EXT%.mbtiles"\
TYPE="MBTILES" MAX_ZOOM_LEVEL="18" NUM_ZOOM_LEVELS="5" MBT_MAP_TYPE="basemap"\
MAP_NAME="%FNAME_WO_EXT%" IMAGE_FORMAT="JPG" \
QUALITY="75" TILE_SIZE="256" WEB_FULL_TILES_ONLY="YES"\
POLYGON_CROP_FILE="D:\Riset Batch Proses Tiling\files4\KAB ACEH TAMIANG_36.MIF" \
POLYGON_CROP_USE_EACH=YES \
POLYGON_CROP_BBOX_ONLY=YES \
POLYGON_CROP_NAME_ATTR="id_zona"
// Unload the loaded data
UNLOAD_ALL
DIR_LOOP_END
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 346 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 639 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 419 Projection Questions
- 829 Raster Data
- 1.4K Vector Data
- 6.6K Support
- 179 Announcement and News
- 923 Bug Report
- 560 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 574 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 241 How I use Global Mapper
- 108 Global Mapper Forum Website