Question

add suburb attribute to roadname point using suburbs polygons shp


I have a point file with road names but no suburb and I have a suburbs polygon shp how do I populate a suburb field in the roadnames shp from the suburbs shp ?


3 replies

Badge +2

Hi @nzg00ner57,

 

The PointOnAreaOverlayer will likely be your friend but you can also use something like the SpatialFilter (using the spatial predicate "Filter Contains Candidate" where the point dataset is the candidate).

 

Either transformer will work as long as you have the Merge Attributes parameter selected:

PointonAreaOverlayer:

SpatialFilter:

example.fmw

Hi, Thanks for answering so quickly. Unfortunately I have workbench 2017 and it says the workspace example is newer. I am also a complete noob and can't seem to get the suburbs values to merge it only gives me a count number ie 1. Also no merge attributes tick box. Thanks

Badge +4

Hi, Thanks for answering so quickly. Unfortunately I have workbench 2017 and it says the workspace example is newer. I am also a complete noob and can't seem to get the suburbs values to merge it only gives me a count number ie 1. Also no merge attributes tick box. Thanks

PointOnAreaOverlayer should work the way you configured it, because in FME 2017 attributes are merged by default. There is no chebox to merge the attributes. So your Point output port should contain all the point with the point attributes and when a point is inside an area also the attrubutes of the area.

Reply