[gdal-dev] "gdalwarp -te " units of source or target srs?
Frank Warmerdam
warmerdam at pobox.com
Wed Nov 19 17:32:26 EST 2008
Matt Wilkie wrote:
> Hello,
>
> With regards to gdalwarp target_extent parameter, are the coords for the
> target coordinate system or the source coordinate system?
> from http://www.gdal.org/gdalwarp.html:
>
> -te xmin ymin xmax ymax:
> set georeferenced extents of output file to be created.
>
> I ask because I'm getting "ERROR 1: Attempt to create 11158x-7438
> dataset is illegal,sizes must be larger than zero." and I don't know
> whether it's because both the source and targe SRS have negative coords
> in their extent or my clipping coords are out of bounds or something else.
>
> gdalwarp -t_srs %dst_proj% in.tif out.tif -te -2949.031, 1322540.680
> 1002042.239, 652516.412
> Creating output file that is 11158P x -7438L.
> ERROR 1: Attempt to create 11158x-7438 dataset is illegal,sizes must be
> larger than zero.
Matt,
The -te arguments are in the output file coordinate system.
In your case the ymin value is larger than ymax which is causing
confusion.
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 | Geospatial Programmer for Rent
More information about the gdal-dev
mailing list