[Gdal-dev] Re: gdalwarp error
Frank Warmerdam
warmerdam at pobox.com
Fri Mar 23 12:54:29 EDT 2007
Huajun Zhang wrote:
>
> Thanks, Frank. It works now. But the cellsize of the image was changed a
> little bit (e.g. cellsize of the original image is 14.25, the cellsize
> is changed to 14.33 after gdalwarp). Do you have any idea what the
> problem is?
Huajun,
When reprojecting an image, gdalwarp needs to try and pick an apparent
appropriate pixel size in the new image which can vary a bit from the old
one.
If you want to stay with the same pixel size you can specify it explicitly
when running gdalwarp by adding "-tr 14.25 14.25" to the commandline.
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 | President OSGeo, http://osgeo.org
More information about the Gdal-dev
mailing list