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

Returned proj4 strings have all had +type=crs added #186

Open
jonathan-shaw-yotta opened this issue Aug 3, 2022 · 4 comments
Open

Returned proj4 strings have all had +type=crs added #186

jonathan-shaw-yotta opened this issue Aug 3, 2022 · 4 comments

Comments

@jonathan-shaw-yotta
Copy link

Some point recently, all returned proj4 strings seem to have appended +type=crs to the end. This is causing issues when we are handling the proj4 string in .NET and returning issues that the type parameter is not supported.

From what I can tell within the proj4 documentation, type is not supported. However, I can't see where within the epsg.io project where this change would have been made.

@AliFlux
Copy link

AliFlux commented Aug 3, 2022

Hi. Can you please share some URLs that can be tested for this?

@jonathan-shaw-yotta
Copy link
Author

jonathan-shaw-yotta commented Aug 3, 2022

Hi, sure, we've been just using the json output from https://epsg.io/?q=&format=json. I'm afraid our application isn't public so I won't be able to share access to the point of where we're facing the issue.

@AliFlux
Copy link

AliFlux commented Aug 4, 2022

That probably appeared after some dependency update. You can use WKT instead of Proj if your library doesn't support it, they are better suited for CRS

More information here: https://inbo.github.io/tutorials/tutorials/spatial_crs_coding/

@jratike80
Copy link

It seems to be the format the current Proj is using so I think this is not a bug. I tested with Proj Rel. 8.2.1, January 1st, 2022

projinfo epsg:4326
PROJ.4 string:
+proj=longlat +datum=WGS84 +no_defs +type=crs

WKT2:2019 string:
GEOGCRS["WGS 84",
    ENSEMBLE["World Geodetic System 1984 ensemble",
        MEMBER["World Geodetic System 1984 (Transit)"],
        MEMBER["World Geodetic System 1984 (G730)"],
        MEMBER["World Geodetic System 1984 (G873)"],
        MEMBER["World Geodetic System 1984 (G1150)"],
        MEMBER["World Geodetic System 1984 (G1674)"],
        MEMBER["World Geodetic System 1984 (G1762)"],
        MEMBER["World Geodetic System 1984 (G2139)"],
        ELLIPSOID["WGS 84",6378137,298.257223563,
            LENGTHUNIT["metre",1]],
        ENSEMBLEACCURACY[2.0]],
    PRIMEM["Greenwich",0,
        ANGLEUNIT["degree",0.0174532925199433]],
    CS[ellipsoidal,2],
        AXIS["geodetic latitude (Lat)",north,
            ORDER[1],
            ANGLEUNIT["degree",0.0174532925199433]],
        AXIS["geodetic longitude (Lon)",east,
            ORDER[2],
            ANGLEUNIT["degree",0.0174532925199433]],
    USAGE[
        SCOPE["Horizontal component of 3D system."],
        AREA["World."],
        BBOX[-90,-180,90,180]],
    ID["EPSG",4326]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants