[gdal-dev] I couldn't use OGRCreateCoordinateTransformation

Ahmet Temiz ahmettemiz88 at gmail.com
Sun Jun 20 00:56:27 PDT 2021


Hi,
..

 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?

regards

-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Deprem  Dairesi Başkanlığı


________________________

Ahmet Temiz
Geological Eng.

Disaster and Emergency Management
of Presidency
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210620/d7365823/attachment.html>


More information about the gdal-dev mailing list