Skip to content

Commit 20c07a5

Browse files
committedFeb 28, 2017
Remove support for disabling OTF reprojection
Because - OTF reprojection is mature and stable - Should be no cost when not required - transforms are shortcut when not required - Reduces code complexity - Canvas OTF support was being incorrectly used as a flag for whether measurements should be made in ellipsoidal mode. Instead the project's ellipsoid setting should be checked for this. - Should simplify behavior for new users
1 parent 809d30f commit 20c07a5

File tree

68 files changed

+398
-873
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+398
-873
lines changed
 

‎doc/api_break.dox

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,12 @@ QgsLayerTreeNode {#qgis_api_break_3_0_QgsLayerTreeNode}
12571257
- readXml() does not resolve layers from the layer IDs anymore. Call resolveReferences() or use readXml() override with QgsProject as the second argument.
12581258

12591259

1260+
QgsLayerTreeMapCanvasBridge {#qgis_api_break_3_0_QgsLayerTreeMapCanvasBridge}
1261+
-----------------
1262+
1263+
- setAutoEnableCrsTransform() and autoEnableCrsTransform() were removed. CRS transformation is now always enabled.
1264+
1265+
12601266
QgsLayerTreeModel {#qgis_api_break_3_0_QgsLayerTreeMode}
12611267
-----------------
12621268

@@ -1315,6 +1321,7 @@ QgsMapCanvas {#qgis_api_break_3_0_QgsMapCanvas}
13151321
- setProgress() signal has been removed. It was not emitted since 2.0.
13161322
- enableOverviewMode() and updateOverview() have been removed. Map canvas does not keep pointer to overview canvas anymore. Use QgsLayerTreeMapCanvasBridge::setOverviewCanvas() to set up updates of overview canvas together with main canvas.
13171323
- the duplicate mapToolSet signal with a single QgsMapTool argument has been removed. Use the signal with arguments for new and old map tool instead.
1324+
- setCrsTransformEnabled(), hasCrsTransformEnabled(), hasCrsTransformEnabledChanged() were removed. CRS transformation is now always enabled.
13181325

13191326
QgsMapCanvasItem {#qgis_api_break_3_0_QgsMapCanvasItem}
13201327
----------------
@@ -1354,6 +1361,7 @@ QgsMapOverviewCanvas {#qgis_api_break_3_0_QgsMapOverviewCanvas}
13541361

13551362
- layerSet() and setLayerSet() have been replaced by layers() and setLayers() which work with list of layers instead of layer IDs
13561363
- destinationSrsChanged() was renamed to destinationCrsChanged()
1364+
- hasCrsTransformEnabled() was removed. CRS transformation is now always enabled.
13571365

13581366

13591367
QgsMapRenderer {#qgis_api_break_3_0_QgsMapRenderer}
@@ -1421,6 +1429,7 @@ QgsMapSettings {#qgis_api_break_3_0_QgsMapSettings}
14211429
be returned instead of a null pointer if no transformation is required.
14221430
- destinationCrs() now returns a copy instead of a reference to the CRS. This has no effect on PyQGIS code, but c++
14231431
plugins calling this method will need to be updated.
1432+
- setCrsTransformEnabled() and hasCrsTransformEnabled() were removed. CRS transformation is now always enabled.
14241433

14251434

14261435
QgsMarkerSymbolLayer {#qgis_api_break_3_0_QgsMarkerSymbolLayer}
@@ -1896,6 +1905,12 @@ QgsTolerance {#qgis_api_break_3_0_QgsTolerance}
18961905
- The MapUnits UnitType was removed. Use LayerUnits or ProjectUnits instead.
18971906

18981907

1908+
QgsTracer {#qgis_api_break_3_0_QgsTracer}
1909+
---------
1910+
1911+
- hasCrsTransformEnabled() and setCrsTransformEnabled() were removed. CRS transformation is now always enabled when required.
1912+
1913+
18991914
QgsTreeWidgetItem {#qgis_api_break_3_0_QgsTreeWidgetItem}
19001915
-----------------
19011916

‎python/core/qgsmapsettings.sip

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ class QgsMapSettings
8383
*/
8484
void setCustomRenderFlags( const QString& customRenderFlags );
8585

86-
//! sets whether to use projections for this layer set
87-
void setCrsTransformEnabled( bool enabled );
88-
//! returns true if projections are enabled for this layer set
89-
bool hasCrsTransformEnabled() const;
90-
9186
//! sets destination coordinate reference system
9287
void setDestinationCrs( const QgsCoordinateReferenceSystem& crs );
9388
//! returns CRS of destination coordinate reference system

0 commit comments

Comments
 (0)
Please sign in to comment.