[gdal-dev] Re: cut a .dem file
Joaquim Luis
jluis at ualg.pt
Wed Sep 8 11:47:11 EDT 2010
On 08-09-2010 16:38, Carmelo Terrasi wrote:
> Yes, you're right, if I need a portion I have to use that utility.
> Thank you so much Hermann,
> regards,
> Carmelo
Not so simple.
The problem will be that your bmp image is not referenced but the DEM
is, so you'll need to find the correspondence between the (row,column)
coordinates of the bmp image and the (x,y) coords of the model. That
means referencing the image (bmp) to the grid (dem).
Joaquim
>
> 2010/9/8 Hermann Peifer <peifer at gmx.eu <mailto:peifer at gmx.eu>>
>
> On 08/09/2010 15:26, Carmelo Terrasi wrote:
>
> Hello everybody,
>
> does anybody know how to cut a smaller dem file from another
> one???
> I have my original file /terrain.dem /but my /image.bmp/ is
> smaller so I
> would cut a portion just to create another suitable dem file
> for my
> /image.bmp/
> Is it possible to do it or am I off-board?
>
>
> Look at the -srcwin and -projwin options at
> http://gdal.org/gdal_translate.html
>
> Hermann
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100908/b4a0ef26/attachment.html
More information about the gdal-dev
mailing list