7 Commits

Author SHA1 Message Date
Denis Rouzaud
ba8a445850 run sipify 2021-03-22 21:13:52 +01:00
Nyall Dawson
50b9beaad6 [sipify] Catch more class references and insert :py:class: annotations 2021-01-31 05:41:22 +10:00
Nyall Dawson
d6c8133b92 Dox 2021-01-28 02:25:09 +10:00
Nyall Dawson
ddf6245f36 Move responsibility for retrieving lists of custom user CRSes to
QgsCoordinateReferenceSystemRegistry

This was the last bit of untested, direct sql database access relating
to custom projections. Now everything is nice and central and protected
by unit tests.
2021-01-28 02:25:09 +10:00
Nyall Dawson
8e26132404 More logic to QgsCoordinateReferenceSystemRegistry 2021-01-28 02:25:09 +10:00
Nyall Dawson
fae30b56ab Move logic for removing user crs to QgsCoordinateReferenceSystemRegistry 2021-01-28 02:25:09 +10:00
Nyall Dawson
149925043c Add a new QgsCoordinateReferenceSystemRegistry singleton attached
to QgsApplication

In the long term all methods for retrieving available CRS details
should be moved here (instead of being scattered all over the place,
as they are now). But for now the logic for saving and updating
user CRS definitions has been moved here only.

The initial motivation is to create a central place where objects
can connect to in order to listen for when a user makes changes
to their custom projections.

Refs #40704
2021-01-28 02:25:09 +10:00