Skip to main content
Solved

Merge lines sections by attributes

  • September 21, 2023
  • 1 reply
  • 25 views

pabloolivaresm
Supporter
Forum|alt.badge.img+4

I have 3 tables, a linear tables of sections, a non geometric table of bus lines, and a intermediate table between both, with relations N:M. I need to merge the sections to get the geometry of bus lines. but some of the sections belongs to many bus lines, so I need to "duplicate" some of the sections.

 

Any idea of how to get the geometry of bus lines?

 

Thank you again

Best answer by daveatsafe

Hi @pabloolivaresm​,

From your description of the tables, I think there should be a row on the intermediate table for every unique combination of section and bus line, so I would use this table as the initial feature set.

Use a FeatureMerger to merge the bus line attributes (Supplier) onto each intermediate table row (Requestor). Connect the Merged results to a second FeatureMerger as the Requestor, with the sections as the Supplier. In this FeatureMerger, set:

  • Feature Merge Type to Geometry
  • Process Duplicate Suppliers to Yes
  • Geometry Merge type to Build Polygons (which will build lines from segments as well)

The Merged output should give you the individual bus lines with line geometry and all the attributes.

View original
Did this help you find an answer to your question?

1 reply

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • Best Answer
  • September 21, 2023

Hi @pabloolivaresm​,

From your description of the tables, I think there should be a row on the intermediate table for every unique combination of section and bus line, so I would use this table as the initial feature set.

Use a FeatureMerger to merge the bus line attributes (Supplier) onto each intermediate table row (Requestor). Connect the Merged results to a second FeatureMerger as the Requestor, with the sections as the Supplier. In this FeatureMerger, set:

  • Feature Merge Type to Geometry
  • Process Duplicate Suppliers to Yes
  • Geometry Merge type to Build Polygons (which will build lines from segments as well)

The Merged output should give you the individual bus lines with line geometry and all the attributes.


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