Skip to content

pyproj.CRS.from_string('foo') actually returns a CRS! #938

Answered by snowman2
maximlt asked this question in Q&A
Discussion options

You must be logged in to vote

The fuzzy matching is handled by PROJ:

projinfo foo
PROJ.4 string:
+proj=longlat +ellps=bessel +no_defs +type=crs

WKT2:2019 string:
GEOGCRS["Amersfoort",
    DATUM["Amersfoort",
        ELLIPSOID["Bessel 1841",6377397.155,299.1528128,
            LENGTHUNIT["metre",1]]],
    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["Intermediate CRS in transformation to and from projected C…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@maximlt
Comment options

Answer selected by maximlt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants