gdal_merge adds black borders Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Tiling rgba geotiffs using vrt rather than gdal_warpgdal_merge produces incomplete mosaicTwo versions of gdal_merge and two diffrent effectsUnexpected gdal_merge resultCan't get gdal_merge Python script to rungdal_merge was unexpected at this timeGDAL_merge - Stacking Files - Nodata Value wrongGdal_merge doesn't workCreating geopackage from multiple raster files?remove white outline artefacts after gdalwarp/gdal2tiles

How to compare two different files line by line in unix?

Wu formula for manifolds with boundary

If a VARCHAR(MAX) column is included in an index, is the entire value always stored in the index page(s)?

How to Make a Beautiful Stacked 3D Plot

Compare a given version number in the form major.minor.build.patch and see if one is less than the other

Irreducible of finite Krull dimension implies quasi-compact?

How to convince students of the implication truth values?

Is CEO the profession with the most psychopaths?

Is it common practice to audition new musicians one-on-one before rehearsing with the entire band?

2001: A Space Odyssey's use of the song "Daisy Bell" (Bicycle Built for Two); life imitates art or vice-versa?

Can you use the Shield Master feat to shove someone before you make an attack by using a Readied action?

Trademark violation for app?

What is the longest distance a player character can jump in one leap?

If a contract sometimes uses the wrong name, is it still valid?

8 Prisoners wearing hats

Can a party unilaterally change candidates in preparation for a General election?

Chinese Seal on silk painting - what does it mean?

Can a new player join a group only when a new campaign starts?

Is it cost-effective to upgrade an old-ish Giant Escape R3 commuter bike with entry-level branded parts (wheels, drivetrain)?

What do you call the main part of a joke?

Extracting terms with certain heads in a function

Is safe to use va_start macro with this as parameter?

What is the meaning of the simile “quick as silk”?

Why are both D and D# fitting into my E minor key?



gdal_merge adds black borders



Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Tiling rgba geotiffs using vrt rather than gdal_warpgdal_merge produces incomplete mosaicTwo versions of gdal_merge and two diffrent effectsUnexpected gdal_merge resultCan't get gdal_merge Python script to rungdal_merge was unexpected at this timeGDAL_merge - Stacking Files - Nodata Value wrongGdal_merge doesn't workCreating geopackage from multiple raster files?remove white outline artefacts after gdalwarp/gdal2tiles



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I'm using gdal_merge.py to merge a few GeoTIFF's into a GeoPackage. The source files are UTM33 projection, 3 bands (RGB) without Nodata tags. They make up a non-rectangular mosaic, so gdal_merge correctly sets alpha=0 on the areas without data in the resulting GeoPackage.



However, it also inexplicably fills in a bit of black border. I notice that the black borders only appear along the "internal borders" i.e., not around the outer bounding box of the GeoPackage. Does anyone know if and how this can be fixed?



Note: I know that other GDAL tools such as GDALWarp is probably better for this particular case, but I am using this as a test for processes with very large amounts of source data. In such cases, gdal_merge is the best option I've found.



Command used:



gdal_merge -of GPKG -o output.gpkg srcfile1.tif srcfile2.tif srcfile3.tif srcfile4.tif


Source files:
enter image description here



Resulting GeoPackage:
enter image description here










share|improve this question




























    0















    I'm using gdal_merge.py to merge a few GeoTIFF's into a GeoPackage. The source files are UTM33 projection, 3 bands (RGB) without Nodata tags. They make up a non-rectangular mosaic, so gdal_merge correctly sets alpha=0 on the areas without data in the resulting GeoPackage.



    However, it also inexplicably fills in a bit of black border. I notice that the black borders only appear along the "internal borders" i.e., not around the outer bounding box of the GeoPackage. Does anyone know if and how this can be fixed?



    Note: I know that other GDAL tools such as GDALWarp is probably better for this particular case, but I am using this as a test for processes with very large amounts of source data. In such cases, gdal_merge is the best option I've found.



    Command used:



    gdal_merge -of GPKG -o output.gpkg srcfile1.tif srcfile2.tif srcfile3.tif srcfile4.tif


    Source files:
    enter image description here



    Resulting GeoPackage:
    enter image description here










    share|improve this question
























      0












      0








      0








      I'm using gdal_merge.py to merge a few GeoTIFF's into a GeoPackage. The source files are UTM33 projection, 3 bands (RGB) without Nodata tags. They make up a non-rectangular mosaic, so gdal_merge correctly sets alpha=0 on the areas without data in the resulting GeoPackage.



      However, it also inexplicably fills in a bit of black border. I notice that the black borders only appear along the "internal borders" i.e., not around the outer bounding box of the GeoPackage. Does anyone know if and how this can be fixed?



      Note: I know that other GDAL tools such as GDALWarp is probably better for this particular case, but I am using this as a test for processes with very large amounts of source data. In such cases, gdal_merge is the best option I've found.



      Command used:



      gdal_merge -of GPKG -o output.gpkg srcfile1.tif srcfile2.tif srcfile3.tif srcfile4.tif


      Source files:
      enter image description here



      Resulting GeoPackage:
      enter image description here










      share|improve this question














      I'm using gdal_merge.py to merge a few GeoTIFF's into a GeoPackage. The source files are UTM33 projection, 3 bands (RGB) without Nodata tags. They make up a non-rectangular mosaic, so gdal_merge correctly sets alpha=0 on the areas without data in the resulting GeoPackage.



      However, it also inexplicably fills in a bit of black border. I notice that the black borders only appear along the "internal borders" i.e., not around the outer bounding box of the GeoPackage. Does anyone know if and how this can be fixed?



      Note: I know that other GDAL tools such as GDALWarp is probably better for this particular case, but I am using this as a test for processes with very large amounts of source data. In such cases, gdal_merge is the best option I've found.



      Command used:



      gdal_merge -of GPKG -o output.gpkg srcfile1.tif srcfile2.tif srcfile3.tif srcfile4.tif


      Source files:
      enter image description here



      Resulting GeoPackage:
      enter image description here







      raster gdal geopackage gdal-merge






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 10 at 13:19









      MatsamentetMatsamentet

      164




      164




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "79"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f318372%2fgdal-merge-adds-black-borders%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f318372%2fgdal-merge-adds-black-borders%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          រឿង រ៉ូមេអូ និង ហ្ស៊ុយលីយេ សង្ខេបរឿង តួអង្គ បញ្ជីណែនាំ

          QGIS export composer to PDF scale the map [closed] Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Print Composer QGIS 2.6, how to export image?QGIS 2.8.1 print composer won't export all OpenCycleMap base layer tilesSave Print/Map QGIS composer view as PNG/PDF using Python (without changing anything in visible layout)?Export QGIS Print Composer PDF with searchable text labelsQGIS Print Composer does not change from landscape to portrait orientation?How can I avoid map size and scale changes in print composer?Fuzzy PDF export in QGIS running on macSierra OSExport the legend into its 100% size using Print ComposerScale-dependent rendering in QGIS PDF output

          PDF-ში გადმოწერა სანავიგაციო მენიუproject page