<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1255"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 06/06/2010 01:52 PM, Sandile Gumede wrote:
<blockquote
cite="mid:AANLkTinWX2Cd8qP5WE0ih32twMIhfFn04sdeUUbkbeG_@mail.gmail.com"
type="cite">Hi <br>
<br>
I've got these coordinates <br>
upper-right-corner: 33 degrees, 40 minutes, 31.28 seconds S<br>
18 degrees, 17 minutes, 32.52 seconds E<br>
<br>
<br>
lower-left-corner: 33 degrees, 40 minutes, 31.28 seconds S<br>
18 degrees, 38 minutes, 55.37 seconds E<br>
<br>
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:<br>
<br>
Input file size is 36001 , 24001<br>
Computed -srcwin -52409 -39950 -328 -427 from projected window.<br>
Computed -srcwin falls outside raster size of 36001X24001<br>
<br clear="all">
</blockquote>
Perhaps you have the coordinates above in the wrong order? It should be:<br>
-projwin <Upper Left X> <Upper Left Y> <Lower Right
X> <Lower Right Y><br>
so for Cape town you probably want<br>
-projwin 18.29237 -33.67536 18.64871 -33.94925 <br>
<br>
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.<br>
<br>
<blockquote
cite="mid:AANLkTinWX2Cd8qP5WE0ih32twMIhfFn04sdeUUbkbeG_@mail.gmail.com"
type="cite"><br>
<br>
This mail was received via Mail-SeCure System.<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
This mail was received via Mail-SeCure System.
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Micha Silver
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il/">http://www.surfaces.co.il/</a>
Arava Development Co. +972-52-3665918</pre>
</body>
</html>