[Gdal-dev] gdal_translate question

Frank Warmerdam warmerdam at pobox.com
Thu Aug 19 11:53:34 EDT 2004


David W. Lowther wrote:
> List,
> 
> When running gdal_translate with the -proj_win option the program
> calculates a -src_win. I have been getting calculated src_win(s) with
> negative numbers (both for offset and size). Is this supposed to happen?

David,

If your projwin falls off the edge of the image this can happen.  I have
just patched gdal_translate to terminate if the window is off the image
since things cannot proceed properly.

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