[gdal-dev] snap window with gdalwarp

Frank Warmerdam warmerdam at pobox.com
Mon Jul 19 14:08:07 EDT 2010


Gregory, Matthew wrote:
> Hi all,
> 
> Is there a way to set a 'snap' coordinate for a target dataset in gdalwarp
> without having to know the target extent?  For example, if I wanted my
> target dataset to have extent corners that were a multiple of my cellsize, I
> could specify (0.0, 0.0) as my snap coordinate.  In Arc, this is
> accomplished as:
> 
> project grid src target projection.prj bilinear 30 0 0
> 
> I'm guessing that with gdalwarp you have to first have to figure out what
> the projected extent is, buffer that out to your desired snapped extent and
> then run gdalwarp with that calculated extent and the -te option.  Using VRT
> as the target data format to figure out this information is simple enough.
> I just wanted to make sure that there weren't command line flags I was
> overlooking.

Matthew,

I am not aware of any such capability currently.

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