Does that code compile for you? What are you expecting this line to do:

OGRLineString *poLine = (OGRLineString *) poGeometry;

?

 

Where is poGeometry even defined?

 

Brad

 

From: Ahmet Temiz <[email protected]> 
Sent: Sunday, 20 June 2021 6:30 PM
To: Brad Hards <[email protected]>
Subject: Re: [gdal-dev] I couldn't use OGRCreateCoordinateTransformation

 

Here is the full code

 

regards

 

On Sun, Jun 20, 2021 at 11:02 AM Brad Hards <[email protected] 
<mailto:[email protected]> > wrote:

What is the `polyGeometry`? 

 

Can you try to generate a compilable, minimal, self-contained example that 
demonstrates the problem?

 

Brad

 

From: gdal-dev <[email protected] 
<mailto:[email protected]> > On Behalf Of Ahmet Temiz
Sent: Sunday, 20 June 2021 5:56 PM
To: gdal-dev <[email protected] <mailto:[email protected]> >
Subject: [gdal-dev] I couldn't use OGRCreateCoordinateTransformation

 

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




 

-- 

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

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to