Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProjectedCRS::identify(): relax trust in id/authority in definition to identify #3532

Merged
merged 1 commit into from
Jan 2, 2023

Conversation

rouault
Copy link
Member

@rouault rouault commented Jan 2, 2023

Fixes use case of https://lists.osgeo.org/pipermail/qgis-user/2023-January/052299.html with likely buggy definition:

PROJCS["ETRS_1989_UTM_Zone_32N_6Stellen",GEOGCS["GCS_ETRS_1989",DATUM["D_ETRS_1989",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",9.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0],AUTHORITY["ESRI",102328]]

that should rather be identified to EPSG:25832 ('ETRS_1989_UTM_Zone_32N') rather than ESRI:102328 ('PE_PCS_ETRS_1989_UTM_32N_7STELLEN')

…o identify

Fixes use case of https://lists.osgeo.org/pipermail/qgis-user/2023-January/052299.html
with likely buggy definition:
```
PROJCS["ETRS_1989_UTM_Zone_32N_6Stellen",GEOGCS["GCS_ETRS_1989",DATUM["D_ETRS_1989",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",9.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0],AUTHORITY["ESRI",102328]]
```
that should rather be identified to EPSG:25832 ('ETRS_1989_UTM_Zone_32N')
rather than ESRI:102328 ('PE_PCS_ETRS_1989_UTM_32N_7STELLEN')
@rouault rouault added this to the 9.2.0 milestone Jan 2, 2023
@rouault rouault merged commit 9d1ddec into OSGeo:master Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant