I'm trying to use gdalsrsinfo (1.9) to extract out WKT-formatted info from NOAA's BSB/KAP files. It works on many - but has problems with others - and I can't find a pattern. I'm not sure if it is a problem with the BSB driver or with gdalsrsinfo, but I'm leaning toward gdalsrsinfo as the problem because I'm not having problems on the files when running the other gdal tools on them (translate/gdaladdo/etc).

Any suggestions would be appreciated.

The link below is an example of a file that is giving me problems:
http://www.charts.noaa.gov/RNCs/11532.zip

Running:  gdalsrsinfo -V 11532_1.KAP
gives me:
Validate Fails - SRS is not well formed
PROJ.4 : ''
OGC WKT :
"!CRR/ThiselectronicchartwasproducedundertheauthorityofUSA-NOAA/NOS.Byusingthischartyouacknowledgethatyouhaveread"


This is an example of one that works well:
http://www.charts.noaa.gov/RNCs/50.zip

Here's the output from "gdalsrsinfo -V 50_2.KAP"
Validate Succeeds

PROJ.4 : '+proj=merc +lon_0=170 +lat_ts=0 +x_0=0 +y_0=0 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs '

OGC WKT :
PROJCS["Global Mercator",
    GEOGCS["WGS 84",
        DATUM["WGS_1984",
            SPHEROID["WGS 84",6378137,298.257223563,
                AUTHORITY["EPSG","7030"]],
            TOWGS84[0,0,0,0,0,0,0],
            AUTHORITY["EPSG","6326"]],
        PRIMEM["Greenwich",0,
            AUTHORITY["EPSG","8901"]],
        UNIT["degree",0.0174532925199433,
            AUTHORITY["EPSG","9108"]],
        AUTHORITY["EPSG","4326"]],
    PROJECTION["Mercator_2SP"],
    PARAMETER["standard_parallel_1",0],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",170],
    PARAMETER["false_easting",0],
    PARAMETER["false_northing",0],
    UNIT["Meter",1]]

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to