Skip to main content
Question

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


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

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


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

david_r
Evangelist
  • October 5, 2022
guyprovost wrote:

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

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings