Hi Peppe,
GeoServer 2.8.0 is probably just too old to have a meaningful discuss about
it, I'd first recommend to
upgrade to 2.12.x

Since you have data with NODATA embedded, I would suggest to then enable
JAI_EXT and let it
handle it without fiddling with background colors, input transparent color
and output transparent color
(btw, the last two are colors, they do not make sense if the mosaic is made
of scientific data, at least
as far as I know).

JAI_EXT is not enabled by default, you'll have to set up a system variable
to kick it on:
http://docs.geoserver.org/stable/en/user/configuration/image_processing/index.html#jai-ext

Cheers
Andrea


On Thu, Jan 11, 2018 at 2:41 PM, peppe <cal...@gmail.com> wrote:

> Dear Geoserver Users,
> I'm trying to display imagemosaic where image are irregular and near each
> other.
> Imagemosaic are displayed with a SLD
> Images overlap and no transparency is applied
>
> When publish imagemosaic, i set BackgroundValues as -999
> If try to set InputTransparentColor or OutputTransparentColor, but I have
> exception on geoserver.
>
> I use:
> geoserver 2.8.0
> apache-tomcat-7.0.57 with java 1.8.0_101 64bit
> windows7
>
> My SLD looks like this:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <StyledLayerDescriptor version="1.0.0"
>   xmlns="http://www.opengis.net/sld"; xmlns:ogc="http://www.opengis.net/ogc
> "
>   xmlns:xlink="http://www.w3.org/1999/xlink";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://www.opengis.net/sld
> http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd";>
>   <NamedLayer>
>     <Name>gtopo</Name>
>     <UserStyle>
>       <Name>ndvi</Name>
>       <Title>NDVI style</Title>
>       <Abstract>NDVI color progression</Abstract>
>       <FeatureTypeStyle>
>         <Rule>
>           <MaxScaleDenominator>500000</MaxScaleDenominator>
>           <RasterSymbolizer>
>             <Opacity>1</Opacity>
>             <ColorMap>
>               <ColorMapEntry color="#00FF00" quantity="-999" label="values"
> opacity="0.0"/>
>               <ColorMapEntry color="#FF0000" quantity="0" label="values"
> opacity="1.0"/>
>               <ColorMapEntry color="#FF4800" quantity="0.125"
> label="values"
> opacity="1.0"/>
>               <ColorMapEntry color="#FF9500" quantity="0.250"
> label="values"
> opacity="1.0"/>
>               <ColorMapEntry color="#FFE100" quantity="0.375"
> label="values"
> opacity="1.0"/>
>               <ColorMapEntry color="#D0FF00" quantity="0.50" label="values"
> opacity="1.0"/>
>               <ColorMapEntry color="#84FF00" quantity="0.625"
> label="values"
> opacity="1.0"/>
>               <ColorMapEntry color="#37FF00" quantity="0.75" label="values"
> opacity="1.0"/>
>               <ColorMapEntry color="#00FF16" quantity="0.875"
> label="values"
> opacity="1.0"/>
>               <ColorMapEntry color="#00FF00" quantity="1" label="values"
> opacity="1.0"/>
>             </ColorMap>
>           </RasterSymbolizer>
>         </Rule>
>       </FeatureTypeStyle>
>     </UserStyle>
>   </NamedLayer>
> </StyledLayerDescriptor>
>
>
> gdal info image (no data value is -999)
> E:\DevApps\testCaseImageMosaic>gdalinfo
> 180690_92_S2A_MSIL2A_20180106T100401_N0206_R122_T32TQQ_20180106T120734.tif
> Driver: GTiff/GeoTIFF
> Files:
> 180690_92_S2A_MSIL2A_20180106T100401_N0206_R122_T32TQQ_20180106T120734.tif
> Size is 943, 606
> Coordinate System is:
> GEOGCS["WGS 84",
>     DATUM["WGS_1984",
>         SPHEROID["WGS 84",6378137,298.257223563,
>             AUTHORITY["EPSG","7030"]],
>         AUTHORITY["EPSG","6326"]],
>     PRIMEM["Greenwich",0],
>     UNIT["degree",0.0174532925199433],
>     AUTHORITY["EPSG","4326"]]
> Origin = (12.281968477673896,45.019667104849084)
> Pixel Size = (0.000015804510078,-0.000015804510078)
> Metadata:
>   AREA_OR_POINT=Area
> Image Structure Metadata:
>   INTERLEAVE=BAND
> Corner Coordinates:
> Upper Left  (  12.2819685,  45.0196671) ( 12d16'55.09"E, 45d 1'10.80"N)
> Lower Left  (  12.2819685,  45.0100896) ( 12d16'55.09"E, 45d 0'36.32"N)
> Upper Right (  12.2968721,  45.0196671) ( 12d17'48.74"E, 45d 1'10.80"N)
> Lower Right (  12.2968721,  45.0100896) ( 12d17'48.74"E, 45d 0'36.32"N)
> Center      (  12.2894203,  45.0148783) ( 12d17'21.91"E, 45d 0'53.56"N)
> Band 1 Block=943x2 Type=Float32, ColorInterp=Gray
>   NoData Value=-999
>
> I tried to use other geoserver, but i have exception whene publish
> imagemosaic:
>
> GeoServer 2.12.1: imagemosaic doesn't work
> GeoServer 2.11.4: imagemosaic doesn't work
> 10 gen 15:55:13 INFO [geoserver.web] - Getting list of coverages for saved
> store file://E:\DevApps\testCaseImageMosaic
> java.lang.RuntimeException: Could not list layers for this store, an error
> occurred retrieving them: Failed to create reader from
> file://E:\DevApps\testCaseImageMosaic and hints null
>         at
> org.geoserver.web.data.layer.NewLayerPageProvider.getItemsInternal(
> NewLayerPageProvider.java:158)
>
> GeoServer 2.10.5: imagemosaic doesn't work
> 10 gen 16:18:00 WARN [geoserver.catalog] - Unable to convert coverage URL
> to
> a URI, attempting to use it as a path
> 10 gen 16:18:00 INFO [geoserver.web] - Getting list of coverages for saved
> store file://E:\DevApps\testCaseImageMosaic
> java.lang.RuntimeException: Could not list layers for this store, an error
> occurred retrieving them: Failed to create reader from
> file://E:\DevApps\testCaseImageMosaic and hints null
>
> overlap imagemosaic with geoserver
> <http://osgeo-org.1560.x6.nabble.com/file/t219877/overlap_nodata.png>
>
> original images in arcgis
> <http://osgeo-org.1560.x6.nabble.com/file/t219877/
> original_image_in_arcgis.png>
>
> Someone can help us to solve this problem?
> Thanks a lot
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-
> f3786390.html
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines: http://geoserver.org/comm/
> userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-
> requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



-- 

Regards,

Andrea Aime

==
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 di Montramito 3/A
55054  Massarosa (LU)
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.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to