1

enter image description here

I've been trying to map an area of 35 images. Since they were in UTM I converted to Mercator projection using gdalwarp. I then tried to merge the images with the command:

gdal_merge -init 255 -o I:\newfilename.tif --optfile imagelist.txt 

which produced a mosaic that had missing data where each image would have overlapped, similar to black grid lines.

I made sure that the order of images in my text file was arranged in order but can't figure out what else it could be. I'm completely new to coding so anything helps.

  • Can you show us a screen shot? It sounds like you're experiencing similar to gis.stackexchange.com/questions/63004/…. Try GDALbuildVRT to build a virtual raster instead, be sure to specify -a_nodata and -s_nodata, view in QGIS or ArcGIS and when you're happy GDAL_Translate -of GTIFF your.vrt i:\newfilename.tif – Michael Stimson Apr 4 '18 at 22:34
  • Ok thank you ill give that a try! I just posted a picture. – Kody Oleson Apr 4 '18 at 22:45
  • I do have a few images that I clipped the missing data portion from using ArcGIS. Should I use the original images instead when merging? – Kody Oleson Apr 4 '18 at 22:50
  • It looks fairly similar to the related question. To screenshot, activate your window (click on the top bar), press Ctrl+PrtScn then paste into paint (or other editor), crop if needed, save and upload. – Michael Stimson Apr 4 '18 at 23:10
  • I see from your screen shot you have ArcGIS, have you considered a mosaic dataset? resources.arcgis.com/en/help/main/10.2/index.html#//… you can create a mosaic dataset and use it as you would a mosaiced raster without having to physically combine the images. Should you need to combine the images for a non-Esri package you can use Copy Raster resources.arcgis.com/en/help/main/10.2/index.html#//… to export a mosaic dataset to a single raster. – Michael Stimson Apr 5 '18 at 1:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.