EXPORT_WEB command error
Hello, I'm trying to export my geotiffs to OSM by using script. Here it is.
GLOBAL_MAPPER_SCRIPT VERSION=1.00
DIR_LOOP_START DIRECTORY="D:\change_h95\Site2" FILENAME_MASKS="1_400.tif" RECURSE_DIR="yes"
IMPORT FILENAME="%FNAME_W_DIR%"
EXPORT_WEB FILENAME="1" TYPE="OSM" MAX_ZOOM_LEVEL="9" NUM_ZOOM_LEVELS="3"
UNLOAD_ALL
DIR_LOOP_END
So, as you can see, I've got the directory "Site2" with subdirectories and I need to export all the files with the name "1_400.tif". However, when i run this script, I get an error for every tile.
"Version: v16.0.5 (64-bit)
Build Time: Nov 18 2014 14:10:19
Use Ctrl+V to Paste Error
WARNING: Unable to generate PNG file.
Unable to create file 7\109\37.png
PNGOverlay.cpp - 639"
How can I deal with it? Thank you.
GLOBAL_MAPPER_SCRIPT VERSION=1.00
DIR_LOOP_START DIRECTORY="D:\change_h95\Site2" FILENAME_MASKS="1_400.tif" RECURSE_DIR="yes"
IMPORT FILENAME="%FNAME_W_DIR%"
EXPORT_WEB FILENAME="1" TYPE="OSM" MAX_ZOOM_LEVEL="9" NUM_ZOOM_LEVELS="3"
UNLOAD_ALL
DIR_LOOP_END
So, as you can see, I've got the directory "Site2" with subdirectories and I need to export all the files with the name "1_400.tif". However, when i run this script, I get an error for every tile.
"Version: v16.0.5 (64-bit)
Build Time: Nov 18 2014 14:10:19
Use Ctrl+V to Paste Error
WARNING: Unable to generate PNG file.
Unable to create file 7\109\37.png
PNGOverlay.cpp - 639"
How can I deal with it? Thank you.
Answers
-
Hello,
As a first step, I recommend getting the latest update for Global Mapper 16 to see if this problem has been addressed.
Cheers,
Bob
-
I have updated to 16.2 and still I'm getting an error for each tile, but now it's a slightly different one.
Importing file ...
Exporting data to 1...
WARNING: Unable to generate RGB PNG file 7\108\37.png
Unable to create file 7\108\37.png
PNGOverlay.cpp - 622
And I forgot to mention that if I'm doing the export manually, everything works and tiles are being created. -
The FILENAME parameter should contain the full path and file name for the output HTML file that will be used to display your tiles. The path from that file is used to create the output path for the individual tiles. I suspect that FILENAME="1" is causing the problem. Something similar FILENAME="C:\Output\%FNAME_WO_EXT%.htm" ought to work better.
-
Thank you, that really solved my problem. I've got another little question (it's not critical) - I noticed that export done by script is much slower than export done manually. Is it supposed to be so?
-
Assuming that the scripted export and the manual export are the same, then there should be little to no difference in how long it takes. Your script is importing each file before exporting it. Doing the export manually, you presumably had already imported the file, so the elapsed time for only the export does not include the import time.
-
You are right, each file is being imported, but i was speaking about only the "export" phase. It's much slower when triggered by script. Export of each TIF (judging by the progress bar window) lasts approximately 10-20 times slower.
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website