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

Custom map projections do not align in newer versions of qgis #32928

Closed
kerkovits opened this issue Nov 18, 2019 · 9 comments
Closed

Custom map projections do not align in newer versions of qgis #32928

kerkovits opened this issue Nov 18, 2019 · 9 comments
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Projections/Transformations Related to coordinate reference systems or coordinate transformation Regression Something which used to work, but doesn't anymore

Comments

@kerkovits
Copy link

I use a custom map projection to georeference old topographic maps. The Proj4 string is: +proj=sterea +lat_0=47.4860018439082 +lon_0=19.0491441390302 +k=1 +x_0=500000 +y_0=500000 +ellps=bessel +towgs84=595.75,121.09,515.50,8.2270,-1.5193,5.5971,-2.6729 +units=m +vunits=m +no_defs

old
This screenshot was created using QGIS 3.4, and we can see that the old map aligns well with contemporary data.

new
Opening the same project in QGIS 3.10, the old map does not align.

Possibly related to #32795

Example data:

c.zip

@kerkovits kerkovits added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Nov 18, 2019
@roya0045
Copy link
Contributor

You are possibly in proj6, you will probably have to change your custom projection.

@gioman gioman added the Projections/Transformations Related to coordinate reference systems or coordinate transformation label Nov 18, 2019
@gioman
Copy link
Contributor

gioman commented Nov 18, 2019

you will probably have to change your custom projection

is this that the user must be warned they have to do (when they move to proj6 based build of qgis)?

@kerkovits
Copy link
Author

The old and new QGIS (3.4.13 and 3.10.0) uses the same version Proj6 (6.2.1). The error is likely to be in QGIS, not in proj.

@gioman gioman added the Regression Something which used to work, but doesn't anymore label Nov 18, 2019
@gioman
Copy link
Contributor

gioman commented Nov 18, 2019

The old and new QGIS (3.4.13 and 3.10.0) uses the same version Proj6 (6.2.1). The error is likely to be in QGIS, not in proj.

this is an important bit of info, definitely seems a QGIS issue.

@roya0045
Copy link
Contributor

The old and new QGIS (3.4.13 and 3.10.0) uses the same version Proj6 (6.2.1). The error is likely to be in QGIS, not in proj.

this is an important bit of info, definitely seems a QGIS issue.

But 3.4.13 is the latest LTR, its not old, and I think the switch to proj6 was a few weeks ago, unless he used a custom build.

@kerkovits
Copy link
Author

The old and new QGIS (3.4.13 and 3.10.0) uses the same version Proj6 (6.2.1). The error is likely to be in QGIS, not in proj.

this is an important bit of info, definitely seems a QGIS issue.

But 3.4.13 is the latest LTR, its not old, and I think the switch to proj6 was a few weeks ago, unless he used a custom build.

I Use the qgis-full and qgis-ltr-full packages from OSGEO4W64.

@kerkovits
Copy link
Author

I did some extra investigation in QGIS 3.10.1: On the screenshot it is visible that qgis does not apply any datum transformation and ignores not only the towgs84 parameter but also the datum shift of the destination crs. projinfo however does report the transformation using correct parameters.
kép

@gioman
Copy link
Contributor

gioman commented Dec 12, 2019

@kerkovits isn't this duplicate of #33323 ?

@gioman gioman added the Feedback Waiting on the submitter for answers label Dec 12, 2019
@nyalldawson nyalldawson self-assigned this Dec 13, 2019
@nyalldawson nyalldawson removed the Feedback Waiting on the submitter for answers label Dec 13, 2019
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Dec 13, 2019
…definition

By being more selective about when we force convert to a single crs

Fixes qgis#32928
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Dec 15, 2019
…definition

By being more selective about when we force convert to a single crs

Fixes qgis#32928

(cherry picked from commit 05eaa65)
nyalldawson added a commit that referenced this issue Dec 16, 2019
…definition

By being more selective about when we force convert to a single crs

Fixes #32928

(cherry picked from commit 05eaa65)
@kerkovits
Copy link
Author

kerkovits commented Dec 16, 2019

I confirm that the fix works in the nightly build. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Projections/Transformations Related to coordinate reference systems or coordinate transformation Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

4 participants