[Gdal-dev] reprojection with gdalwarp

Dan Iseminger geography at telus.net
Mon Jan 20 12:42:03 EST 2003


Hi,
I'm trying to project a GeoTIFF from UTM Zone 11 to BCAlbers with gdalwarp, but 
it doesn't seem to translate it to the right coordinates, although it does warp 
and rotate it correctly, so that if I would know what coordinates to put in a 
new world file (*.tfw), then all would be well.  Is there a critical parameter 
missing, or how can this be done?

Thanks,

Dan Iseminger
geography at telus.net

# ----------------------------------------------------
DIseminger at SPA138-V2012947 /cygdrive/c/temp/2003-01-20
$ gdalinfo 082L064.tif
Driver: GTiff/GeoTIFF
Size is 1812, 1447
Coordinate System is `'
Origin = (330149.000000,5619222.000000)
Pixel Size = (8.000000,-8.000000)
Corner Coordinates:
Upper Left  (  330149.000, 5619222.000)
Lower Left  (  330149.000, 5607646.000)
Upper Right (  344645.000, 5619222.000)
Lower Right (  344645.000, 5607646.000)
Center      (  337397.000, 5613434.000)
Band 1 Block=1812x4 Type=Byte, ColorInterp=Gray

DIseminger at SPA138-V2012947 /cygdrive/c/temp/2003-01-20
$ gdalwarp -s_srs '+proj=utm +zone=11' -t_srs '+proj=aea +lon_0=-126 lat_0=45 l
at_1=50 lat_2=58.5 x_0=1000000' 082L064.tif alb64_1.tif
Creating output file is that 1978P x 1664L.
:0...10...20...30...40...50...60...70...80...90...100 - done.

DIseminger at SPA138-V2012947 /cygdrive/c/temp/2003-01-20
$ gdalinfo alb64_1.tif
Driver: GTiff/GeoTIFF
Size is 1978, 1664
Coordinate System is `'
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0, 1664.0)
Upper Right ( 1978.0,    0.0)
Lower Right ( 1978.0, 1664.0)
Center      (  989.0,  832.0)
Band 1 Block=1978x4 Type=Byte, ColorInterp=Gray










More information about the Gdal-dev mailing list