Skip to main content
Question

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

  • October 5, 2022
  • 5 replies
  • 176 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

david_r
Celebrity
  • 8391 replies
  • October 5, 2022

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


  • Author
  • 3 replies
  • October 5, 2022

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


  • Author
  • 3 replies
  • October 5, 2022

david_r
Celebrity
  • 8391 replies
  • October 5, 2022

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.


  • Author
  • 3 replies
  • October 5, 2022

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