Question

Best performance for spatial filtering

  • 16 December 2015
  • 2 replies
  • 8 views

Badge

I am trying to take parcels for a state and figure out which ones are within a set boundary. Is it faster to do a SpatialFilter or a Clipper?

What is the best tool for performance?


2 replies

Userlevel 2
Badge +12

Depends on the format the parcels are in.

If this is a spatially enabled database or a spatially indexed format, the FeatureReader will be the best option, because the index will be used and not all data will be read into FME.

Badge +10

...also, what is the impact of a feature crossing a boundary? This may determine which tool to use. If you clip and a feature crosses a boundary you'll at least know that now you have a duplicated ID with a different state ID recorded against it.

Or if you don't care about the overlap you could just turn your parcels into points using the InsidePointReplacer and then pass them both into the PointOnAreaOverlayer making sure you set the first reader to be the state boudaries reader and then set the PointOnAreaOverlayer's 'Areas First' parameter to "Yes".

Reply