epsg.io icon indicating copy to clipboard operation
epsg.io copied to clipboard

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

Open jonathan-shaw-yotta opened this issue 1 year ago • 4 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.

jonathan-shaw-yotta avatar Aug 03 '22 10:08 jonathan-shaw-yotta

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

AliFlux avatar Aug 03 '22 12:08 AliFlux

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.

jonathan-shaw-yotta avatar Aug 03 '22 12:08 jonathan-shaw-yotta

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/

AliFlux avatar Aug 04 '22 08:08 AliFlux

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

jratike80 avatar Sep 23 '22 07:09 jratike80