<div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">You need to set the computational region to the extent of the 4 tiles first:</div><div dir="auto"><br></div><div dir="auto">g.region raster=map1,map2,map3,map4 -p</div><div dir="auto"><br></div><div dir="auto">Then you can use r.patch. See 'Notes' section here: <a href="https://grass.osgeo.org/grass74/manuals/r.patch.html">https://grass.osgeo.org/grass74/manuals/r.patch.html</a></div><div dir="auto"><br></div><div dir="auto">HTH,</div><div dir="auto">Vero</div><div dir="auto"><br></div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr">El mié., 10 oct. 2018 8:09, Mehrdad Varedi <<a href="mailto:varedi@gmail.com" target="_blank" rel="noreferrer">varedi@gmail.com</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Everyone,<div>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.</div><div><br></div><div>None of the following has worked for me. (Maybe I am using them incorrectly in some cases or probably that's my machine)</div><div><br></div><div><b>r.buildvrt </b>in version (7.4.0 and 7.4.1)generated the following error: </div><div><div>            'r.buildvrt' is not recognized as an internal or external command, operable program or batch file.</div></div><div>I have tried <b>r.patch </b>which doesn't generate any error, although the created result is empty with no errors.<br clear="all"><div><br></div><div><b>r.out.gdal</b> 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.</div><div><br></div><div>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.</div><div><br></div><div>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? <br></div><div><br></div><div>Thanks for your help,</div><div><br></div><div>Mehrdad</div><div><br></div>-- <br><div dir="ltr" class="m_2395023966905671946m_-4496816729236329970gmail_signature">Mehrdad Varedi</div></div></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=admFyZWRpQGdtYWlsLmNvbQ%3D%3D&type=zerocontent&guid=884be4a3-52a7-4353-a05b-bda29544a624"><font color="#ffffff" size="1">ᐧ</font></div>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a></blockquote></div>