Global Mapper v25.0

GM v16 - are script's working?

falqn
falqn Global Mapper UserTrusted User
edited January 2015 in Bug Report
Hi,
In GM v15.2 is OK, but in new v16 simple script (below) is not working:

GLOBAL_MAPPER_SCRIPT VERSION=1.00
EDIT_VECTOR COPY_TO_NEW_LAYER=YES NEW_LAYER_NAME="A" \
FILENAME="SELECTED LAYERS" \
COMPARE_STR="<Feature Name>=A*"

The message is:
Editing vector features...
ERROR: No left-hand comparison value or parameter specified

What's wrong? I have not find any updates in scripting reference v15.2 to v16 associated with used commands.
Best regards
Wojtek from Poland

Comments

  • bmg_bob
    bmg_bob Global Mapper Programmer
    edited October 2014
    Hello Wojtek,

    There is a bug when using the special attribute names (<Feature Name>, and others) in a COMPARE_STR parameter. I have opened bug #14633 to track this problem, and will post back here when it has been fixed.

    Cheers,

    Bob
  • bmg_bob
    bmg_bob Global Mapper Programmer
    edited October 2014
    Hello Wojtek,

    I fixed this problem and have placed new builds with the latest changes at the links below:

    32-bit: http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper16.zip
    64-bit: http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper16_64bit.zip

    Simply download the .zip file for the build that you are using and extract over your existing installation files (do not uninstall Global Mapper). The likely locations to extract to are as follows:

    32-bit: C:\Program Files (x86)\GlobalMapper16
    64-bit: C:\Program Files\GlobalMapper16_64bit

    Cheers,

    Bob
  • falqn
    falqn Global Mapper User Trusted User
    edited October 2014
    Hello Bob,
    It's still not working. My very simple script:
    GLOBAL_MAPPER_SCRIPT VERSION=1.00
    EDIT_VECTOR COPY_TO_NEW_LAYER=YES NEW_LAYER_NAME=A \
    COMPARE_STR="<Feature Name>=A*"

    I have attached very simple GMP file with my workspace.
    After running the script in Overlay Control Center I have two layers named "A" with 3 features in each. But when I try to select them all it apperas that there is only 3 features, not 6. Everything is very strange...

    GM Message:
    Editing vector features...
    ERROR: No left-hand comparison value or parameter specified
    Updated 3 features.

    And after that when I want to unload all, GM hangs, Windows 7 gives the message that GM is not answering.

    Best regards
    Wojtek from Poland
  • bmg_bob
    bmg_bob Global Mapper Programmer
    edited October 2014
    Hi Wojtek,

    Strange...that is the exact behavior that I fixed. What is the version and build date for the Global Mapper you used?

    I will double-check to make sure I didn't post the wrong build to the web site.

    Cheers,

    Bob
  • falqn
    falqn Global Mapper User Trusted User
    edited October 2014
    Hi Bob,
    I'm using GM v16.0.4 (b102914), October 29 2014, 11:37:39.
    Best regards
    Wojtek
  • bmg_bob
    bmg_bob Global Mapper Programmer
    edited October 2014
    Hi Wojtek,

    Sorry for the mix-up. I put up a new build that has the fix for your scripting problem at the links below:

    32-bit: http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper16.zip
    64-bit: http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper16_64bit.zip

    Simply download the .zip file for the build that you are using and extract over your existing installation files (do not uninstall Global Mapper). The likely locations to extract to are as follows:

    32-bit: C:\Program Files (x86)\GlobalMapper16
    64-bit: C:\Program Files\GlobalMapper16_64bit

    Cheers,

    Bob
  • falqn
    falqn Global Mapper User Trusted User
    edited October 2014
    Hi Bob,
    It's fine now. Thanks!
    Best regards
    Wojtek
  • calinp
    calinp Global Mapper User
    edited January 2015
    Hello,

    I have the same ERROR with my script
    ERROR: No right-hand comparison value or parameter specified
    and also other error:
    ERROR: Export bounds empty for EXPORT_VECTOR command.

    The build containing the fix is not available for now.
    Can you check this please?

    Thanks!
  • bmg_bob
    bmg_bob Global Mapper Programmer
    edited January 2015
    Hello,

    What version of Global Mapper are you using? You should be able to download the latest release of Global Mapper 16 at the following link:

    Global Mapper download link: Global Mapper Downloads

    If you are still having a problem with the latest release, please post your script here.

    Cheers,

    Bob