Question

Lines Crossing

  • 26 August 2019
  • 4 replies
  • 37 views

Badge +2

Hi,

Can any one help me how to use crossing in spatial relations like spatial realtor or spatial filter or any similar.

I have seen in Link

Pratap


4 replies

Userlevel 2
Badge +16

Hi Pratap,

If you are looking for the points where lines cross (intersect) I usually use the Intersector.

The Nodes output port will give you the intersections.

If you store the line information in a list you can tell what lines are intersecting (crossing) at that point.

Hope this helps.

Badge +22

Crossing is a subset of intersecting.

 

 

Two lines that intersect in an X are crossing.

 

Two lines that intersect in a T are intersecting, but not crossing.

 

 

A line entering but not exiting a polygon is not crossing

 

A line both entering and exiting a polygon is crossing.
Badge +2

Hi,

Thank you @jdh @erik_jan

Apologies, I have not mentioned geometries.

I'm looking for Line Vs Line and looking for X and T in @jdh terminology. Either in X or T, nodes are not present at intersection. In the Link which I provided in question, it has crossing options explained and but it didn't explained on how to use in spatialfilter/spatialrelator transformers.

Pratap

Badge +22

The SpatialRelator generally works on two different datasets. The Requestors are the features that will be output, The Suppliers are the features that will be compared to the Requestors, and if they pass the test (Spatial Predicate) the information will be added to a list attribute (_relationships{}) on the Requestor feature.

 

 

If you only have one dataset and you went every feature to be compared to each other, you can send the data to both the Requestor and Supplier ports, and set the parameter 'Attribute(s) that must Differ' to an attribute that is unique for every feature. If you don't already have a UniqueID of some sort, you can use a Counter to create one.

 

 

In the Predicates parameter you would select either Requestor Crosses Supplier or Requestor Intersects Supplier or both. Note that the crosses option is only available if the Support Mode is changed from Support Aggregates to Support All Predicates.

Reply