Skip to main content
Question

Find points of a polygon that touch a line.


Find the points on a polygon that are perpendicular to a line as in the screenshot.

Existing features are the polygon(s) and line A.

 

Pts a and b are required.PointsRequiredThanks very much for any help and ideas.

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

Have done something like this in the past, where I wanted to determine the start and end positions of road barriers along roads, using measures. I think you can use that technique for this case, given that there are vertices on point a and point b.

Steps would be:

  • Generate a distance measure for line A using the MeasureGenerator.
  • Explode the polygon to vertices using a Chopper. If not enough points, you can use a Densifier.
  • Find the closest line A for each polygon point. The measure from the line will be added to the MatchedBase.
  • Expose the measure from the point using a MeasureExtractor.
  • Find the min and max measure.

nielsgerrits
VIP
Forum|alt.badge.img+54
nielsgerrits wrote:

Have done something like this in the past, where I wanted to determine the start and end positions of road barriers along roads, using measures. I think you can use that technique for this case, given that there are vertices on point a and point b.

Steps would be:

  • Generate a distance measure for line A using the MeasureGenerator.
  • Explode the polygon to vertices using a Chopper. If not enough points, you can use a Densifier.
  • Find the closest line A for each polygon point. The measure from the line will be added to the MatchedBase.
  • Expose the measure from the point using a MeasureExtractor.
  • Find the min and max measure.

Workspace demonstrating this.


  • Author
  • July 3, 2023
nielsgerrits wrote:

Have done something like this in the past, where I wanted to determine the start and end positions of road barriers along roads, using measures. I think you can use that technique for this case, given that there are vertices on point a and point b.

Steps would be:

  • Generate a distance measure for line A using the MeasureGenerator.
  • Explode the polygon to vertices using a Chopper. If not enough points, you can use a Densifier.
  • Find the closest line A for each polygon point. The measure from the line will be added to the MatchedBase.
  • Expose the measure from the point using a MeasureExtractor.
  • Find the min and max measure.

Hi, Thanks for your reply. I'll have a look at the workspace and methodology you recommend and let you know how it goes.

Z.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings