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 g...@stripfamily.net wrote: Given an OGRSpatialReference class object, how do I tell if

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

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