[Gdal-dev] gdal_translate Question

Paul Parisi ppp5150 at hotmail.com
Mon Jan 2 20:41:14 EST 2006


Thanks for the help, Matt. It turns out the SRTM and Landsat files were 
using different coordinate systems. I found a converter online to go from 
lat/long to UTM, so I was able to use gdal_translate successfully.  gdalwarp 
will do this too?

Paul


>From: Matthew Perry <perrygeo at gmail.com>
>To: Paul Parisi <ppp5150 at hotmail.com>
>CC: gdal-dev at lists.maptools.org
>Subject: Re: [Gdal-dev] gdal_translate Question
>Date: Sun, 1 Jan 2006 11:16:20 -0800
>
>Paul,
>
>On 12/31/05, Paul Parisi <ppp5150 at hotmail.com> wrote:
> > I'm a new user and am running into a problem with the gdal_translate
> > utility. I'm trying to crop a Landsat GTIFF image to fit a smaller SRTM
> > elevation map. The documentation does not say what format the "ulx"
> > coordinates must be, so I tried the following:
> >
> > gdal_translate -of GTiff -projwin -116.000168 38.000331 -114.999256
> > 36.999143 Groom_1.tif Groom_1_Crop.tif
>
>   The "ulx" and "uly" are the upper left coordinates and the "lrx" and
>"lry" are the lower right. It looks like your coordinates are in the
>proper order.
>
>   Looks like you're using longitudes and latitudes for your cropping
>window. Can you confirm that the original tiff is in the same
>coordinate system? Try the gdalinfo command to see if the extent
>values are reasonable and if the tiff has any projection information.
>If it's not lat/long, you could first use gdalwarp to reproject it.
>
>--
>Matt Perry
>perrygeo at gmail.com
>http://www.perrygeo.net





More information about the Gdal-dev mailing list