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

Adding custom projection to have NEU doesn't work in versions after 3.8 #35394

Closed
antoniolocandro opened this issue Mar 26, 2020 · 9 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers

Comments

@antoniolocandro
Copy link
Contributor

antoniolocandro commented Mar 26, 2020

Describe the bug

Custom projection worked in QGIS 3.8, I can't add it in newer versions included dev it doesn't matter what I do
How to Reproduce

QGIS_PROJ_3 8
QGIS_PROJ_dev

QGIS_PROJ_dev2

Additional context

@antoniolocandro antoniolocandro added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Mar 26, 2020
@nyalldawson
Copy link
Collaborator

Try doing what the error suggests, and changing the format combo box from "proj" to "WKT".

@nyalldawson nyalldawson added the Feedback Waiting on the submitter for answers label Mar 27, 2020
@antoniolocandro
Copy link
Contributor Author

Tried to WKT also get the same issue, tells me something about EPSG 4326 exists, actually I only need this as a workaround because a GML i am loading is written in lat,lon but apparently QGIS doesn't honor axis order

@antoniolocandro
Copy link
Contributor Author

Error message trying WKT, only thing is that it worked before in 3.8 which I downloaded for the time being

equivalent_wgs84

@nyalldawson
Copy link
Collaborator

Yep - follow the suggestion from the error message again.

it's there for a reason!!
😉

@antoniolocandro
Copy link
Contributor Author

My problem is related to this issue #35393

As a workaround in QGIS 3.8 I used to be able to save this custom projection to swap coordinates of layers that were not correct, what would be the option in latest version, I would want to add +axis=neu for this layer while I can see what the issue is for the swap in the first place

I tried the suggestion

GEOGCRS["unknown",
DATUM["unnamed",
ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1]],
ID["EPSG",6326]],
PRIMEM["Greenwich",0,
ANGLEUNIT["degree",0.0174532925199433],
ID["EPSG",8901]],
CS[ellipsoidal,2],
AXIS["latitude",north,
ORDER[1],
ANGLEUNIT["degree",0.0174532925199433,
ID["EPSG",9122]]],
AXIS["longitude",east,
ORDER[2],
ANGLEUNIT["degree",0.0174532925199433,
ID["EPSG",9122]]]]

test works I want to invert 2,3 to 3,2
test

I am able to save it

But when I apply it to the layer, nothing happens to it (east and north should switch for visualization and this worked in QGIS 3.8) my data is in EPSG:4326 BTW. When I did this in QGIS 3.8 the features axis would swap
viz

Thanks for any ideas

@gioman
Copy link
Contributor

gioman commented Mar 27, 2020

QGIS 3.8

QGIS 3.8 shipped with GDAL 2, QGIS 3 LTR and above ship with GDAL 3. It is a major change, you should first check if the issue lies in this underlying library.

@antoniolocandro
Copy link
Contributor Author

Ok so reporting in the GDAL tracker would be the way to go I guess. Anyway this is happening at that level to be visualized in QGIS correct?

@gioman
Copy link
Contributor

gioman commented Mar 27, 2020

Ok so reporting in the GDAL tracker would be the way to go I guess

if is confirmed the issue is there.

@antoniolocandro
Copy link
Contributor Author

My use case is no longer needed as it was fixed upstream on the rendering part Just for general knowledge fixed upstream OSGeo/gdal#2356

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! Feedback Waiting on the submitter for answers
Projects
None yet
Development

No branches or pull requests

3 participants