Skip to main content
Question

Mbtiles conversion create Black tile background

  • February 5, 2025
  • 2 replies
  • 23 views

froberts
Contributor
Forum|alt.badge.img+2

 I have tiff file that I have been provided when I run it through FME Workbench 2024.2 to create a mbtiles package, I get this strange black background, I assume it is the defulat tile for the area.  The orginal tiff only occupies the extent of what you see in the map itself below.  So the conversion is tacking on this huge black boundary.  Any ideas on how I make it not do that?  I have included a screen shot of my settings below.  Thanks for any ideas!!

 

 

2 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+35

Try switching the tile format to PNG. Jpeg does not support transparency. 

 

My guess for the size is proooobably based on the minimum zoom level of 1. A minimum zoom level of 1 mean that the image extent will be really large so fme has likely filled in the rest of the image with 0,0,0. 

 

You can try and change the minimum zoom level  to be higer or see if png helps. 

 

If you still get black with PNG output then you can add a rasterInterpretationCoercer into your wrokflow and got from RGB24 to RBG32. This will add the ALPHA band to the raster wich controls the transparency. 

 

The output file size with png will be larger than jpeg so that's something to consider 


froberts
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • February 12, 2025

Thanks ​@virtualcitymatt switching from jpg to png did the trick. 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings