Global Mapper v24.0

delete points within polygon

sky111 Global Mapper UserTrusted User
edited June 2012 in Vector Data

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


  • global_mapper
    global_mapper Administrator
    edited June 2012
    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.


    Global Mapper Guru
  • sky111
    sky111 Global Mapper User Trusted User
    edited June 2012
    works perfect, just what i was looking for.
  • Hello, can you suggest how to script this workflow?
  • bmg_bob
    bmg_bob Global Mapper Programmer
    michal said:
    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.

  • 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?

  • bmg_mike
    bmg_mike Global Mapper Guru Moderator, Trusted User

    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.



    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!

Sign In or Register to comment.