Script error
DustyRobinson
Global Mapper UserTrusted User
I am trying to batch process some image tiles. I have a script created that should export images clipped with loaded polygons. I would like to export to JPG200 and I have that designated for the TYPE= in the script. When I run the script in GM I get an error message for "Unknown TYPE value <JPG2000>. Am I naming it wrong, or is something am I missing something else?
Comments
-
You need to use TYPE=JPEG2000, not TYPE=JPG2000.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
I changed the image format to JPEG2000 and ran the script again and two odd things happened. GM started running and said it was creating an ECW file (see attached image). When I checked the temp file it was making it had jp2 in the text, so I thought everything was still working ok. It created all the files, but they are all essentially blank files and have no jp2 extensions. Any suggestions?
-
You need to add an extension to your FILENAME parameter in the export command. For example, use FILENAME="H:\32-144600_Kinzua_Dam\Geo Data\Imagery\PAMAP_Tiles\PAMAP_PASPZ_N_USft_.jp2". The ECW and JPEG2000 exporter use the same library, so the progress bar may be a bit confusing.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
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