Skip to main content
Solved

Is there a way to split polygons with point data even if the point doesn't fall within the area?

  • May 25, 2018
  • 1 reply
  • 20 views

We often re-segment our Road Segment data (polygons) with GPS collected points. The points do not necessarily fall within the polygon. Is there a way to split the polygon with the point data? The image shows the result I'm after.

Best answer by gio

@fional

You can "project": the point to the border of the polygon.

One easy way to do it is to use a neighbourfinder.

Then add a new point (candidate_x,candidate_y) using vertexcreator, which gives you a line from point to border (if point it is outside the polygon) then on the border.

Extend the line by a sufficient distance to cross opposite border.

The use (for instance ) line on area overlayer.

If the point is inside the polygon, either use find 2 neighbours, or use find neighbor after the first one or extend line both directions.

So you first need to test whether point is in- or outside the polygon.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 2252 replies
  • Best Answer
  • May 25, 2018

@fional

You can "project": the point to the border of the polygon.

One easy way to do it is to use a neighbourfinder.

Then add a new point (candidate_x,candidate_y) using vertexcreator, which gives you a line from point to border (if point it is outside the polygon) then on the border.

Extend the line by a sufficient distance to cross opposite border.

The use (for instance ) line on area overlayer.

If the point is inside the polygon, either use find 2 neighbours, or use find neighbor after the first one or extend line both directions.

So you first need to test whether point is in- or outside the polygon.