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 CRS does not always switch parameters correctly from wkt to proj string #38689

Closed
DelazJ opened this issue Sep 11, 2020 · 4 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 Projections/Transformations Related to coordinate reference systems or coordinate transformation stale Uh oh! Seems this work is abandoned, and the PR is about to close.

Comments

@DelazJ
Copy link
Contributor

DelazJ commented Sep 11, 2020

  1. Open Settings --> Custom Projection... dialog
  2. With "proj string" format enabled, paste the following parameters: +proj=vandg +lon_0=0 +x_0=0 +y_0=0 +R_A +a=6371000 +b=6371000 +units=m +no_defs. You can test; it's returned as valid definition.
  3. Switch to wkt format: you get a conversion of the parameters. Great!
PROJCRS["unknown",
    BASEGEOGCRS["unknown",
        DATUM["unknown",
            ELLIPSOID["unknown",6371000,0,
                LENGTHUNIT["metre",1,
                    ID["EPSG",9001]]]],
        PRIMEM["Greenwich",0,
            ANGLEUNIT["degree",0.0174532925199433],
            ID["EPSG",8901]]],
    CONVERSION["unknown",
        METHOD["Van Der Grinten"],
        PARAMETER["Longitude of natural origin",0,
            ANGLEUNIT["degree",0.0174532925199433],
            ID["EPSG",8802]],
        PARAMETER["False easting",0,
            LENGTHUNIT["metre",1],
            ID["EPSG",8806]],
        PARAMETER["False northing",0,
            LENGTHUNIT["metre",1],
            ID["EPSG",8807]]],
    CS[Cartesian,2],
        AXIS["(E)",east,
            ORDER[1],
            LENGTHUNIT["metre",1,
                ID["EPSG",9001]]],
        AXIS["(N)",north,
            ORDER[2],
            LENGTHUNIT["metre",1,
                ID["EPSG",9001]]]]
  1. Switch back to proj string format: you get the same text as for wkt (except some indentation changes) and not the expression I enter at the beginning
    image

NOTA: I tried with copy-pasting the epsg4326 proj parameters and the switch between the formats works as expected

QGIS version 3.15.0-Master QGIS code revision 5c241c8
Compiled against Qt 5.12.8 Running against Qt 5.12.8
Compiled against GDAL/OGR 3.0.4 Running against GDAL/OGR 3.0.4
Compiled against GEOS 3.8.0-CAPI-1.13.1 Running against GEOS 3.8.0-CAPI-1.13.1
Compiled against SQLite 3.31.1 Running against SQLite 3.31.1
PostgreSQL Client Version 12.4 (Ubuntu 12.4-0ubuntu0.20.04.1) SpatiaLite Version 4.3.0a
QWT Version 6.1.4 QScintilla2 Version 2.11.2
Compiled against PROJ 6.3.1 Running against PROJ Rel. 6.3.1, February 10th, 2020
OS Version Ubuntu 20.04.1 LTS This copy of QGIS writes debugging output.
Active python plugins db_manager; MetaSearch; processing
@DelazJ DelazJ added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Sep 11, 2020
@gioman gioman added the Projections/Transformations Related to coordinate reference systems or coordinate transformation label Sep 11, 2020
@nyalldawson
Copy link
Collaborator

Can the projinfo tool convert this wkt to proj string? Not all wkt is representable as a proj string...

@nyalldawson nyalldawson added the Feedback Waiting on the submitter for answers label Sep 11, 2020
@rouault
Copy link
Contributor

rouault commented Sep 14, 2020

I can't reproduce this with QGIS master and PROJ master (with PROJ 6.3 branch, converting the WKT to PROJ.4 string works, so I don't think this is a PROJ issue)

@github-actions
Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Dec 22, 2020
@github-actions
Copy link

While we hate to see this happen, this Issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help 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! Feedback Waiting on the submitter for answers Projections/Transformations Related to coordinate reference systems or coordinate transformation stale Uh oh! Seems this work is abandoned, and the PR is about to close.
Projects
None yet
Development

No branches or pull requests

4 participants