mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[georeferencer] Fix wrong target CRS using GDAL3/PROJ6 builds
This commit is contained in:
parent
eb247e301e
commit
5c95c5f7f3
@ -97,7 +97,11 @@ bool QgsImageWarper::createDestinationDataset( const QString &outputName, GDALDa
|
||||
if ( crs.isValid() )
|
||||
{
|
||||
OGRSpatialReference oTargetSRS;
|
||||
#if PROJ_VERSION_MAJOR>=6
|
||||
oTargetSRS.importFromWkt( crs.toWkt( QgsCoordinateReferenceSystem::WKT2_2018 ).toLatin1().data() );
|
||||
#else
|
||||
oTargetSRS.importFromProj4( crs.toProj().toLatin1().data() );
|
||||
#endif
|
||||
|
||||
char *wkt = nullptr;
|
||||
OGRErr err = oTargetSRS.exportToWkt( &wkt );
|
||||
|
Loading…
x
Reference in New Issue
Block a user