COMBINE areas in script & move features to new layer
paul.bade
Global Mapper UserTrusted User
Hi,
I didn't find a way to combine areas in a script. Did I miss something or is this not implemented yet?
Likewise it should be possible to move selected features to a new layer, but how?
Regards,
Paul
I didn't find a way to combine areas in a script. Did I miss something or is this not implemented yet?
Likewise it should be possible to move selected features to a new layer, but how?
Regards,
Paul
Comments
-
Paul,
There isn't currently a way to combine areas in a script. Would you like some perhaps like the COMBINE_LINES script command (Global Mapper Scripting Reference) where you specify which areas to combine based on a COMPARE_STR parameter that allows attribute searching?
For new layer creation via script currently the SPLIT_LAYER (Global Mapper Scripting Reference) command is all that is available in a script.
Thanks,
Mike
Global Mapper Guru
geohelp@bluemarblegeo.com
Blue Marble Geographics for Coordinate Conversion, Image Reprojection and Vector Translation -
Hi Mike,
sorry for the late reply. Yes, something like COMBINE_LINES for areas would be helpful. And moving selected features to a new layer without the need to split the complete layer would be great. The workaround to first assign attributes to selected features before splitting and then removing the attributes again is a bit inconvenient.
Both isn't too urgent for me, but would be nice to have after the next update.
Thanks,
Paul -
Paul,
I've added new todo items for these, items 13625 and 13626. We will post here when they are available in a build.
Thanks,
Mike
Global Mapper Guru
geohelp@bluemarblegeo.com
Blue Marble Geographics for Coordinate Conversion, Image Reprojection and Vector Translation -
There is now support for copying/moving features to a new layer with the EDIT_VECTOR command. Here are the new supported parameters:
COPY_TO_NEW_LAYER - specify COPY_TO_NEW_LAYER=YES to have the results (features) of the EDIT_VECTOR command copied to a new layer. If you use this parameter, but do not specify a value, then YES will be assumed.
MOVE_TO_NEW_LAYER - specify MOVE_TO_NEW_LAYER=YES to have the results (features) of the EDIT_VECTOR command copied to a new layer, and then deleted from their original layer. If you use this parameter, but do not specify a value, then YES will be assumed.
NEW_LAYER_NAME - Indicates the name of the layer where the features will be copied or moved. If a layer with this name already exists, then that layer will be used, otherwise, a new layer will be created.
NEW_LAYER_PROJ - Indicates the projection to be used in the new layer. If this parameter is not specified, then the new layer will use the current global projection.
Example (assumes a layer with a CLASS attribute has been loaded):
EDIT_VECTOR MOVE_TO_NEW_LAYER NEW_LAYER_NAME="Major Highways" \
COMPARE_STR="CLASS=1"
In this example, all features where the CLASS attribute has a value of "1" will be moved to a new layer called "Major Highways".
I have placed new builds with the latest changes at the links below:
32-bit: http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper15.zip
64-bit: http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper15_64bit.zip
Simply download the .zip file for the build that you are using and extract over your existing installation files. The likely locations to extract to are as follows:
32-bit: C:\Program Files (x86)\GlobalMapper15
64-bit: C:\Program Files\GlobalMapper15_64bit
Thanks,
Mike
Global Mapper Guru
geohelp@bluemarblegeo.com
Blue Marble Geographics for Coordinate Conversion, Image Reprojection and Vector Translation -
Hi,
For me it will be very useful to have COMBINE_AREAS command in scripting language. Any progress on this issue?
Regards
Wojtek -
Hello Wojtek,
The COMBINE_LINES functionality was implemented, but not COMBINE_AREAS. I have added feature request 14891 to our task list so we can evaluate implementation in a future version of Global Mapper.
Cheers,
Bob -
Hello,
any news here? I was hoping for a COMBINE_AREAS in scripting in GM 16. Any workaround possible?
Regards,
Paul -
There has been no change in status for feature request #14891.
-
Hi Bob,
it seems that this was still not implemented? Any plans to do so in the near future?
Cheers,
Paul -
Just checking in to see if there was ever any traction on this request? I could also use a COMBINE_AREAS script function.
-
Hello,
The feature request for a COMBINE_AREAS script command is in the queue for inclusion in Global Mapper 23. That is not a guarantee, but I think it has a good chance of getting in. We are using new feature tracking software, and the issue number is now GM-2979.
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