Re: [gdal-dev] Convert json point to OGRPoint

2015-12-11 Thread Mateusz Loskot
On 11 December 2015 at 12:04, Gane R wrote: > Q1. exportJson converts Geometry to Json, I am looking a function to convert > the json string to OGRPoint. C API function is named OGR_G_CreateGeometryFromJson > Q2. String returned by exportJson should be compulsorly freed using CPLFree > or will

[gdal-dev] Convert json point to OGRPoint

2015-12-11 Thread Gane R
Q1. exportJson converts Geometry to Json, I am looking a function to convert the json string to OGRPoint. Please suggest your suggestions. Q2. String returned by exportJson should be compulsorly freed using CPLFree or will be freed automatically. Thanks Gane _

Re: [gdal-dev] direct.h and other Windows issue

2015-12-11 Thread Martin Landa
Hi, 2015-12-10 10:49 GMT+01:00 Even Rouault : > Definitely. As pointed by Jürgen you're playing a dangerous game here re-using > with mingw the cpl_config.h designed to work with MSVC. > This allias of getcwd to _getcwd is for MSVC only. > To work around this issue you could just #define getcwd g