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

createBoundCRSToWGS84IfPossible(): improve selection logic to generate +towgs84= taking into account extent #3158

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

rouault
Copy link
Member

@rouault rouault commented Apr 6, 2022

Helps for North Macedonia CRS EPSG:6204 and EPSG:9945

…e +towgs84= taking into account extent

Helps for North Macedonia CRS EPSG:6204 and EPSG:9945
@rouault rouault merged commit 85be23f into OSGeo:master Apr 7, 2022
github-actions bot pushed a commit that referenced this pull request Apr 7, 2022
createBoundCRSToWGS84IfPossible(): improve selection logic to generate +towgs84= taking into account extent
@bidrizi74
Copy link

Latest situation:
In QGIS 3.26.0 version, in list of Coordinate Reference Systems (CRS), CRS with code EPSG 6316 doesn't cover area of North Macedonia. With this, North Macedonian CRS based on EPSG 6316 parameters cannot be used in QGIS.
This probably is because of two zones that cover EPSG 6316 (https://epsg.org/crs_6316/MGI-1901-Balkans-zone-7.html?sessionkey=z3r4rmfri7), one for other exYugoslavia countries (EPSG 1711) and second one for North Macedonia (EPSG 1148). This can be practicaly recogized if you add data in other CRS than WGS84 and if you use "Ask for datum transformation if several are available" option in "Settings/Options/Coordinate transformation and operations". In that case if you use EPSG 6316, all datum transformations will be available except datum transformation for North Macedonian territory which should be done by using EPSG 6206 as default datum transformation.
This issue can be solved only in a case to give other-separate EPSG code for North Macedonia with the second extend (EPSG 1148, extend of national area) of EPSG 6316, or to define sub-code of EPSG 6316 for second extend 1148, that should be linked to 6206 as default datum transformation for this area.

Example of projstring for North Macedonian area:
+proj=tmerc +lat_0=0 +lon_0=21 +k=0.9999 +x_0=7500000 +y_0=0 +ellps=bessel +towgs84=521.748,229.489,590.921,4.029,4.488,-15.521,-9.78 +units=m +no_defs

In a case of any missunderstanding, please get in touch me via email bashkim.idrizi@yahoo.com any time.

https://epsg.org/crs_6316/MGI-1901-Balkans-zone-7.html?sessionkey=z3r4rmfri7

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

2 participants