Moving features to an existing layer with a script?
Eagle2
Global Mapper UserTrusted User
I am writing a script where I would like to create a step which will move all loaded point features from multiple layers into a single existing layer. This seems like a simple enough task, but I can not find any functionality which supports moving features to an already existing layer with GM scripting. Am I missing something?
Answers
-
Hello,
The EDIT_VECTOR command allows you to select features based on certain criteria, then move them to another layer via the MOVE_TO_NEW_LAYER and NEW_LAYER_NAME parameters. Note that, despite its name, you can specify an existing layer for the NEW_LAYER_NAME parameter, and the features will be copied to that layer.
Here is an example:EDIT_VECTOR MOVE_TO_NEW_LAYER=YES NEW_LAYER_NAME="Major Highways" \
COMPARE_STR="CLASS=1"Cheers,
Bob -
Thanks Bob, I'll give that a try and report back.
Cheers,
Bryan -
That was exactly what I needed. Thanks again Bob!
Categories
- 13K All Categories
- 5.8K Features Discussion
- 350 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 421 Projection Questions
- 835 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 181 Announcement and News
- 939 Bug Report
- 562 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 579 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 110 Global Mapper Forum Website

