[Geoserver-users] Mosaic Transparency Problem

Hello,

I am using Geoserver 2.4.1 (Linux CentOS 6.4) and I have problem to properly setup transparency parameters for my mosaic. The mosaic is based on 8bits GeoTIFFs:

Driver: GTiff/GeoTIFF
Files: 341.234.164.TIF
341.234.164.tfw
Size is 9554, 6132
Coordinate System is:
PROJCS[“ETRS89 / Poland CS2000 zone 5”,
GEOGCS[“ETRS89”,
DATUM[“European_Terrestrial_Reference_System_1989”,
SPHEROID[“GRS 1980”,6378137,298.2572221010002,
AUTHORITY[“EPSG”,“7019”]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY[“EPSG”,“6258”]],
PRIMEM[“Greenwich”,0],
UNIT[“degree”,0.0174532925199433],
AUTHORITY[“EPSG”,“4258”]],
PROJECTION[“Transverse_Mercator”],
PARAMETER[“latitude_of_origin”,0],
PARAMETER[“central_meridian”,15],
PARAMETER[“scale_factor”,0.999923],
PARAMETER[“false_easting”,5500000],
PARAMETER[“false_northing”,0],
UNIT[“metre”,1,
AUTHORITY[“EPSG”,“9001”]],
AUTHORITY[“EPSG”,“2176”]]
Origin = (5501192.309523180127144,5919720.349142497405410)
Pixel Size = (0.085176814373143,-0.085176814373173)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 5501192.310, 5919720.349) ( 15d 1’ 4.55"E, 53d24’33.63"N)
Lower Left ( 5501192.310, 5919198.045) ( 15d 1’ 4.54"E, 53d24’16.73"N)
Upper Right ( 5502006.089, 5919720.349) ( 15d 1’48.61"E, 53d24’33.62"N)
Lower Right ( 5502006.089, 5919198.045) ( 15d 1’48.60"E, 53d24’16.72"N)
Center ( 5501599.199, 5919459.197) ( 15d 1’26.57"E, 53d24’25.18"N)
Band 1 Block=256x256 Type=Byte, ColorInterp=Palette
Computed Min/Max=0.000,1.000
Color Table (RGB with 256 entries)
0: 0,0,0,255
1: 255,255,255,255
2: 0,0,0,255

255: 0,0,0,255

Event thought the rasters are 8bit only two colors are used: white for a background and black for raster data.

Rasters overlaps and with default layer settings and basic ‘raster’ style I can see white strips at the borders of rasters. According to a documentation I tried to set InputTransparentColor to #FFFFFF (white color) to make rasters transparent and avoid the strips but as a result I got completely black mosaic.

Is there something more I should do with layer configuration? Maybe rasters are wrong?

Best regards

···


Dariusz Michura

Hello,

I solved to problem but I think it is worth to list it at GeoServer JIRA.

I got rid of white strips by setting up InputTransparentColor to #FFFFFF but I had to change the order of first two colors in a color palette (see indexes 0 and 1 in Color Table below). After the color palette change everything works fine.

Now I have another problem with mosaic and 1bit GeoFIFFs but I will connect to one of existing threads.

regards,

···

On 2013-11-21 16:10, Dariusz Michura wrote:

Hello,

I am using Geoserver 2.4.1 (Linux CentOS 6.4) and I have problem to properly setup transparency parameters for my mosaic. The mosaic is based on 8bits GeoTIFFs:

Driver: GTiff/GeoTIFF
Files: 341.234.164.TIF
341.234.164.tfw
Size is 9554, 6132
Coordinate System is:
PROJCS[“ETRS89 / Poland CS2000 zone 5”,
GEOGCS[“ETRS89”,
DATUM[“European_Terrestrial_Reference_System_1989”,
SPHEROID[“GRS 1980”,6378137,298.2572221010002,
AUTHORITY[“EPSG”,“7019”]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY[“EPSG”,“6258”]],
PRIMEM[“Greenwich”,0],
UNIT[“degree”,0.0174532925199433],
AUTHORITY[“EPSG”,“4258”]],
PROJECTION[“Transverse_Mercator”],
PARAMETER[“latitude_of_origin”,0],
PARAMETER[“central_meridian”,15],
PARAMETER[“scale_factor”,0.999923],
PARAMETER[“false_easting”,5500000],
PARAMETER[“false_northing”,0],
UNIT[“metre”,1,
AUTHORITY[“EPSG”,“9001”]],
AUTHORITY[“EPSG”,“2176”]]
Origin = (5501192.309523180127144,5919720.349142497405410)
Pixel Size = (0.085176814373143,-0.085176814373173)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 5501192.310, 5919720.349) ( 15d 1’ 4.55"E, 53d24’33.63"N)
Lower Left ( 5501192.310, 5919198.045) ( 15d 1’ 4.54"E, 53d24’16.73"N)
Upper Right ( 5502006.089, 5919720.349) ( 15d 1’48.61"E, 53d24’33.62"N)
Lower Right ( 5502006.089, 5919198.045) ( 15d 1’48.60"E, 53d24’16.72"N)
Center ( 5501599.199, 5919459.197) ( 15d 1’26.57"E, 53d24’25.18"N)
Band 1 Block=256x256 Type=Byte, ColorInterp=Palette
Computed Min/Max=0.000,1.000
Color Table (RGB with 256 entries)
0: 0,0,0,255
1: 255,255,255,255
2: 0,0,0,255

255: 0,0,0,255

Event thought the rasters are 8bit only two colors are used: white for a background and black for raster data.

Rasters overlaps and with default layer settings and basic ‘raster’ style I can see white strips at the borders of rasters. According to a documentation I tried to set InputTransparentColor to #FFFFFF (white color) to make rasters transparent and avoid the strips but as a result I got completely black mosaic.

Is there something more I should do with layer configuration? Maybe rasters are wrong?

Best regards


Dariusz Michura


Dariusz Michura

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
[http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk](http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk)
_______________________________________________
Geoserver-users mailing list
[Geoserver-users@lists.sourceforge.net](mailto:Geoserver-users@lists.sourceforge.net)
[https://lists.sourceforge.net/lists/listinfo/geoserver-users](https://lists.sourceforge.net/lists/listinfo/geoserver-users)