maptiler / epsg.io

EPSG.io: Coordinate Systems Worldwide

Home Page:https://epsg.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Returned proj4 strings have all had `+type=crs` added

jonathan-shaw-yotta opened this issue · comments

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.

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

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.

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/

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]]