Selecting polygons based on a list of attribute values
Steve D
Global Mapper UserTrusted User
Errr... is there a way to search for multiple values that are non-contiguous?
For example, I have a region that's covered in a bajillion hexagons, each is numbered. I have a list of numbers that correspond to hexagons in the region that I have to select, copy and put in another project, but I can't use the less-than, greater-than or such because these values are nearly random. The "search by attribute" dialog doesn't let me give a comma seperated range of values, seems to work on only one value at a time. Or, would there be a way to script this?
For example, I have a region that's covered in a bajillion hexagons, each is numbered. I have a list of numbers that correspond to hexagons in the region that I have to select, copy and put in another project, but I can't use the less-than, greater-than or such because these values are nearly random. The "search by attribute" dialog doesn't let me give a comma seperated range of values, seems to work on only one value at a time. Or, would there be a way to script this?
Comments
-
While there is not currently a way to match against a list of values while searching, you could use a script with a series of ASSIGN_TYPE commands to assign the features matching the list to some particular type in Global Mapper, then you could easily filter on that type. You could just have a separate ASSIGN_TYPE command in the script for each value to match on, with each command assigning to the same area type. You could then just run your script to update the loaded data so the features matching the listed values are all classified as one type.
See http://www.globalmapper.com/helpv11/ScriptReference.html#cmd_assign_type for details.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
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