Delete line endpoints

732
3
Jump to solution
12-10-2019 03:01 AM
AnninaHirschiWyss
Occasional Contributor II

Hello,

I have a set of several thousand crowdsourced tracks and it happens that the endpoints are far from the next point where the tracking actually started.

Is there a way (tool, script...) to remove all endpoints based on a max distance from the next? Or to make simpler, just delete the first and the last point of my lines.

Thx

0 Kudos
1 Solution
3 Replies
AnninaHirschiWyss
Occasional Contributor II

Perfect, thanks Johannes Bierer‌, that's what I was looking for, but didn't find :-). I just added a condition to Hornbydd's sample to catch the rows with less than 4 vertices and delete them.

This, because the original data contained multiparts and when converting them to single parts, many "two vertices-lines" were created.

0 Kudos
JohannesBierer
Occasional Contributor III

Sometimes a small hint helps, glad you get it to work.

0 Kudos