qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.67k stars 3.02k forks source link

Coordinate reference system EPSG 6316 doesn't cover both extends 1711 and 1148 #56009

Open bidrizi74 opened 10 months ago

bidrizi74 commented 10 months ago

What is the bug or the crash?

In the current version of QGIS, Coordinate Reference System (CRS) with code EPSG 6316 includes only one of two area extends. Area of North Macedonia (with area extend EPSG 1148) is not covered with this CRS. Proof: image

Because in QGIS is used only one - first extend, while second extend is excluded, creating datum transformation for area of North Macedonia is impossible. In next print screen is a proof that QGIS doesn't allow to use datum transformation for North Macedonian area in a case of use EPSG 6316 as CRS. This is because QGIS uses only the first area extend, and exclude other area extends in a case when CRS is defined for two or more area extends. Proof: image

Below are screen shots from the EPSG registry database https://epsg.org/crs_6316/MGI-1901-Balkans-zone-7.html?sessionkey=detkihn0iz Extend: EPSG 1711 image Extend: EPSG 1148 image

Steps to reproduce the issue

In QGIS, CRSs with two or more extends should be allowed to use all extends, instead only first extend. It is better to give opportunity to users to check which area extend will use in CRS, if CRS has more than one extend.

Versions

QGIS version 3.34.1-Prizren QGIS code revision 133927424d Qt version 5.15.3 Python version 3.9.5 GDAL/OGR version 3.8.1 PROJ version 9.3.1 EPSG Registry database version v10.098 (2023-11-24) GEOS version 3.12.1-CAPI-1.18.1 SQLite version 3.41.1 PDAL version 2.6.0 PostgreSQL client version unknown SpatiaLite version 5.1.0 QWT version 6.1.6 QScintilla2 version 2.13.4 OS version Windows 10 Version 2009

Active Python plugins gml_application_schema_toolbox 1.3.1 lftools 1.12.5 lizmap 4.1.2 mapflow 2.4.0 OSTranslatorII 3.2.6 ParCatGML 1.4 pointsamplingtool 0.5.4 qfieldsync v4.6.4 qgis2web 3.17.2 quick_map_services 0.19.34 refFunctions 1.6 SemiAutomaticClassificationPlugin 8.2.0 Topographical_profiles 1.0 db_manager 0.1.20 MetaSearch 0.3.6 processing 2.12.99

Supported QGIS version

New profile

Additional context

No response

rouault commented 10 months ago

Note for anyone wanting to implement this. This would require using proj_get_domain_count() and proj_get_area_of_use_ex() added in PROJ 9.2.0 per https://github.com/OSGeo/PROJ/pull/3588

agiudiceandrea commented 10 months ago

See also https://github.com/qgis/QGIS/issues/53577.