Results 1 to 10 of 18

Thread: [Award Winner] Managing SRTM information with GDAL

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Guild Novice vehrka's Avatar
    Join Date
    Mar 2009
    Location
    Valencia, Spain
    Posts
    19

    Post

    3.-Joinning the tiles.

    We're going to use gdal_merge for joinning the tiles, it's a console apllication (a command) for joinning raster datasets. I you type:

    Code:
    gdal_merge
    you will get a lot of information about this command, but I'm just getting to the meat of the matter:

    If we have four tiles files srtm_36_04.tif, srtm_36_05.tif, srtm_37_04.tif y srtm_37_05.tif; you can join them typping:

    Code:
    gdal_merge -o mosaico.tif srtm_36_04.tif srtm_36_05.tif srtm_37_04.tif srtm_37_05.tif
    After -o comes the name of the output file, after that comes the names of the files, space sepparated; though the desired output format is the same that the standard (GeoTiff) we're not using the -of option.

    4.- Cropping.

    For cropping we are going to use gdalwarp.

    Code:
    gdalwarp -te 626680 4191038 815725 4519394 mosaico.tif mosaico_rer.tif
    after the -te option you must add the area coordinates
    Last edited by vehrka; 05-08-2009 at 03:21 AM.
    --
    vehrka

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •