Merge Raster Layers in QGIS (Create a Raster Mosaic)

Поделиться
HTML-код
  • Опубликовано: 30 янв 2025

Комментарии • 47

  • @vidarvaggen
    @vidarvaggen 2 года назад +8

    Not all heroes wear capes! Well you might wear a cape for all I know, but seriously: THANK YOU SO MUCH! I was starting to panic. I have one week to make a 3D map for a TV show. Have done it before, but not at this scale. I didnt have three tiles, but 658 tiles in a horrible mosaic of different gray scales. Now I have one big beatiful and smooth terrain. Thank you again sir!!

  • @Ayomide_Igbaroola
    @Ayomide_Igbaroola 3 года назад +2

    Thank you. This video really saved me from so much headache.

  • @ola43321
    @ola43321 Год назад +1

    Very helpful, glad I found it, thanks!

  • @stratospheros
    @stratospheros 2 года назад +1

    Thanks for useful method and your deep knowledges in qgis.

  • @nounsiart
    @nounsiart 8 месяцев назад +1

    Hello, thanks for the video. I have a question please, why I don't have python3 -m in the GDAL/OGR console call, thank you

  • @carlaocano6660
    @carlaocano6660 2 года назад +4

    Thanks for your video! I am working with images from Sentinel 2. Do you know the procedure if the images have some black areas and if they have some overlapping areas, how can I choose the image I want in the final product? From already thank you very much

  • @carlosabellanosa
    @carlosabellanosa 2 года назад +2

    Thanks. I resolved in another way due to I got an error during process. Every tile has a min and max elevation according to white (max) and black (min); so every tile has more or less its own grayscale. I downloaded 18 tiles with HUGE tone differences between each other: a mess. What I did is to find the lower altitude and rewrite this min to all tiles (in the video is 1389.49); same with max (in the video 3301.7). Dobleclicking the layer will open a info chart to change these data. Tara! The result its a beautifull smooth heightmap.

  • @laplaceha6700
    @laplaceha6700 2 года назад +2

    Excuseme, is it possible to change the merging order? I'm merging different bands of image to a single image with multiple bands,but it seems QGIS has its own default merge order.

  • @MrEliteMossy
    @MrEliteMossy 3 года назад +2

    when i try to merge 2 rasters a black screen appear in there place after the proccess
    any help?

  • @rafiaja6039
    @rafiaja6039 6 месяцев назад

    Thank you so much for the tutorial :) and i want to ask you about the code for GDAL/OGR console call for mine is different from you so how to change the program just like you

  • @mbifteki1
    @mbifteki1 5 месяцев назад

    hi! I am trying to merge virtual rasters with the same procedure and I get an error: RuntimeError: Writing through VRTSourcedRasterBand is not supported. Is there anything specific about merging virtual rasters? Thank you for your video!

  • @wagnersarto7994
    @wagnersarto7994 Год назад

    very cool!!
    How could I merge a raster of the whole country?
    I feel that it is not feasible, because the memory goes to infinity.
    But is there a way around it?

    • @geospatialschool
      @geospatialschool  Год назад +1

      Depends on the resolution of your rasters and the amount of memory your machine has. It could be done, it might take forever and require writing custom code. Or a machine with enough memory

  • @MasaZOSever
    @MasaZOSever Месяц назад

    Thank you for this video, but there is one IMPORTANT thing you did not mention. If you need to preserve real data then you should set the Accuracy at each raster to: Actual (slower). In this way you will not lose the REAL RANGE OF THE ORIGINAL RASTER - as you did in this video!

  • @jonghojeong3857
    @jonghojeong3857 3 года назад +1

    Thank you for this

  • @am1BOTEA
    @am1BOTEA 3 года назад +3

    Thank you :)

  • @dak4482
    @dak4482 Год назад

    hi, I have a county size group pf 1000 lidars (.laz's)that I had to break up into 3 projects because QGIS kept choking on any group larger than around 500 layers. How would I go about merging all 3 of those groups of layers into one project/tiff file. Thx in advance for any help. ....Dan

    • @geospatialschool
      @geospatialschool  Год назад

      With that many files I wouldn't use QGIS. You're getting to a point where you probably want to store and analyze those data on the cloud

    • @dak4482
      @dak4482 Год назад

      ok thx
      @@geospatialschool

  • @icarosanchesdeandrade3667
    @icarosanchesdeandrade3667 2 года назад

    What're your machine configuration? I'm trying to merge some files in a i5 with 8gb ram and a SSD
    The files size are 600 mb
    And does it works with overlayed layers?

  • @ViCtOrBization
    @ViCtOrBization 3 года назад

    So usefull. Just a question... when i do the same with two different dem, the merged output has a maximum value lower than the maximum in one of the original ones. Some idea about why is it doing this? If i check the higher areas with the "identify features" of the merged file I find pixels with higher values than the maximum... it's just weird

    • @geospatialschool
      @geospatialschool  3 года назад +1

      It's probably just that the statistics weren't recalculated or were only calculated on a sample of values. There's a QGIS tool to calculate the statistics

    • @ViCtOrBization
      @ViCtOrBization 3 года назад

      @@geospatialschool Your're right, thanks a lot

    • @danielwarren4541
      @danielwarren4541 2 года назад

      @@geospatialschool can you direct me to the tool you mention - I am having the same problem

  • @lassinesanankoua4743
    @lassinesanankoua4743 3 года назад +1

    Thank you very much

  • @gavinjones7187
    @gavinjones7187 3 года назад

    Can you merge aerial images with the raster to give it colour then export as a colour point cloud

  • @rec11fdc
    @rec11fdc 3 года назад

    Thank you for this! I have a question though, I've tried it with a large amount of files (70Gb of information) and it tells me there isn't enough disk space to store the resulting file. The disk however has over 400Gb of free space. Does the merged file actually take that much more space than the mosaic files?

    • @geospatialschool
      @geospatialschool  3 года назад

      It could be that the error is not for writing the result to disk, but loading it into memory. Depending on how it works behind the scenes you could be limited by RAM

    • @hohvideos3238
      @hohvideos3238 3 года назад

      it also may be a compression issue. If the original files are compressed and the resulting file has no compression, it can be a lot larger than 70 gb.

  • @itrstt66
    @itrstt66 Год назад

    it gave an error saying it was saving in too many bands
    what is a band?

  • @pitruchhaya
    @pitruchhaya 3 года назад

    Hi. Can you please let me know why do the min and the max elevations of the merged raster dont tie in with the other individual rasters? Second, can you please point me to your video wherein you can stamp rasters with some intersection between them and asks user the sequence to stamp?

    • @geospatialschool
      @geospatialschool  3 года назад

      You may just need to recalculate the statistics. Sometimes the raster statistics are computed from a sample instead of all values.

    • @pitruchhaya
      @pitruchhaya 3 года назад

      @@geospatialschool Thanks for your response. I will check this. Can you please answer my second question too?

    • @gaborfekets6899
      @gaborfekets6899 3 года назад

      @@geospatialschool Hi, thanks for your video. I have the same problem. After clip, or merge the new MIN/MAX values are different. The new MAX value is higher, then the old image file. Recalculated, but still the same problem. I'm new at this QGIS world, can you please help how to step forward? Thanks.

    • @geospatialschool
      @geospatialschool  3 года назад

      Are the statistics on the original rasters correct? And how different are the new values? Resampling does happen when doing the merge so the values may be slightly different.

  • @khinmyatchae4878
    @khinmyatchae4878 3 года назад +1

    Thanks for sharing

  • @36zero97
    @36zero97 3 года назад

    Qgis 3.18 please...

  • @Cuudiee
    @Cuudiee 2 года назад

    why are u so confused with whatever ur trying to show in thi video....

  • @JadeTimperman
    @JadeTimperman 27 дней назад

    Hi, thanks for the video. I tried to merge 2 tile, but I keep having this error:
    Format driver GMT does not support creation and piecewise writing.
    Please select a format that does, such as GTiff (the default) or HFA (Erdas Imagine).
    Process returned error code 1
    Execution completed in 0.46 seconds
    Results:
    {'OUTPUT': '/private/var/folders/2s/bmdj9c0176n9kvgm9m37xllw0000gn/T/processing_ThKPfB/94b4702422bd4fc1b52ab50caefcaed2/OUTPUT.nc'}
    Loading resulting layers
    The following layers were not correctly generated.
    • /private/var/folders/2s/bmdj9c0176n9kvgm9m37xllw0000gn/T/processing_ThKPfB/94b4702422bd4fc1b52ab50caefcaed2/OUTPUT.nc
    You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.
    I used 2 DEM with 30m resolution from ASTER Global Digital Elevation Model V003, specific ID: ASTGTMV003_N13E038 and ASTGTMV003_N13E039
    Already thank you for your answer!