[GRASS-user] Merging Raster Files in GRASS

Veronica Andreo veroandreo at gmail.com
Wed Oct 10 04:28:43 PDT 2018


You need to set the computational region to the extent of the 4 tiles first:

g.region raster=map1,map2,map3,map4 -p

Then you can use r.patch. See 'Notes' section here:


El mié., 10 oct. 2018 8:09, Mehrdad Varedi <varedi at gmail.com> escribió:

> Hi Everyone,
> I have four DEM files to merge. their format is Tiff and I can merge them
> easily in QGIS and create a virtual Raster file. I can't import that
> virtual layer into GRASS and I don't know how can I do the same on GRASS
> GIS. If I could merge them to one big raster file in any possible way, that
> would be great.
> None of the following has worked for me. (Maybe I am using them
> incorrectly in some cases or probably that's my machine)
> *r.buildvrt *in version (7.4.0 and 7.4.1)generated the following error:
>             'r.buildvrt' is not recognized as an internal or external
> command, operable program or batch file.
> I have tried *r.patch *which doesn't generate any error, although the
> created result is empty with no errors.
> *r.out.gdal* and using the grouping option to group the layers and export
> them to a new Tiff, although that had a similar output as r.patch.
> A virtual raster file in QGIS was created using the 4 Tiff files and
> importing to grass using r.import, didn't work and I got errors.
> I don't want a fix for all of the above, I just wanted to share with you
> what I have done so far. Would you please help to merge the 4 Tiff files
> into one?
> Thanks for your help,
> Mehrdad
> --
> Mehrdad Varedi
>> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20181010/ca2f9a7d/attachment.html>

More information about the grass-user mailing list