GM v16 - are script's working?
falqn
Global Mapper UserTrusted User
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
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
-
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 -
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 -
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 -
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 -
Hi Bob,
I'm using GM v16.0.4 (b102914), October 29 2014, 11:37:39.
Best regards
Wojtek -
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 -
Hi Bob,
It's fine now. Thanks!
Best regards
Wojtek -
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! -
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
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