qgis / qgis4.0_api

Tracker for QGIS 4.0 API related issues and developer discussion
3 stars 1 forks source link

Remove extraneous constructors from QgsCoordinateTransform? #58

Closed nyalldawson closed 8 years ago

nyalldawson commented 8 years ago

I'd like to remove some constructors from QgsCoordinateTransform, specifically:

Why? Well, I think all the use cases for constructing this way are much better addressed in QgsCoordinateReferenceSystem itself. I'd suggest we leave only the QgsCoordinateTransform( const QgsCoordinateReferenceSystem& theSource, const QgsCoordinateReferenceSystem& theDest ); constructor (and the default, uninitialized constructor), and just require all QgsCoordinateReferenceSystem objects to be created in advance. The last one listed above is especially awkward API.

nyalldawson commented 8 years ago

Implemented in https://github.com/qgis/QGIS/commit/4a3924ca3fb163148ec5928aa90c81a741f71d03