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.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 636 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 825 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 912 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website