@@ -385,7 +385,7 @@ void QgsMapRenderer::render( QPainter* painter )
385
385
{
386
386
r1 = mExtent ;
387
387
split = splitLayersExtent ( ml, r1, r2 );
388
- ct = new QgsCoordinateTransform ( ml->srs (), *mDestCRS );
388
+ ct = new QgsCoordinateTransform ( ml->crs (), *mDestCRS );
389
389
mRenderContext .setExtent ( r1 );
390
390
if ( !r1.isFinite () || !r2.isFinite () ) // there was a problem transforming the extent. Skip the layer
391
391
{
@@ -566,7 +566,7 @@ void QgsMapRenderer::render( QPainter* painter )
566
566
{
567
567
QgsRectangle r1 = mExtent ;
568
568
split = splitLayersExtent ( ml, r1, r2 );
569
- ct = new QgsCoordinateTransform ( ml->srs (), *mDestCRS );
569
+ ct = new QgsCoordinateTransform ( ml->crs (), *mDestCRS );
570
570
mRenderContext .setExtent ( r1 );
571
571
}
572
572
else
@@ -691,7 +691,7 @@ bool QgsMapRenderer::splitLayersExtent( QgsMapLayer* layer, QgsRectangle& extent
691
691
{
692
692
try
693
693
{
694
- QgsCoordinateTransform tr ( layer->srs (), *mDestCRS );
694
+ QgsCoordinateTransform tr ( layer->crs (), *mDestCRS );
695
695
696
696
#ifdef QGISDEBUG
697
697
// QgsLogger::debug<QgsRectangle>("Getting extent of canvas in layers CS. Canvas is ", extent, __FILE__, __FUNCTION__, __LINE__);
@@ -747,7 +747,7 @@ QgsRectangle QgsMapRenderer::layerExtentToOutputExtent( QgsMapLayer* theLayer, Q
747
747
{
748
748
try
749
749
{
750
- QgsCoordinateTransform tr ( theLayer->srs (), *mDestCRS );
750
+ QgsCoordinateTransform tr ( theLayer->crs (), *mDestCRS );
751
751
extent = tr.transformBoundingBox ( extent );
752
752
}
753
753
catch ( QgsCsException &cse )
@@ -770,7 +770,7 @@ QgsPoint QgsMapRenderer::layerToMapCoordinates( QgsMapLayer* theLayer, QgsPoint
770
770
{
771
771
try
772
772
{
773
- QgsCoordinateTransform tr ( theLayer->srs (), *mDestCRS );
773
+ QgsCoordinateTransform tr ( theLayer->crs (), *mDestCRS );
774
774
point = tr.transform ( point, QgsCoordinateTransform::ForwardTransform );
775
775
}
776
776
catch ( QgsCsException &cse )
@@ -792,7 +792,7 @@ QgsPoint QgsMapRenderer::mapToLayerCoordinates( QgsMapLayer* theLayer, QgsPoint
792
792
{
793
793
try
794
794
{
795
- QgsCoordinateTransform tr ( theLayer->srs (), *mDestCRS );
795
+ QgsCoordinateTransform tr ( theLayer->crs (), *mDestCRS );
796
796
point = tr.transform ( point, QgsCoordinateTransform::ReverseTransform );
797
797
}
798
798
catch ( QgsCsException &cse )
@@ -814,7 +814,7 @@ QgsRectangle QgsMapRenderer::mapToLayerCoordinates( QgsMapLayer* theLayer, QgsRe
814
814
{
815
815
try
816
816
{
817
- QgsCoordinateTransform tr ( theLayer->srs (), *mDestCRS );
817
+ QgsCoordinateTransform tr ( theLayer->crs (), *mDestCRS );
818
818
rect = tr.transform ( rect, QgsCoordinateTransform::ReverseTransform );
819
819
}
820
820
catch ( QgsCsException &cse )
0 commit comments