Skip to main content
Question

Identifying Parallel lines

  • April 11, 2016
  • 5 replies
  • 352 views

I have two datasets, wherein at some sites i found out visually that there are parallel lines when compared. I need to find these lines that are parallel to the other line in other dataset. Any effiecnt method to do so??

Thanks in advance

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.

5 replies

takashi
Celebrity
  • April 11, 2016

Hi @max, if all the line features are single line segments (i.e. having only two nodes - start and end), you can use the AzimuthCalculator from the FME Hub to calculate their azimuth and angle, and then compare them with the ChangeDetector or Matcher (Match Geometry: NONE, Selected Attributes: <azimuth or angle>).

In addition, it might be better that you round the values before comparing to absorb a computational error, using the StringFormatter or AttributeRounder.


Forum|alt.badge.img
  • April 11, 2016

another addition: use the neighborfinder if you don't want to compare lines that are to far away from each other


  • October 21, 2016

Hi @max, if all the line features are single line segments (i.e. having only two nodes - start and end), you can use the AzimuthCalculator from the FME Hub to calculate their azimuth and angle, and then compare them with the ChangeDetector or Matcher (Match Geometry: NONE, Selected Attributes: <azimuth or angle>).

In addition, it might be better that you round the values before comparing to absorb a computational error, using the StringFormatter or AttributeRounder.

 

@takashi: Unfortunately, I cannot find the AzimuthCalculator in the FME Store anymore nor an angle calculator. Is there something else now?

 


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • October 21, 2016

Hi @max, @takashi. added a link to the FME Hub where you can find the AzimuthCalculator

An alternative would be to calculate the azimuth, buffer the lines and spatially test for lines within buffers.

Lines within a buffer should be tested for an equal azimuth value.

Hope this helps.


takashi
Celebrity
  • October 21, 2016

 

@takashi: Unfortunately, I cannot find the AzimuthCalculator in the FME Store anymore nor an angle calculator. Is there something else now?

 

Hi @tkifuchs, I was able to access the transformer in the FME Hub site. Please try accessing this page: https://hub.safe.com/transformers/azimuthcalculator