graphical user interface vs batch processing
massimo
Global Mapper UserTrusted User
Hello!
I have noticed that calculation of depth contours works differently using the interactive user interface than using a script (although with same parameters).
The script is called with the "run script" command and run in the Context of the main view. Source data is a Geotiff surface (floating 32bit)..
I have noticed that calculation of depth contours works differently using the interactive user interface than using a script (although with same parameters).
The script is called with the "run script" command and run in the Context of the main view. Source data is a Geotiff surface (floating 32bit)..
Comments
-
In what way are the results different and what does your script look like?
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
I'm sending a screenshot of the countours obtained with the two methods at the address.. support@globalmapper.com
A sample of the script I'm using is the following:
GLOBAL_MAPPER_SCRIPT VERSION="1.00"
GENERATE_CONTOURS ELEV_UNITS="METERS" INTERVAL="-60" SPATIAL_RES="0.0025,0.0025" GEN_HEIGHT_AREAS=NO GEN_SPOT_ELEVATIONS=NO SINGLE_LEVEL_ONLY=YES FILL_GAPS=NO SIMPLIFICATION="0" -
I took a look and found that the scripting engine was using a slightly different method to calculate the spatial resolution for contour generation, so your specified resolution might have been slightly modified, causing the visual shift. I have placed a new build at http://www.globalmapper.com/global_mapper10.zip with the change for you to try. Simply download that file and extract the contents into your existing v10.xx installation folder to give it a try.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
ok, solved!
Many thanks for your prompt answer,
Massimo -
Actually with a more in depth analysis I have noticed a weird behaviour in the new built..
now processing using interactive interface gives same results as the script procedure, but this result is different from both of the solution of the original built and it seems like a worsening in resolution.. I'm sendind two screenshots at support@globalmapper.com in explanation.
Thanks and Regards,
Massimo -
Massimo,
That is strange, do you still have the SIMPLIFICATION="0" parameter in your GENERATE_CONTOURS command? You might also try with SMOOTH_CONTOURS=YES and SMOOTH_CONTOURS=NO to see if perhaps smoothing is the issue.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
Yes, I'm using SIMPLIFICATION="0" and SMOOTH_CONTOURS=YES; I tried also with SMOOTH_CONTOURS=NO but it doesn't seem to be a smoothing issue..
-
Is it possible for you to post the data that you are generating the contours from here or email it to support@globalmapper.com so that I can take a look?
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
I'm attaching the original geotiff (zipped)..
-
Thanks for the file. I was able to find the issue (it was a bug introduced after the v10.02 release) and fix it. I have placed a new build at http://www.globalmapper.com/global_mapper10.zip with the change for you to try. Simply download that file and extract the contents into your existing v10.xx installation folder to give it a try.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
ok, it works!
Many thanks again,
Massimo
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 636 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 826 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 913 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website