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.6K All Categories
- 5.6K Features Discussion
- 337 Downloading Imagery
- 1.3K Elevation Data
- 379 Georeferencing Imagery Discussion
- 626 GM Script Language
- 52 User Scripts
- 113 GPS Features
- 407 Projection Questions
- 816 Raster Data
- 1.3K Vector Data
- 6.5K Support
- 175 Announcement and News
- 904 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 559 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 231 How I use Global Mapper
- 106 Global Mapper Forum Website