[Gdal-dev] gdalwarp -rc -tr 250 250 ortho_*.tif overview.tif error

John Mitchell mitchelljj98 at gmail.com
Thu Jan 4 13:29:51 EST 2007


Frank,

If I can't use the *-tr* *xres yres then how do I set the resolution to be
250 meters?*
Below is the results from gdalinfo:
Driver: GTiff/GeoTIFF
Size is 18308, 16757
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.2572235630016,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (-90.086129408167338,29.957590557694168)
Pixel Size = (0.000001458940448,-0.000001458940448)
Metadata:
  AREA_OR_POINT=Area
Corner Coordinates:
Upper Left  ( -90.0861294,  29.9575906) ( 90d 5'10.07"W, 29d57'27.33"N)
Lower Left  ( -90.0861294,  29.9331431) ( 90d 5'10.07"W, 29d55'59.32"N)
Upper Right ( -90.0594191,  29.9575906) ( 90d 3'33.91"W, 29d57'27.33"N)
Lower Right ( -90.0594191,  29.9331431) ( 90d 3'33.91"W, 29d55'59.32"N)
Center      ( -90.0727743,  29.9453668) ( 90d 4'21.99"W, 29d56'43.32"N)
Band 1 Block=256x256 Type=Byte, ColorInterp=Red
  Overviews: 9154x8379, 4577x4190, 2289x2095, 1145x1048, 573x524, 287x262,
144x131
Band 2 Block=256x256 Type=Byte, ColorInterp=Green
  Overviews: 9154x8379, 4577x4190, 2289x2095, 1145x1048, 573x524, 287x262,
144x131
Band 3 Block=256x256 Type=Byte, ColorInterp=Blue
  Overviews: 9154x8379, 4577x4190, 2289x2095, 1145x1048, 573x524, 287x262,
144x131

On 1/4/07, Frank Warmerdam <warmerdam at pobox.com> wrote:
>
> John Mitchell wrote:
> > Hi,
> >
> > I run the following command:
> >
> > gdalwarp -rc -tr 250 250 ortho.tif overview.tif
> >
> > and I get the following error:
> >
> > Error 1:Attempt to create 0X0X3 TIFF, but width, height and bands must
> be positive.
> >
> >
> > What do I need to add to my gdalwarp command?
>
> John,
>
> It would be helpful to give a gdalinfo report on the input file.  You
> also might want to try it without the -tr switch.  I suspect the
> input file is in geographic coordinates and so you are requesting
> an output with 250 degree x 250 degree pixels which results in a 0x0
> file producing the error message.
>
> 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
>
>


-- 
John J. Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070104/d50d10f9/attachment.html


More information about the Gdal-dev mailing list