[Freegis-list] Clipping raster with OpenEV
Frank Warmerdam
fwarmerdam at gmail.com
Sat Feb 19 03:47:34 CET 2005
On Fri, 18 Feb 2005 20:27:40 -0500, Rajkumar Singh <gisdude at hotpop.com> wrote:
> Hi,
>
> I'm not sure if this question was answered on the list before so please
> forgive my ignorance. I did a search on Google but didn't find anything
> substantial either. I'm trying to clip a DEM (GTOPO30) using a box
> defined by two pairs of latitude/longitude coordinates. Is there anyway
> to do it without having to define the ROI by drawing a box? Or is there
> any other free software I can use besides GRASS? If there are any
> tutorials online please point me to them. Thanks for all responses.
Raj,
You can clip out a subrectangle using gdal_translate.
eg.
gdal_translate -projwin ulx uly lrx lry in.tif out.tif
Using the -projwin argument, the corners are in the coordinate
system of the file in question. With GTOPO that would be
lat/long.
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 Freegis-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)