spatial operations question

I have a bunch of layers of polygons that I'd like to combine based on a particular attribute. There's no scripting for just plain combining areas, so I was wondering if I could use a wildcard like "*" in a DEFINE_SPATIAL_OPERATION script for the "layer1" part of DISSOLVE("layer1",grouping:grouping) command?
Answers
-
Hi JSL,
As far as I can recall, there's no option to wildcard arguments to spatial operation script operations like 'dissolve', 'union', etc. I'm not working at Blue Marble any more, so I don't have access to the source code and therefore can't speak definitively, but I'm pretty sure that this recollection is correct. Anyways, The Dissolve operation takes a single layer operand; see the documentation on spatial operations transforms in the spatial operations scripting reference here: https://www.bluemarblegeo.com/knowledgebase/global-mapper-24-1/Spatial_Operations_Scripting.htm?Highlight=dissolve#Transfor
Simple way to check stuff like this out: Open up the Spatial Operations dialog in GM, and go to the scripting tab. You can then just type in spatial operations scripting commands, the same as are used in DEFINE_SPATIAL_OPERATION commands. If the syntax is incorrect, then the dialog will tell you what it thinks is wrong.
Cheers,
~Jeff
-
Thanks for your help!
Categories
- 12.6K All Categories
- 5.6K Features Discussion
- 337 Downloading Imagery
- 1.3K Elevation Data
- 379 Georeferencing Imagery Discussion
- 626 GM Script Language
- 52 User Scripts
- 113 GPS Features
- 407 Projection Questions
- 816 Raster Data
- 1.3K Vector Data
- 6.5K Support
- 175 Announcement and News
- 904 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 559 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 231 How I use Global Mapper
- 106 Global Mapper Forum Website