[gdal-dev] WKT Interpretation Change

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] WKT Interpretation Change

andrew.bell.ia@gmail.com
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
[hidden email]

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: WKT Interpretation Change

Even Rouault-2
projinfo returns
input string: parsing of user string failed: buildCS: missing UNIT

And indeed:
>
> (gdaltest) $ gdalsrsinfo
> "PROJCS[\"unnamed\",GEOGCS[\"unknown\",DATUM[\"unknown\",SPHEROID[\"GRS
> 1980\",6378137,298.2572221010042,AUTHORITY[\"EPSG\",\"7019\"]]],PRIMEM[\"Gre
> enwich\",0],UNIT[,0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],P

                                           ^ lacks a unit name (degree) here before the comma

Even

--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev