Skip to main content
Question

Furthest distance from any point inside polygon to nearest edge of other polygon

  • December 2, 2020
  • 2 replies
  • 102 views

I have a shape-file of polygons representing land cover (cropland, forest, water etc.). For each cropland polygon I would like to know the furthest distance from any point within each cropland polygon the nearest edge of another polygon that is not cropland or water (see the paint illustration below 😃 ). Any ideas?

 

polygon_point

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.

2 replies

alexlynch3450
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 68 replies
  • December 2, 2020

I am trying to understand the situation, so bare with me. You have polygons and point geometry; Points are located within polygon: one wants to compute distance between point and the edge (corner) of neighboring polygon, where polygon =! cropland or water? Are you able to send some sample data to play with?@johan13karlsson​ 


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • December 2, 2020

I imagined some scenarios and came up with this Workspace PointToPolygon.fmwt

Basicaly you use a NeighborFinder to get closest points on Polygons that you filter to be NOT Cropland or Water, in my case Other, Create vertex with closest_candidate_x, closest_candidate_y and build lines from original point to closest point on Other (non Cropland or Water) Polygons.

PointToPolygonAdvanced: test if line Crosses Cropland or Water polygons, filter those that do and replace with a pair of original point + point on second closest non C/W polygon, build new lines, test them again and again and again 😁 PointToPolygonNoCrossing