Deleting all vertices exept the first and last

Hi GMs. I have a set of shape lines for bridges. They consist of multiple vertices. Do anyone know if it is possible to create a script, load the file with the shape, delete all vertices on each edge exept the first and last one?

Best Answer

  • bmg_bobbmg_bob Global Mapper Programmer Posts: 2,218
    Answer ✓

    You can sample a line at just the endpoints in the UI, but there is not an equivalent script command.

    If you have several files containing lines that you want to change, you can load all of the files into GM at the same time.  
    1. Select the lines you want to change 
    2. Right-click and choose Move/Reshape Features | Resample/Split Selected Feature(s) at Specified Distance.
    3. On the Sample Spacing Setup window, choose Sample Features at Endpoints Only (be sure that Keep All Original Vertices does not have a check next to it.)
    4. Click OK



Sign In or Register to comment.