[gdal-dev] I couldn't use OGRCreateCoordinateTransformation
bradh at frogmouth.net
Sun Jun 20 01:02:39 PDT 2021
What is the `polyGeometry`?
Can you try to generate a compilable, minimal, self-contained example that demonstrates the problem?
From: gdal-dev <gdal-dev-bounces at lists.osgeo.org> On Behalf Of Ahmet Temiz
Sent: Sunday, 20 June 2021 5:56 PM
To: gdal-dev <gdal-dev at lists.osgeo.org>
Subject: [gdal-dev] I couldn't use OGRCreateCoordinateTransformation
source.SetWellKnownGeogCS( "EPSG:3857" );
dest.SetWellKnownGeogCS( "EPSG:4326" );
OGRCoordinateTransformation* ct = OGRCreateCoordinateTransformation(&source, &dest);
OGRPolygon *poPolygon= ( OGRPolygon *) polyGeometry;
OGRErr err=poPolygon->transform(ct) ; // it generates this error.
ERROR 6: No translation for an empty SRS to PROJ.4 format is known.
I think, this occurs, because I could not assign any SRS value to polygon
How can I solve this problem?
Afet ve Acil Durum Yönetimi Başkanlığı
Deprem Dairesi Başkanlığı
Disaster and Emergency Management
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev