Hi all, I've got some recent tiff data that can't be read by GDAL 1.7.3 ("gdalinfo.exe has stopped working"). It appears to work fine with GDAL 1.11. The output from GDAL 1.11 can't be read by GDAL 1.7.3 either. Hmm, oddly it seems to work with GDAL 1.6.
I have an older MapServer and GDAL that I'd like to use with new data without updating MapServer and GDAL so my goal is find a way to use or alter the data so it is usable by GDAL 1.7.3. I also want to know if the data is valid and complies with the the geotif specification. This is on Windows 7 and OSGeo4W although I also had some similar issues on Ubuntu 10.04. Below are GDAL 1.11 version, gdalinfo with debug, listgeo, and finally gdal_translate output that can't be read by GDAL 1.7.3 (attached). There are messages about "GTIFF: converting geokey to meters to fix bug in old libgeotiff" and "TIFFReadDirectory: Warning, Unknown field with tag 2457 (0x999) encountered." Further below the GDAL1.11 information, is GDAL 1.7.3 showing that it can't be read and the error output. Do 06S08W19_gdal1_11_ouput2.tif and 06S08W19.tif conform to the geotif specification and contain valid data? Any suggestions on how to keep using my older install without updating? Best regards, Eli gdalinfo --version GDAL 1.11.0, released 2014/04/16 gdalinfo 06S08W19.tif --debug on GDAL: GDALOpen(06S08W19.tif, this=027C3F20) succeeds as GTiff. Driver: GTiff/GeoTIFF GDAL: GDALDefaultOverviews::OverviewScan() Files: 06S08W19.tif 06S08W19.tfw Size is 3314, 5508 GTIFF: converting geokey to meters to fix bug in old libgeotiff GTIFF: converting geokey to meters to fix bug in old libgeotiff Coordinate System is: PROJCS["NAD_1983_2011_StatePlane_Oregon_North_FIPS_3601_Ft_Intl", GEOGCS["GCS_NAD_1983_2011", DATUM["NAD_1983_2011", SPHEROID["GRS_1980",6378137,298.257222101]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic_2SP"], PARAMETER["standard_parallel_1",44.33333333333334], PARAMETER["standard_parallel_2",46], PARAMETER["latitude_of_origin",43.66666666666666], PARAMETER["central_meridian",-120.5], PARAMETER["false_easting",8202099.737532808], PARAMETER["false_northing",0], UNIT["foot",0.3048, AUTHORITY["EPSG","9002"]]] Origin = (7367100.000000000000000,520508.000000000000000) Pixel Size = (1.000000000000000,-1.000000000000000) Metadata: AREA_OR_POINT=Area TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) TIFFTAG_XRESOLUTION=200 TIFFTAG_YRESOLUTION=200 Image Structure Metadata: INTERLEAVE=PIXEL OGRCT: PROJ >= 4.8.0 features enabled OGRCT: Source: +proj=lcc +lat_1=44.33333333333334 +lat_2=46 +lat_0=43.6666666666 6666 +lon_0=-120.5 +x_0=2500000 +y_0=0 +ellps=GRS80 +units=ft +no_defs OGRCT: Target: +proj=longlat +ellps=GRS80 +no_defs Corner Coordinates: Upper Left ( 7367100.000, 520508.000) (123d43'54.49"W, 45d 2'54.88"N) Lower Left ( 7367100.000, 515000.000) (123d43'51.43"W, 45d 2' 0.54"N) Upper Right ( 7370414.000, 520508.000) (123d43' 8.37"W, 45d 2'56.19"N) Lower Right ( 7370414.000, 515000.000) (123d43' 5.31"W, 45d 2' 1.84"N) Center ( 7368757.000, 517754.000) (123d43'29.90"W, 45d 2'28.36"N) Band 1 Block=256x256 Type=Byte, ColorInterp=Red Band 2 Block=256x256 Type=Byte, ColorInterp=Green Band 3 Block=256x256 Type=Byte, ColorInterp=Blue GDAL: GDALClose(06S08W19.tif, this=027C3F20) listgeo 06S08W19.tif TIFFReadDirectory: Warning, Unknown field with tag 2457 (0x999) encountered. Geotiff_Information: Version: 1 Key_Revision: 1.0 Tagged_Information: ModelTiepointTag (2,3): 0 0 0 7367100 520508 0 ModelPixelScaleTag (1,3): 1 1 0 End_Of_Tags. Keyed_Information: GTModelTypeGeoKey (Short,1): ModelTypeProjected GTRasterTypeGeoKey (Short,1): RasterPixelIsArea GTCitationGeoKey (Ascii,67): "PCS Name = NAD_1983_2011_StatePlane_Oregon_N orth_FIPS_3601_Ft_Intl" GeographicTypeGeoKey (Short,1): User-Defined GeogCitationGeoKey (Ascii,92): "GCS Name = GCS_NAD_1983_2011 Datum = NAD_1 983_2011 Ellipsoid = GRS_1980 Primem = Greenwich " GeogGeodeticDatumGeoKey (Short,1): User-Defined GeogAngularUnitsGeoKey (Short,1): Angular_Degree GeogEllipsoidGeoKey (Short,1): User-Defined GeogSemiMajorAxisGeoKey (Double,1): 6378137 GeogInvFlatteningGeoKey (Double,1): 298.257222101 GeogPrimeMeridianLongGeoKey (Double,1): 0 Unknown-3059 (Short,1): Unknown-1 ProjectedCSTypeGeoKey (Short,1): User-Defined ProjectionGeoKey (Short,1): User-Defined ProjCoordTransGeoKey (Short,1): CT_LambertConfConic_2SP ProjLinearUnitsGeoKey (Short,1): Linear_Foot ProjStdParallel1GeoKey (Double,1): 44.3333333333333 ProjStdParallel2GeoKey (Double,1): 46 ProjFalseOriginLongGeoKey (Double,1): -120.5 ProjFalseOriginLatGeoKey (Double,1): 43.6666666666667 ProjFalseOriginEastingGeoKey (Double,1): 8202099.73753281 ProjFalseOriginNorthingGeoKey (Double,1): 0 End_Of_Keys. End_Of_Geotiff. Projection Method: CT_LambertConfConic_2SP ProjFalseOriginLatGeoKey: 43.666667 ( 43d40' 0.00"N) ProjFalseOriginLongGeoKey: -120.500000 (120d30' 0.00"W) ProjStdParallel1GeoKey: 44.333333 ( 44d20' 0.00"N) ProjStdParallel2GeoKey: 46.000000 ( 46d 0' 0.00"N) ProjFalseEastingGeoKey: 8202099.737533 m ProjFalseNorthingGeoKey: 0.000000 m Projection Linear Units: 9002/foot (0.304800m) Corner Coordinates: Upper Left ( 7367100.000, 520508.000) Lower Left ( 7367100.000, 515000.000) Upper Right ( 7370414.000, 520508.000) Lower Right ( 7370414.000, 515000.000) Center ( 7368757.000, 517754.000) gdal_translate -projwin 7367110 520505 7367120 520495 06S08W19.tif 06S08W19_gdal1_11_ouput2.tif Input file size is 3314, 5508 Computed -srcwin 10 3 10 10 from projected window. 0...10...20...30...40...50...60...70...80...90...100 - done. ___________________________________________________________________________________________________ GDAL 1.7.3: gdalinfo --version GDAL 1.7.3, released 2010/11/10 original file: gdalinfo 06S08W19.tif --debug on Warning 1: TIFFReadDirectory:Unknown field with tag 2457 (0x999) encountered GDAL: GDALOpen(06S08W19.tif, this=02A26878) succeeds as GTiff. Driver: GTiff/GeoTIFF GDAL: GDALDefaultOverviews::OverviewScan() Files: 06S08W19.tif 06S08W19.tfw Size is 3314, 5508 ["gdalinfo.exe has stopped working" error message here] GDAL 1.11 output: gdalinfo 06S08W19_gdal1_11_ouput2.tif --debug on GDAL: GDALOpen(06S08W19_gdal1_11_ouput2.tif, this=032C5840) succeeds as GTiff. Driver: GTiff/GeoTIFF GDAL: GDALDefaultOverviews::OverviewScan() Files: 06S08W19_gdal1_11_ouput2.tif Size is 10, 10 ["gdalinfo.exe has stopped working" error message here] Here are the details from the gdalinfo.exe has stopped working message: Problem signature: Problem Event Name: APPCRASH Application Name: gdalinfo.exe Application Version: 0.0.0.0 Application Timestamp: 4cd807cc Fault Module Name: ntdll.dll Fault Module Version: 6.1.7601.22436 Fault Module Timestamp: 521eaa80 Exception Code: c0000005 Exception Offset: 0002e41b OS Version: 6.1.7601.2.1.0.256.48 Locale ID: 1033 Additional Information 1: d0cb Additional Information 2: d0cbb85f3c4eb3a801a7e951e26036a7 Additional Information 3: 9027 Additional Information 4: 902705a348faa2357cb1e3c53c32a1b4 listgeo 06S08W19_gdal1_11_ouput2.tif Geotiff_Information: Version: 1 Key_Revision: 1.0 Tagged_Information: ModelTiepointTag (2,3): 0 0 0 7367110 520505 0 ModelPixelScaleTag (1,3): 1 1 0 End_Of_Tags. Keyed_Information: GTModelTypeGeoKey (Short,1): ModelTypeProjected GTRasterTypeGeoKey (Short,1): RasterPixelIsArea GTCitationGeoKey (Ascii,56): "NAD_1983_2011_StatePlane_Oregon_North_FIPS_3 601_Ft_Intl" GeographicTypeGeoKey (Short,1): User-Defined GeogCitationGeoKey (Ascii,92): "GCS Name = GCS_NAD_1983_2011|Datum = NAD_1 983_2011|Ellipsoid = GRS_1980|Primem = Greenwich|" GeogGeodeticDatumGeoKey (Short,1): User-Defined GeogAngularUnitsGeoKey (Short,1): Angular_Degree GeogEllipsoidGeoKey (Short,1): User-Defined GeogSemiMajorAxisGeoKey (Double,1): 6378137 GeogInvFlatteningGeoKey (Double,1): 298.257222101 GeogPrimeMeridianLongGeoKey (Double,1): 0 Unknown-3059 (Short,1): Unknown-1 ProjectedCSTypeGeoKey (Short,1): User-Defined ProjectionGeoKey (Short,1): User-Defined ProjCoordTransGeoKey (Short,1): CT_LambertConfConic_2SP ProjLinearUnitsGeoKey (Short,1): Linear_Foot ProjStdParallel1GeoKey (Double,1): 44.3333333333333 ProjStdParallel2GeoKey (Double,1): 46 ProjFalseOriginLongGeoKey (Double,1): -120.5 ProjFalseOriginLatGeoKey (Double,1): 43.6666666666667 ProjFalseOriginEastingGeoKey (Double,1): 8202099.73753281 ProjFalseOriginNorthingGeoKey (Double,1): 0 End_Of_Keys. End_Of_Geotiff. Projection Method: CT_LambertConfConic_2SP ProjFalseOriginLatGeoKey: 43.666667 ( 43d40' 0.00"N) ProjFalseOriginLongGeoKey: -120.500000 (120d30' 0.00"W) ProjStdParallel1GeoKey: 44.333333 ( 44d20' 0.00"N) ProjStdParallel2GeoKey: 46.000000 ( 46d 0' 0.00"N) ProjFalseEastingGeoKey: 8202099.737533 m ProjFalseNorthingGeoKey: 0.000000 m Projection Linear Units: 9002/foot (0.304800m) Corner Coordinates: Upper Left ( 7367110.000, 520505.000) Lower Left ( 7367110.000, 520495.000) Upper Right ( 7367120.000, 520505.000) Lower Right ( 7367120.000, 520495.000) Center ( 7367115.000, 520500.000)
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev