Hi Andrea,
I can not update my GeoServer currently therefore the implementation you
have mentioned is not possible for me.
There should be some way to define by SLD and layer config that one value
should be transparent. Actually I had a setup which done exactly that, but
I have no copy of the sld and layer config anymore.

On Thu, Oct 22, 2015 at 10:01 AM, Andrea Aime <andrea.a...@geo-solutions.it>
wrote:

> Hi Floarian,
> GeoServer historically has had no support for "nodata" pixels.
> In version 2.8.0 we have a first implementation of nodata support, but
> it's not enabled by default
> as we have seen some misbehaviors in it.
>
> If you want to try it out, get GeoServer 2.8.0 and add the following
> system variable declarations to the "java"
> call running the web container for GeoServer (e.g., Tomcat, Jetty):
>
> -Dorg.geotools.coverage.jaiext.enabled=true
>
> Cheers
> Andrea
>
>
> On Wed, Oct 21, 2015 at 4:59 PM, Florian Hoedt <ganneb...@gmail.com>
> wrote:
>
>> Hello List
>> I have trouble to display overlaying rasters which contain topografic
>> informations. The rasters are the german topografic map (DGK) which is
>> represented by two layers: The base layer shows all roads and cities as
>> value 0 rastercells, the relief layers shows all topolines as value 0
>> rastercells. The other cells have 1 as value. I translated them with
>> gdal_translate to geotiff an set 1 as no_data value - which should get rid
>> of those "no info cells". In QGIS they show up properly and I can see both
>> layers (1 value cells are transparent/ non existing). If used in GeoServer
>> I am unable to see both layers, since the 1 value cells are rendered as
>> white pixels. Something is wrong on the GeoServer side. Here are my
>> settings:
>>
>> *Rasterdaten Parameter*
>> Accurate resolution computation
>> AllowMultithreading
>> BackgroundValues
>> Filter
>> FootprintBehavior
>> InputTransparentColor
>>
>> MaxAllowedTiles
>> MergeBehavior
>> OutputTransparentColor
>>
>> SORTING
>> SUGGESTED_TILE_SIZE
>> USE_JAI_IMAGEREAD
>>
>>
>>
>> Bänderdetails zu Raster
>>
>>    - Bänder
>>    Datentyp
>>    Null-Werte
>>    minRange
>>    maxRange
>>    Einheit
>>    Unsigned 8 bits
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *SLD:<?xml version="1.0" encoding="UTF-8"?><sld:StyledLayerDescriptor
>> xmlns="http://www.opengis.net/sld <http://www.opengis.net/sld>"
>> xmlns:sld="http://www.opengis.net/sld <http://www.opengis.net/sld>"
>> xmlns:ogc="http://www.opengis.net/ogc <http://www.opengis.net/ogc>"
>> xmlns:gml="http://www.opengis.net/gml <http://www.opengis.net/gml>"
>> version="1.0.0">  <sld:NamedLayer>
>> <sld:Name>c411930gs_ProjectRaster</sld:Name>    <sld:UserStyle>
>> <sld:Name>c411930gs_ProjectRaster</sld:Name>
>> <sld:FeatureTypeStyle>        <sld:Rule>
>> <sld:RasterSymbolizer>            <sld:Geometry>
>> <ogc:PropertyName>grid</ogc:PropertyName>
>> </sld:Geometry>            <sld:ColorMap>              <sld:ColorMapEntry
>> color="#000000" opacity="1.0" quantity="0.0"/>
>> <sld:ColorMapEntry color="#444444" opacity="0.0"
>> quantity="1.0"/>            </sld:ColorMap>
>> </sld:RasterSymbolizer>        </sld:Rule>      </sld:FeatureTypeStyle>
>> </sld:UserStyle>  </sld:NamedLayer></sld:StyledLayerDescriptor>*
>>
>>
>> *gdalinfo for one of the rasters:*
>> Driver: GTiff/GeoTIFF
>> Files:
>> N:/temp/Geonode/DataToImport/Hx/DGK_5/trans/c411930hf_ProjectRaster.tif
>> Size is 6299, 6299
>> Coordinate System is:
>> PROJCS["ETRS_1989_UTM_Zone_N32",
>>     GEOGCS["GCS_ETRS_1989",
>>         DATUM["European_Terrestrial_Reference_System_1989",
>>             SPHEROID["GRS 1980",6378137,298.2572221010002,
>>                 AUTHORITY["EPSG","7019"]],
>>             AUTHORITY["EPSG","6258"]],
>>         PRIMEM["Greenwich",0],
>>         UNIT["degree",0.0174532925199433]],
>>     PROJECTION["Transverse_Mercator"],
>>     PARAMETER["latitude_of_origin",0],
>>     PARAMETER["central_meridian",9],
>>     PARAMETER["scale_factor",0.9996],
>>     PARAMETER["false_easting",32500000],
>>     PARAMETER["false_northing",0],
>>     UNIT["metre",1,
>>         AUTHORITY["EPSG","9001"]]]
>> Origin = (32497927.420726549000000,5742142.373873201200000)
>> Pixel Size = (0.317379399999837,-0.317379399999984)
>> Metadata:
>>   AREA_OR_POINT=Area
>>   DataType=Thematic
>> Image Structure Metadata:
>>   INTERLEAVE=BAND
>> Corner Coordinates:
>> Upper Left  (32497927.421, 5742142.374) (  8d58'11.72"E, 51d49'48.37"N)
>> Lower Left  (32497927.421, 5740143.201) (  8d58'11.77"E, 51d48'43.66"N)
>> Upper Right (32499926.594, 5742142.374) (  8d59'56.17"E, 51d49'48.38"N)
>> Lower Right (32499926.594, 5740143.201) (  8d59'56.17"E, 51d48'43.67"N)
>> Center      (32498927.007, 5741142.787) (  8d59' 3.96"E, 51d49'16.02"N)
>> Band 1 Block=6299x1 Type=Byte, ColorInterp=Palette
>>   Min=0.000 Max=1.000
>>   Minimum=0.000, Maximum=1.000, Mean=0.972, StdDev=0.164
>>   NoData Value=1
>>   Overviews: 3150x3150, 1575x1575, 788x788, 394x394, 197x197, 99x99
>>   Metadata:
>>     RepresentationType=THEMATIC
>>     STATISTICS_COVARIANCES=2,68819748864689E-02
>>     STATISTICS_MAXIMUM=1
>>     STATISTICS_MEAN=0,97235370834899
>>     STATISTICS_MINIMUM=0
>>     STATISTICS_STDDEV=0,16395723493176
>>   Color Table (RGB with 256 entries)
>>     0: 0,0,0,255
>>     1: 255,255,255,255
>>
>>
>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Geoserver-users mailing list
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>>
>
>
> --
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility  for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to