[gdal-dev] Problem with gdalwarp

Jeff Lake admin at michiganwxsystem.com
Sun Jul 8 13:01:27 PDT 2012


I am attempting to crop a geo tiff that I reprojected ..
But I keep getting the error I cannot make an image that is 0x0

gdalinfo of the geotif

Driver: GTiff/GeoTIFF
Files: na_regionals.tif
Size is 13738, 9740
Coordinate System is:
PROJCS["unnamed",
     GEOGCS["WGS 84",
         DATUM["unknown",
             SPHEROID["WGS84",6378137,298.257223563]],
         PRIMEM["Greenwich",0],
         UNIT["degree",0.0174532925199433]],
     PROJECTION["Lambert_Conformal_Conic_2SP"],
     PARAMETER["standard_parallel_1",25],
     PARAMETER["standard_parallel_2",25],
     PARAMETER["latitude_of_origin",36.5],
     PARAMETER["central_meridian",-95],
     PARAMETER["false_easting",0],
     PARAMETER["false_northing",0],
     UNIT["metre",1,
         AUTHORITY["EPSG","9001"]]]
Origin = (-8824126.437603076919913,8459741.486810354515910)
Pixel Size = (1109.003596911612931,-1109.003596911612931)
Metadata:
   AREA_OR_POINT=Area
Image Structure Metadata:
   INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (-8824126.438, 8459741.487) (109d 0'29.50"E, 58d50' 2.53"N)
Lower Left  (-8824126.438,-2341953.547) (168d 6'52.48"W, 5d12'19.39"S)
Upper Right ( 6411364.977, 8459741.487) ( 43d12'43.71"E, 72d27'51.59"N)
Lower Right ( 6411364.977,-2341953.547) ( 39d23'29.30"W, 3d51'28.79"N)
Center      (-1206380.730, 3058893.970) (112d24'29.73"W, 60d35' 2.20"N)
Band 1 Block=13738x1 Type=Byte, ColorInterp=Red
Band 2 Block=13738x1 Type=Byte, ColorInterp=Green
Band 3 Block=13738x1 Type=Byte, ColorInterp=Blue


my gdalwarp command to crop
  gdalwarp -te -119.045 57.455 -73.818 10.284 na_regionals.tif 
conus_lcc.tif

and the error
Creating output file that is 0P x 0L.
ERROR 1: Attempt to create 0x0 dataset is illegal,sizes must be larger 
than zero.

what am I doing wrong
version info
GDAL 1.8.0, released 2011/01/12

-Jeff Lake
MichiganWxSystem.com
WeatherMichigan.net
TheWeatherCenter.net
GRLevelXStuff.com





More information about the gdal-dev mailing list