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
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
_
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