Skip to main content

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.

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.

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.


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