Hi all,

I’m curious if anyone has ideas or advice on how to use a streaming parser
in the OGR GeoJSON driver.


My use-case is that I need to convert arbitrarily-sized streams of geojson
into other formats (e.g. Csv, shapefile, kml, etc).


My current strategy is to first partition the GeoJSON into a VRT file and
then call OGR. This works for arbitrary sized streams, but  it’s
inefficient because the process is blocked until the entire VRT is ready.
You can see my implementation here: https://github.com/koopjs/GeoXForm.


I noticed that there exists at least one C library for parsing son streams:
https://github.com/lloyd/yajl, but I do not know enough C++ (or C for that
matter) to integrate it.


Has anyone considered this approach before? Any advice on how to implement
it?


I would sincerely appreciate any help.


Daniel Fenton
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to