Skip to main content

Hello all,

I have two layers, one of roads (lines) and one of electorates (polygons). The roads intersect the electorates and one road can intersect more than one electorate.

For each road feature, I want to add the name of the electorate that the majority of the road falls within.

I am using a SpatialFilter to populate the roads with the names of electorates but I don't know how the transformer chooses which electorate to populate the road feature with. Is it just the first electorate that happens to intersect?

You could look at the LineOnAreaOverlarlayer. That will cut the roads so you can calculate their lengths. From there you can figure out which rods go with which polygon and merge the polygon name back on to the original road.


I did use the LineOnAreaOverlayer, and then followed this with;

- Sorter by length (descending)

- DuplicateFilter keeping the longest only


Reply