[Gdal-dev] gdalwarp: bad output header?

Michael Tan mdtanxp at myrealbox.com
Fri Apr 11 18:21:32 EDT 2003


Frank, the file is freely available here:

ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p174/r038/p174r38_5t87081
4.TM-EarthSat-Orthorectified/

-----Original Message-----
From: gdal-dev-admin at remotesensing.org
[mailto:gdal-dev-admin at remotesensing.org]On Behalf Of Frank Warmerdam
Sent: Friday, April 11, 2003 6:04 PM
To: gdal-dev at remotesensing.org
Subject: Re: [Gdal-dev] gdalwarp: bad output header?


Michael Tan wrote:
> Hi-
>
> I am trying to reproject a UTM GeoTIFF to an LatLon GeoTIFF. gdalwarp
> seems to do it, but does not seem to produce a correct header (which I
> need to determine the lat-lon coords for the corners).

Michael,

I am not sure what is going wrong.  This _can_ work since I just tried it
without a problem:


warmerda at gdal2200[18]% gdalwarp -t_srs "+proj=latlong +datum=WGS84"
openev/utm.tif out.tif
Creating output file is that 558P x 466L.
:0...10...20...30...40...50...60...70...80...90...100 - done.
warmerda at gdal2200[19]% gdalinfo out.tif
Driver: GTiff/GeoTIFF
Size is 558, 466
Coordinate System is:
GEOGCS["WGS 84",
     DATUM["WGS_1984",
         SPHEROID["WGS 84",6378137,298.2572235629972,
             AUTHORITY["EPSG","7030"]],
         AUTHORITY["EPSG","6326"]],
     PRIMEM["Greenwich",0],
     UNIT["degree",0.0174532925199433],
     AUTHORITY["EPSG","4326"]]
Origin = (-117.642054,33.903651)
Pixel Size = (0.000597,-0.000597)
Corner Coordinates:
Upper Left  (-117.6420540,  33.9036511) (117d38'31.39"W, 33d54'13.14"N)
Lower Left  (-117.6420540,  33.6252533) (117d38'31.39"W, 33d37'30.91"N)
Upper Right (-117.3086936,  33.9036511) (117d18'31.30"W, 33d54'13.14"N)
Lower Right (-117.3086936,  33.6252533) (117d18'31.30"W, 33d37'30.91"N)
Center      (-117.4753738,  33.7644522) (117d28'31.35"W, 33d45'52.03"N)
Band 1 Block=558x14 Type=Byte, ColorInterp=Gray
warmerda at gdal2200[20]%

What version of GDAL are you using?  What did the coordinate system info
on
the source file look like?  The gdalinfo report on the source should
be sufficient.

Best regards,

--
---------------------------------------+---------------------------------
-----
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent


_______________________________________________
Gdal-dev mailing list
Gdal-dev at remotesensing.org
http://remotesensing.org/mailman/listinfo/gdal-dev






More information about the Gdal-dev mailing list