Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
|
@@ -168,14 +168,8 @@ void QgsGCPCanvasItem::updatePosition() |
|
|
if ( mDataPoint->canvasCoords().isEmpty() ) |
|
|
{ |
|
|
QgsCoordinateReferenceSystem mapCrs = mMapCanvas->mapSettings().destinationCrs(); |
|
|
QgsPointXY mapCoords; |
|
|
if ( mapCrs.toWkt() == mDataPoint->crs().toWkt() ) |
|
|
mapCoords = mDataPoint->mapCoords(); |
|
|
else |
|
|
{ |
|
|
QgsCoordinateTransform transf( mDataPoint->crs(), mapCrs, QgsProject::instance() ); |
|
|
mapCoords = transf.transform( mDataPoint->mapCoords() ); |
|
|
} |
|
|
QgsCoordinateTransform transf( mDataPoint->crs(), mapCrs, QgsProject::instance() ); |
|
|
QgsPointXY mapCoords = transf.transform( mDataPoint->mapCoords() ); |
|
|
mDataPoint->setCanvasCoords( mapCoords ); |
|
|
} |
|
|
setPos( toCanvasCoordinates( mDataPoint->canvasCoords() ) ); |
|
|
|
@@ -542,7 +542,7 @@ void QgsGeoreferencerMainWindow::addPoint( const QgsPointXY &pixelCoords, const |
|
|
{ |
|
|
QgsGeorefDataPoint *pnt = new QgsGeorefDataPoint( mCanvas, QgisApp::instance()->mapCanvas(), pixelCoords, mapCoords, crs, enable ); |
|
|
mPoints.append( pnt ); |
|
|
if ( !mLastGCPProjection.isValid() || mLastGCPProjection.toWkt() != crs.toWkt() ) |
|
|
if ( !mLastGCPProjection.isValid() || mLastGCPProjection != crs ) |
|
|
mLastGCPProjection = QgsCoordinateReferenceSystem( crs ); |
|
|
mGCPsDirty = true; |
|
|
if ( finalize ) |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.