mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
The previous approach was severely broken, because the default CRS for new projects setting was ignored as soon as a layer was added to the project. Instead, refine the setting to add options - "Use CRS from first layer added": same as previous behavior, the project CRS is set to match the first layer added to a new project - "Use a default CRS": CRS for a new project is set to a preset default CRS, and is left unchanged when adding layers to the project Also update qgis_global_settings.ini to reflect these changes. Fixes #27516
Updating the srs.db ------------------- The srs.db can be updated from the EPSG codes in the GDAL installation: 1) Install latest GDAL, be sure to configure with --with-python. 2) Set PATH and PYTHONDIR if installed GDAL in non-standard location. 3) Run 'scripts/qgis_srs.sh > new_srs.sql'. It may take a minute or two. 4) Run 'sqlite3 new_srs.db < new_srs.sql'.' 4) Run 'sqlite3 new_srs.db <postprocess_srs.sql' You can use sqlite3 to dump the contents from both srs.db and new_srs.db before you decide to commit. Magnus Homann 2009-08-19