[Gdal-dev] Gdalwarp resolution

Sampson, David dsampson at NRCan.gc.ca
Wed Nov 22 09:51:57 EST 2006


Hey folks,

I am trying to move a 800 dpi to a 300 dpi image. The src image was
created using gdal_translate to assign SRS, 4 GCP's and change from
16bit to 8bit image. Src image has the following meta_tags

Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_XRESOLUTION=800
  TIFFTAG_YRESOLUTION=800
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
  Area_or_Point =Area 


The command line I am using is:

gdalwarp -tr 300 300 oA38_001.tif S_A38_001.tif

But I get this error

Creating output file that is 0P x 0L.
ERROR 1: Attempt to create 0x0x1 TIFF file, but width, height and bands
must be positive.

Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20061122/f1aa2e3b/attachment.html


More information about the Gdal-dev mailing list