Skip to main content
hi experts 

 

 

i have street data (polylines) . i'd like to add suburbs to the polylines from the suburbs (polygon) layer and then split the line segments by streetname and suburb . 

 

 

please let me know a good way to do it . 

 

 

also i noticed when using line joiner , only the group by attributes are retained and the other attributes are not avaulable 

 

 

appreciate your help

 

 

thanks !

 

 

 
Hi,

 

 

Would the Clipper transformer help you?

 

Send the suburb polygons to the Clipper port; send the street lines to the Clippee port; check on the "Merge Attributes" option checkbox (equivalent to setting "Yes" to the "Merge Attributes" parameter in FME 2014).

 

The output features from the Inside port will be street lines clipped by suburbs, which have the attributes of spatially related suburb.

 

 

Takashi
to the 2nd question.

 

If you set a list name to the "List Name" parameter of the LineJoiner, the output line will hold all attributes of every input line as a list attribute.

 

You can also change an element of the list to non-list attribute using a transformer (e.g. ListIndexer, ListExploder). Pick a suitable transformer to your purpose from the Lists category of the Transformer Gallery.
Attributes kept only the GroupeBY.

 

 

Kinda logical i think, it works like overlaying data basically.

 

If you have more common data, you can simply add them to the GroupBY, as long as they have the same uniqueness as the main GoupBy attribute (1 on 1 with your main groupby attribute). If not, then you get a totaly different join result.
Thank you so much

 

 

i went with line joiner and list renamer

 

 

Appreciate your help

 

 

Thanks again !

Reply