Skip to main content
Solved

crossing lines and knowing the upper one

  • September 3, 2014
  • 12 replies
  • 47 views

tva
Contributor
Forum|alt.badge.img+13
  • Contributor
  • 45 replies
Hi,

 

 

I have different lines which are crossing and intersecting. I can detect where they are crossing and where they are intersecting by using a SpatialFilter.

 

 

But where they are crossing I need to know which one is the upper one. Compare it like 2 roads that are crossing: 1 on ground surface and the other one is a bridge -> I need to know which one is the bridge and which one isn't. I don't have specific information related to the z lvl of the lines.

 

 

Thanks a lot

Best answer by takashi

Hi,

 

 

If a line can cross only one other line, this could be a prototype.

 

 

Takashi

 

 

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.

12 replies

david_r
Celebrity
  • 8394 replies
  • September 3, 2014
Hi,

 

 

am I correct in understanding that all your objects are 2D only, and that there are no other attributes to indicate bridge or not? All all features are in the same dataset?

 

 

David

tva
Contributor
Forum|alt.badge.img+13
  • Author
  • Contributor
  • 45 replies
  • September 3, 2014
Yes, the lines are 2D, no extra attributes are present execpt an unique id per line. All features are in the same dataset

 

 


david_r
Celebrity
  • 8394 replies
  • September 4, 2014
Hi,

 

 

If you were to to this intersection manually, using pen and paper to explain, how would you proceed to determine which of the lines represent a bridge or not?

 

 

Once this is clear, it will become much easier to translate your process to FME.

 

 

David

tva
Contributor
Forum|alt.badge.img+13
  • Author
  • Contributor
  • 45 replies
  • September 4, 2014

I have drawn 2 different lines (for display I used 2 different colors).

 

Road A is the bridge as the red line is fully visible while road B has a short interuption

 


david_r
Celebrity
  • 8394 replies
  • September 4, 2014
But isn't that simply a function of the drawing order, and therefore mostly a function of the order of features in your dataset?

 

 

I do not see how FME could be able to tell which is on top, unless the order of features in your dataset is the deciding factor.

 

 

David

tva
Contributor
Forum|alt.badge.img+13
  • Author
  • Contributor
  • 45 replies
  • September 4, 2014
But in the original source it is intentionally drawn like that. Or does this order changes everytime the data is loaded?

david_r
Celebrity
  • 8394 replies
  • September 4, 2014
What is the original source and how was it drawn (what was the criteria for the drawing order)? I do not know.

 

 

Maybe your answer lies there.

 

 

David

tva
Contributor
Forum|alt.badge.img+13
  • Author
  • Contributor
  • 45 replies
  • September 4, 2014
Drawing order is first all the lines at ground surface and after that the bridges.

david_r
Celebrity
  • 8394 replies
  • September 4, 2014
And how can the software that draws these lines make that distinction?

 

 

David

takashi
Celebrity
  • 7843 replies
  • Best Answer
  • September 5, 2014
Hi,

 

 

If a line can cross only one other line, this could be a prototype.

 

 

Takashi

 

 


david_r
Celebrity
  • 8394 replies
  • September 5, 2014
Takashi, I fully agree with your prototype, as long as one can trust that the first feature delivered by the reader is always a bridge. However, such a dataset would leave me surprised and slightly worried :-)

 

 

David

tva
Contributor
Forum|alt.badge.img+13
  • Author
  • Contributor
  • 45 replies
  • September 8, 2014
Thanks Takashi, I can work further with this :)