Question

Create & Update attribute on point file from polygon data

  • 5 December 2017
  • 4 replies
  • 18 views

I downloaded a point shapefile and want to add new attributes and update them depending on what boundary they fall within. In this case, I have a pre-existing MapInfo Table of grids in a city.

I want the green points to have a new attribute with what grid they are in. So the points in the upper left would have ANSW1636 in it.

Usually I would manually create the new attribute in the table within MapInfo and then update the field using their Update Column feature like below.

I'm a fairly new user of FME and am not sure what an easy way to do this is. Also I am using FME 2013 so I won’t have any of the fancy new features after that version.


4 replies

Userlevel 2
Badge +16

The transformer to have a look at is the PointonAreaOverlayer.

It will add the attributes from the Area on the Points

Userlevel 2
Badge +17

The transformer to have a look at is the PointonAreaOverlayer.

It will add the attributes from the Area on the Points

Agree. The PointOnAreaOverlayer does the trick.

 

Alternatively, the SpatialFilter or the Clipper can also be used here. You can get the same result from those transformers.

 

I expect that the SpatialFilter with the "For Filters Only" option set to the "Use Bounding Box" parameter could perform that the best performance, if every area can be considered as rectangle whose edges are exactly parallel to X, Y axes.

 

 

Agree. The PointOnAreaOverlayer does the trick.

 

Alternatively, the SpatialFilter or the Clipper can also be used here. You can get the same result from those transformers.

 

I expect that the SpatialFilter with the "For Filters Only" option set to the "Use Bounding Box" parameter could perform that the best performance, if every area can be considered as rectangle whose edges are exactly parallel to X, Y axes.

 

 

I have a few other boundaries I need to do this with that are uniquely shaped so I guess I should stick to the PointOnAreaFilter. I will have to play with those features still as they sounds pretty useful. thanks!

 

 

Userlevel 2
Badge +17
Agree. The PointOnAreaOverlayer does the trick.

 

Alternatively, the SpatialFilter or the Clipper can also be used here. You can get the same result from those transformers.

 

I expect that the SpatialFilter with the "For Filters Only" option set to the "Use Bounding Box" parameter could perform that the best performance, if every area can be considered as rectangle whose edges are exactly parallel to X, Y axes.

 

 

OK, but I would recommend you to check the Usage Note in the Help on the PointOnAreaOverlayer, especially if you have a lot of input features.

 

 

Reply