Global Mapper v26.0

graphical user interface vs batch processing

massimo
massimo Global Mapper UserTrusted User
edited June 2009 in Bug Report
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)..

Comments

  • global_mapper
    global_mapper Administrator
    edited June 2009
    In what way are the results different and what does your script look like?

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • massimo
    massimo Global Mapper User Trusted User
    edited June 2009
    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"
  • global_mapper
    global_mapper Administrator
    edited June 2009
    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
  • massimo
    massimo Global Mapper User Trusted User
    edited June 2009
    ok, solved!
    Many thanks for your prompt answer,
    Massimo
  • massimo
    massimo Global Mapper User Trusted User
    edited June 2009
    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
  • global_mapper
    global_mapper Administrator
    edited June 2009
    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
  • massimo
    massimo Global Mapper User Trusted User
    edited June 2009
    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..
  • global_mapper
    global_mapper Administrator
    edited June 2009
    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
  • massimo
    massimo Global Mapper User Trusted User
    edited June 2009
    I'm attaching the original geotiff (zipped)..
  • global_mapper
    global_mapper Administrator
    edited June 2009
    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
  • massimo
    massimo Global Mapper User Trusted User
    edited June 2009
    ok, it works!
    Many thanks again,
    Massimo