[Gdal-dev] Problem with gdal_translate

Frank Warmerdam warmerdam at pobox.com
Mon Jan 11 15:33:57 EST 2010


NopMap wrote:
> 
> Hi!
> 
> 
> Frank Warmerdam wrote:
>> You need to specify the corners in the coordinate system of the
>> image.  So the values should be the meter based projected coordinates
>> like 1102062,6818226.
>>
> 
> Is this also true for -projwin? From the documentation I got the impression
> that -srcwin requires meters while -projwin accepted the coordinates in
> lat/lon??

Nop,

-srcwin takes the locations in pixel/line coordinate system.  -projwin
takes it in the coordinate system of the image, which might be projected
or geographic depending on the image.  But from the gdalinfo report I can
see your image is projected.

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