Re: [gdal-dev] ogr2ogr VSI support for JSON input?

2013-07-23 Thread Even Rouault
Le mardi 23 juillet 2013 18:31:08, Ryan Clark a écrit : > I'm curious if the GeoJSON driver does not support the VSI API completely? > > ... that is, I can't seem to stream GeoJSON as an input to ogr2ogr. Is that > a known issue or am I doing something wrong? The > documentation

Re: [gdal-dev] How do I tell if an OGRSpatialReference has been initialized?

2013-07-23 Thread Frank Warmerdam
David, In addition to Etienne's suggestion of exportToWkt() and check for emptiness, you might also consider calling Validate() which will return FALSE if it believes the coordinate system is invalid, which would include empty coordinate systems. The main downside to this is that some useful coor

[gdal-dev] ogr2ogr VSI support for JSON input?

2013-07-23 Thread Ryan Clark
I'm curious if the GeoJSON driver does not support the VSI API completely? This works (stream WFS > GeoJSON): curl "http://server.com/wfs?request=GetFeature..."; | ogr2ogr -f "GeoJSON" /vsistdout/ /vsistdin/ but this doesn't (stream GeoJSON > KML): cat ~/my-geojson.json | ogr2ogr -f "K

Re: [gdal-dev] How do I tell if an OGRSpatialReference has been initialized?

2013-07-23 Thread Etienne Tourigny
You could try calling exportToWkt() and test if the string is null or empty (although I haven't tested that) - make sure to free the string afterwards. Etienne On Mon, Jul 22, 2013 at 8:44 PM, David Strip wrote: > Given an OGRSpatialReference class object, how do I tell if it's been > initializ