Hi, Simone.
The style:
<?xml version="1.0" ?>
<sld:StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:sld="http://www.opengis.net/sld">
<sld:UserLayer>
<sld:LayerFeatureConstraints>
<sld:FeatureTypeConstraint/>
</sld:LayerFeatureConstraints>
<sld:UserStyle>
<sld:Name>PrecipAnual-2016i</sld:Name>
<sld:Title/>
<sld:FeatureTypeStyle>
<sld:Name/>
<sld:Rule>
<sld:RasterSymbolizer>
<sld:Geometry>
<ogc:PropertyName>grid</ogc:PropertyName>
</sld:Geometry>
<sld:Opacity>1</sld:Opacity>
<sld:ColorMap>
<sld:ColorMapEntry color="#f7fbff"
label="279.000000" opacity="1.0" quantity="279"/>
<sld:ColorMapEntry color="#deebf7"
label="463.210000" opacity="1.0" quantity="463.21"/>
<sld:ColorMapEntry color="#c7dcef"
label="647.420000" opacity="1.0" quantity="647.42"/>
<sld:ColorMapEntry color="#a2cbe2"
label="831.630000" opacity="1.0" quantity="831.63"/>
<sld:ColorMapEntry color="#72b2d7"
label="1015.840000" opacity="1.0" quantity="1015.84"/>
<sld:ColorMapEntry color="#4997c9"
label="1200.050000" opacity="1.0" quantity="1200.05"/>
<sld:ColorMapEntry color="#2878b8"
label="1384.260000" opacity="1.0" quantity="1384.26"/>
<sld:ColorMapEntry color="#0d57a1"
label="1554.300000" opacity="1.0" quantity="1554.3"/>
<sld:ColorMapEntry color="#08306b"
label="1696.000000" opacity="1.0" quantity="1696"/>
</sld:ColorMap>
</sld:RasterSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:UserLayer>
</sld:StyledLayerDescriptor>
And gdalinfo output:
Driver: GTiff/GeoTIFF
Files: C:\Procesos_TMP\SIAR_Teledeteccion\PrecipAnual-2016i.tif
Size is 107809, 88498
Coordinate System is:
PROJCS["WGS 84 / UTM zone 30N",
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4326"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",-3],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",500000],
PARAMETER["false_northing",0],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AXIS["Easting",EAST],
AXIS["Northing",NORTH],
AUTHORITY["EPSG","32630"]]
Origin = (-37200.589999999997000,4880153.321000000500000)
Pixel Size = (10.000000000000000,-10.000000000000000)
Metadata:
AREA_OR_POINT=Area
Band_1=Mosaic (Band 1)
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( -37200.590, 4880153.321) ( 9d41'10.33"W, 43d52'42.55"N)
Lower Left ( -37200.590, 3995173.321) ( 8d57'12.87"W, 35d57'11.34"N)
Upper Right ( 1040889.410, 4880153.321) ( 3d43'54.49"E, 43d52'32.87"N)
Lower Right ( 1040889.410, 3995173.321) ( 2d59'39.32"E, 35d57' 4.03"N)
Center ( 501844.410, 4437663.321) ( 2d58'42.11"W, 40d 5'21.30"N)
Band 1 Block=107809x1 Type=Int16, ColorInterp=Gray
Description = Mosaic (Band 1)
Minimum=172.000, Maximum=2450.000, Mean=570.734, StdDev=280.509
NoData Value=0
Metadata:
STATISTICS_MAXIMUM=2450
STATISTICS_MEAN=570.73436824794
STATISTICS_MINIMUM=172
STATISTICS_STDDEV=280.50861764515
Thanks.
Un saludo.
[http://www.tragsa.es/SiteCollectionImages/Relaciones%20Institucionales%20(Prensa)/FIRMA%20OUTLOOK/Tragsatec.png]
[http://www.tragsa.es/SiteCollectionImages/Relaciones%20Institucionales%20(Prensa)/FIRMA%20OUTLOOK/cenefa.png]
Briones Garcia, Pedro
Grupo Tragsa - SEPI
[http://www.tragsa.es/SiteCollectionImages/Relaciones%20Institucionales%20(Prensa)/FIRMA%20OUTLOOK/Tragsatec_SEPI.png]
Calle Julián Camarillo 6B - 28037 Madrid
Tel.: 913226489 - 88216 - Fax: 913226005
[email protected]
<mailto:[email protected]>www.tragsa.es <http://www.tragsa.es/>
En beneficio del medio ambiente, imprime este e-mail sólo si realmente es
necesario
For the benefit of the environment, print this e-mail only if you really need to
De: Simone Giannecchini [mailto:[email protected]]
Enviado el: miércoles, 31 de octubre de 2018 14:47
Para: Briones Garcia, Pedro <[email protected]>
CC: geoserver-users <[email protected]>
Asunto: Re: [Geoserver-users] 16bit image rendering problem
Dear Pedro,
we need to see the styles and the output of gdalinfo --stats on this image
before saying anything.
Can you provide them?
Regards,
Simone Giannecchini
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==
Ing. Simone Giannecchini
@simogeo
Founder/Director
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa
che ogni circostanza inerente alla presente email (il suo contenuto, gli
eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei
comunque grato se potesse darmene notizia.
This email is intended only for the person or entity to which it is addressed
and may contain information that is privileged, confidential or otherwise
protected from disclosure. We remind that - as provided by European Regulation
2016/679 “GDPR” - copying, dissemination or use of this e-mail or the
information herein by anyone other than the intended recipient is prohibited.
If you have received this email by mistake, please notify us immediately by
telephone or e-mail.
On Wed, Oct 31, 2018 at 12:41 PM Briones Garcia, Pedro
<[email protected]<mailto:[email protected]>> wrote:
Hi all.
I’m having problems rendering a 16 bit GeoTIFF image in GeoServer. I’ve created
an SLD and I’ve associated it with the image, but the colors don’t correspond
to the ones of the SLD. Looking for information in this list, I found that the
GeoTIFF is stretched to 8 bits before being rendered by GeoServer. I’ve tried
too <ContrastEnhancement> option, but I get an error. I can’t convert the image
to 8 bit because I have values greater than 255.
Is there any workaround?
Thanks in advance.
[http://www.tragsa.es/SiteCollectionImages/Relaciones%20Institucionales%20(Prensa)/FIRMA%20OUTLOOK/Tragsatec.png]
[http://www.tragsa.es/SiteCollectionImages/Relaciones%20Institucionales%20(Prensa)/FIRMA%20OUTLOOK/cenefa.png]
Briones Garcia, Pedro
JGAP Sist Inform Geográfica
S.Información Geográfica / G.Sist.Inf. Geografica
Grupo Tragsa - SEPI
[http://www.tragsa.es/SiteCollectionImages/Relaciones%20Institucionales%20(Prensa)/FIRMA%20OUTLOOK/Tragsatec_SEPI.png]
Calle Julián Camarillo 6B - 28037 Madrid
Tel.: 913226489 - 88216 - Fax: 913226005
[email protected]
<mailto:[email protected]>www.tragsa.es <http://www.tragsa.es/>
En beneficio del medio ambiente, imprime este e-mail sólo si realmente es
necesario
For the benefit of the environment, print this e-mail only if you really need to
________________________________
**********************************************************************************************
El consumo de papel es perjudicial para el medio ambiente. Por favor, téngalo
en cuenta antes de imprimir este mensaje. AVISO LEGAL: Este mensaje y sus
anexos pueden contener información confidencial o legalmente protegida. Está
dirigido únicamente a la persona o entidad indicada como destinatarios del
mensaje. Si este mensaje le hubiera llegado por error, por favor elimínelo sin
revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente.
**********************************************************************************************
________________________________
_______________________________________________
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
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
**********************************************************************************************
El consumo de papel es perjudicial para el medio ambiente. Por favor, téngalo
en cuenta antes de imprimir este mensaje. AVISO LEGAL: Este mensaje y sus
anexos pueden contener información confidencial o legalmente protegida. Está
dirigido únicamente a la persona o entidad indicada como destinatarios del
mensaje. Si este mensaje le hubiera llegado por error, por favor elimínelo sin
revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente.
**********************************************************************************************
_______________________________________________
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users