Le vendredi 09 novembre 2012 21:11:56, Robb K. Wright a écrit : > 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.Byusing > thischartyouacknowledgethatyouhaveread"
Are you sure you are not confusing 11532.BSB and 11532_1.KAP ? I indeed get the error you had, but on 11532.BSB which is not a GDAL recognized dataset. 11532_1.KAP just works fine and gdalsrsinfo -V 11532_1.KAP output is : Validate Succeeds PROJ.4 : '+proj=merc +lon_0=-79 +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",-79], 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