[gdal-dev] WKT Interpretation Change

Andrew Bell andrew.bell.ia at gmail.com
Fri May 24 07:33:02 PDT 2019


Hi,

I'm trying to figure out what rule changes have taken place that have
apparently invalidated my SRS.  I suppose that this was valid WKT1 but not
WKT2.  Can anyone provide some more detail?

Thanks,

With GDAL 2.4 I get the following:

(gdaltest) $ gdalsrsinfo
"PROJCS[\"unnamed\",GEOGCS[\"unknown\",DATUM[\"unknown\",SPHEROID[\"GRS
1980\",6378137,298.2572221010042,AUTHORITY[\"EPSG\",\"7019\"]]],PRIMEM[\"Greenwich\",0],UNIT[,0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",24.333333333],PARAMETER[\"central_meridian\",-81],PARAMETER[\"scale_factor\",0.999941],PARAMETER[\"false_easting\",200000],PARAMETER[\"false_northing\",0],UNIT[\"US
survey foot\",0.3048006096012192,AUTHORITY[\"EPSG\",\"9003\"]]]"

PROJ.4 : +proj=tmerc +lat_0=24.333333333 +lon_0=-81 +k=0.999941
+x_0=60960.12192024384 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs

OGC WKT :
PROJCS["unnamed",
    GEOGCS["unknown",
        DATUM["unknown",
            SPHEROID["GRS 1980",6378137,298.2572221010042,
                AUTHORITY["EPSG","7019"]]],
        PRIMEM["Greenwich",0],
        UNIT[,0.0174532925199433]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",24.333333333],
    PARAMETER["central_meridian",-81],
    PARAMETER["scale_factor",0.999941],
    PARAMETER["false_easting",200000],
    PARAMETER["false_northing",0],
    UNIT["US survey foot",0.3048006096012192,
        AUTHORITY["EPSG","9003"]]]

With GDAL 3.0 I get:

(gdal3) $ gdalsrsinfo
"PROJCS[\"unnamed\",GEOGCS[\"unknown\",DATUM[\"unknown\",SPHEROID[\"GRS
1980\",6378137,298.2572221010042,AUTHORITY[\"EPSG\",\"7019\"]]],PRIMEM[\"Greenwich\",0],UNIT[,0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",24.333333333],PARAMETER[\"central_meridian\",-81],PARAMETER[\"scale_factor\",0.999941],PARAMETER[\"false_easting\",200000],PARAMETER[\"false_northing\",0],UNIT[\"US
survey foot\",0.3048006096012192,AUTHORITY[\"EPSG\",\"9003\"]]]"

ERROR 1: ERROR - failed to load SRS definition from ...input SRS repeated...

-- 
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190524/94884ddf/attachment.html>


More information about the gdal-dev mailing list