Question

Is there a way to "cut" a large GeoJSON file in multiple GEoJSON files ?

  • 5 October 2022
  • 5 replies
  • 32 views

We have a large GeoJSON file, we need to "cut" it in multiple geojson files equal in "size", like each resulting file would be of 1200 meters X 1200 meters and named in a X,Y manner, like "1.5.geojson" and "2.7.GeoJSON". Is there'S a way to do this with FME ?


5 replies

Userlevel 4

Maybe the Tiler is what you're looking for, combining it with a fanout on the GeoJSON writer.

Can you be a little more specific ? I am a complete newb in FME. Tiler is a product ? A function of FME ?

Looks like you refer to http://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/tiler.htm

Is that the case ?

Userlevel 4

Yes, exactly, I was referring to the Tiler transformer. Concerning the fanout, it's just FME terminology for splitting the output over several datasets (in this case, GeoJSON files) based on one or several attributes. In this case you can use the "_row" and "_column" attributes output by the Tiler as part of the output filename.

You can find more information about fanout here: https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Desktop/Workbench/fanout_about.htm

I hope this helps.

Great, thanks a lot for taking the time to answer as clearly! I'll give it a go.

Reply