delete points within polygon
is there a way to delete elevation vector points within a polygon? i need to cut regions with poor data quality (trees etc) from my model.
many thanks for your help
Comments
-
Yes, just select the polygon(s) with the Digitizer Tool, then right-click and select the Advanced Selection submenu option to select all points within the selected area(s), then press Delete to mark them as deleted.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
works perfect, just what i was looking for.
thanks. -
Hello, can you suggest how to script this workflow?
-
Typically, this is the sort of thing you would do using the EDIT_VECTOR command, but we don't currently have a way to apply the advanced selection operations in a script. The best option currently available is to use the EXPORT_VECTOR command with a polygon crop file, and specify the POLYGON_CROP_EXCLUDE parameter. This will export your data, excluding the features in the crop file areas, to a new file.michal said:Hello, can you suggest how to script this workflow?
Cheers,
Bob -
I realize that this is very old thread, but has anything changed with regards to the EDIT_VECTOR command to allow for advanced selection options in a script?
-
There is not currently a way to select by polygon in the EDIT_VECTOR script command. I have added a new todo task GM-14715 for adding this functionality.
Thanks,
Mike
Global Mapper Guru
-
Thanks Mike.
Specifically what I want to do is:
Select all elements of an area layer (shapefile), such as you can do by right clicking on the layer in the control center.
Select all points within selected area layer (Advanced Selection Options) .
Delete all the selected points.
I have tried to do something similar with exporting all points except those bounded by polygons in a specified layer, and when the datasets get large enough there are always a few points missed. Nothing seems to get missed when I do the workflow as described above, it is just cumbersome to have to do the steps manually. Would be lovely to be able to do it via a script!
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
- 837 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 182 Announcement and News
- 942 Bug Report
- 562 SDK
- 1.2K Suggestion Box
- 3.8K Technical Support
- 581 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 245 How I use Global Mapper
- 111 Global Mapper Forum Website

