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

          Export of reprojected layer from GEE fails 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?Iterate over features and years to export images for each feature-yearEarth engine reproject: why does reprojecting a pixel at 30m scale gives me pixels with an area of ~550?Exporting slope raster for entire country in GEEGEE Landsat SR year composite // mask cloud / shadow out w/ other method than quality pixel"export region contains no valid (un-masked) pixels - Google Earth EgineGoogle Earth Engine, how to distinguish between rivers/streams and ponds/lakes in a water maskPython script tool fails when processing rainfall data from Google Earth EngineGoogle Earth Engine Error: Number of pixels requested from Image.load exceeds the maximum allowedCloudfree images in small area from Sentinel-2Using Image exportToDrive in Google Earth Engine?

          Creating closest line along the point''s azimuth using PostgreSQL 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?Drawing line between points at specific distance in PostGIS?How to efficiently find the closest point over the dateline?How to find the nearest point by using PostGIS function?PostGIS nearest point with LATERAL JOIN in PostgreSQL 9.3+Creating a table and inserting selected streets using plpgsql functionsCreating a table that stores Distances and other columnSaving select query results (year wise) from PostgreSQL/PostGIS to text filesWhat is the information behind this geometry?How to give start and end vertex ids dynamically in pgr_dijkstra?Point to Polygon nearest distance DS_distance is not using geography index & knn <-> or <#> does not give result in orderLine to point conversion with start point and end point detection?

          Crop image to path created in TikZ? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Crop an inserted image?TikZ pictures does not appear in posterImage behind and beyond crop marks?Tikz picture as large as possible on A4 PageTransparency vs image compression dilemmaHow to crop background from image automatically?Image does not cropTikzexternal capturing crop marks when externalizing pgfplots?How to include image path that contains a dollar signCrop image with left size given