[gdal-dev] Streaming Parser for OGR GeoJSON Driver

Daniel Fenton dmfenton at gmail.com
Tue Jan 26 13:21:40 PST 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160126/81328777/attachment.html>


More information about the gdal-dev mailing list