On 06/06/2010 01:52 PM, Sandile Gumede wrote:
Hi
I've got these coordinates
upper-right-corner: 33 degrees, 40 minutes, 31.28 seconds S
18 degrees, 17 minutes, 32.52 seconds E
lower-left-corner: 33 degrees, 40 minutes, 31.28 seconds S
18 degrees, 38 minutes, 55.37 seconds E
I want to clip a portion of Cape Flats using these coordinates from a
GeoTiff that covers the whole South Africa. I tried to convert these
coordinates into decimal degrees but when I'm trying to run
gdal_translate -projwin -33.67536 18.29237 -33.94925 18.64871
srtmgdem.tif cape_flats.tif its giving me an error message:
Input file size is 36001 , 24001
Computed -srcwin -52409 -39950 -328 -427 from projected window.
Computed -srcwin falls outside raster size of 36001X24001
Perhaps you have the coordinates above in the wrong order? It should be:
-projwin <Upper Left X> <Upper Left Y> <Lower Right X> <Lower Right Y>
so for Cape town you probably want
-projwin 18.29237 -33.67536 18.64871 -33.94925
Running 'gdalinfo srtmgdem.tif' will give you the bounding box (Upper
Left, Lower Right, etc) of the original. This way you can see if you've
chosen an area within the original.
This mail was received via Mail-SeCure System.
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user
This mail was received via Mail-SeCure System.
--
Micha Silver
http://www.surfaces.co.il/
Arava Development Co. +972-52-3665918
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user