Thanks Even for the prompt answer.
I would have expected a method through the OGR API to handle it without
having to call proj but if it appears like the standard or default way for
you to do it, let's do it.
Cheers,
Mathieu
On Thu, Jun 4, 2015 at 4:20 PM, Even Rouault
wrote:
> Le jeudi 04 ju
Le jeudi 04 juin 2015 16:04:32, Mathieu Coudert a écrit :
> Hello,
>
>
>
> I am using GDAL 1.11.2 on linux Centos and here is one of my function :
>
>
>
> {
>
> OGRSpatialReference sr;
>
> if (sr.SetFromUserInput(proj.c_str()) != OGRERR_NONE)
>
> throw InvalidInput();
>
>
>
> char *
Hello,
I am using GDAL 1.11.2 on linux Centos and here is one of my function :
{
OGRSpatialReference sr;
if (sr.SetFromUserInput(proj.c_str()) != OGRERR_NONE)
throw InvalidInput();
char *wkt;
sr.exportToWkt(&wkt);
string srs (wkt);
OGRFree(wkt);
return srs;
}
This code wor