Thanks Simone,
Of course I can create the issue
Yes I think is a good idea to not allow updateing an Input Color if the tiff is 16-bit.
With the colormap works!
Maybe i should now but as I'm new to the project, is there any easy way with geotools (or other tool), to get all of the available values inside a tiff so i can proper adapt the quantity values of the Colormap?
Thanks!
________________________________________
De: simboss1@anonymised.com <simboss1@anonymised.com> en nombre de Simone Giannecchini <simone.giannecchini@anonymised.com>
Enviado: miércoles, 20 de abril de 2016 04:33 a.m.
Para: Jose M
Cc: geoserver-users@lists.sourceforge.net
Asunto: Re: [Geoserver-users] Unsupported data type when using a transparent color
Ciao Jose,
I think we should simply preventing users from applying this
functionality when the underlying data does not suppport it, instead
of throwing a misteryous error afterwards.
Since I guess you are new to the project, may I ask you to register on
our JIRA instance and create an issue for this enhancement?
I will ask one of our guys to make a small change for this.
Aside, if you don't specify a style or anything, GeoServer will
internally convert to 8 bits prior to rendering.
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
-------------------------------------------------------
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.
On Tue, Apr 19, 2016 at 10:24 PM, Jose M <soloninguno@anonymised.com> wrote:
Sorry about that, didn't know why the response was only to you.
Hehe i'll search on google then, I asked because maybe there was some hidden example in th geoserver docs.
Something I don't understand, you say that the exception is because the 16 bit tiff. But why the layer preview fails when using an InputTransparentColor, but works great if not adding one? Is the rendering so different in both situations?
Thanks!
________________________________________
De: simboss1@anonymised.com <simboss1@anonymised.com> en nombre de Simone Giannecchini <simone.giannecchini@anonymised.com>
Enviado: martes, 19 de abril de 2016 04:52 p.m.
Para: Jose M
Cc: geoserver-users
Asunto: Re: [Geoserver-users] Unsupported data type when using a transparent color
Dear Jose,
please, stay on the ML.
This can get you started 
https://www.google.it/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=geoserver%20rastersymbolizer
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
-------------------------------------------------------
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.
On Tue, Apr 19, 2016 at 9:50 PM, Jose M <soloninguno@anonymised.com> wrote:
Hi Simone, thanks for your response.
I understand from your response that both errors (the transparent color error and the mosaic error) ar related to that, is that ok?
As I'm new to geoserver, is there any tutorial example I can follow to use this 16 bit geottifs with geoserver (using the rastersimbolizer as you suggest i suppose)? Or maybe it's better to convert the tiffs to 8 bits?
Thanks!
________________________________________
De: simboss1@anonymised.com <simboss1@anonymised.com> en nombre de Simone Giannecchini <simone.giannecchini@anonymised.com>
Enviado: martes, 19 de abril de 2016 04:39 p.m.
Para: Jose M
Cc: geoserver-users@lists.sourceforge.net
Asunto: Re: [Geoserver-users] Unsupported data type when using a transparent color
Ciao Jose,
short answer, your data is 16 bits hence they contains numbers about a
geophysical quantity ( maybe a DEM?) not colors.
Rendering in GeoServer happens in 8 bits, the functionality you are
trying to use is valid for RGB(A) or Gray(A) or Paletted imagery, all
in 8 bits per band.
You should look into using a rastersymbolizer with a colormap instead.
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
-------------------------------------------------------
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.
On Tue, Apr 19, 2016 at 9:21 PM, Jose M <soloninguno@anonymised.com> wrote:
Sorry, I forgot to say that also tried using a mosaic dataset pointing to a
directory where four of this scenes resides (only one band of this scenes).
And in that case i got this exception.
org.geoserver.platform.ServiceException: Error rendering coverage on the
fast path
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:344)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:259)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:132)
at org.geoserver.wms.GetMap.executeInternal(GetMap.java:505)
at org.geoserver.wms.GetMap.run(GetMap.java:249)
at org.geoserver.wms.GetMap.run(GetMap.java:119)
at
org.geoserver.wms.DefaultWebMapService.getMap(DefaultWebMapService.java:320)
Caused by: org.geoserver.platform.ServiceException:
org.geotools.coverage.processing.CoverageProcessingException:
java.lang.UnsupportedOperationException: Not implemented
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.directRasterRender(RenderedImageMapOutputFormat.java:1055)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:342)
... 106 more
Caused by: org.geotools.coverage.processing.CoverageProcessingException:
java.lang.UnsupportedOperationException: Not implemented
at
org.geotools.renderer.lite.gridcoverage2d.BaseCoverageProcessingNode.getOutput(BaseCoverageProcessingNode.java:343)
at
org.geotools.renderer.lite.gridcoverage2d.BaseCoverageProcessingNode.getOutput(BaseCoverageProcessingNode.java:46)
at
org.geotools.renderer.lite.gridcoverage2d.StyleVisitorCoverageProcessingNodeAdapter.getOutput(StyleVisitorCoverageProcessingNodeAdapter.java:141)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.symbolize(GridCoverageRenderer.java:472)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage(GridCoverageRenderer.java:974)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage(GridCoverageRenderer.java:768)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.directRasterRender(RenderedImageMapOutputFormat.java:947)
... 107 more
Caused by: java.lang.UnsupportedOperationException: Not implemented
at
org.jaitools.imageutils.ROIGeometry.getAsRectangleList(ROIGeometry.java:488)
at
com.sun.media.jai.opimage.ExtremaOpImage.accumulateStatistics(ExtremaOpImage.java:176)
at
javax.media.jai.StatisticsOpImage.getProperty(StatisticsOpImage.java:292)
at
com.sun.media.jai.opimage.ExtremaOpImage.getProperty(ExtremaOpImage.java:100)
at javax.media.jai.RenderedOp$1.getProperty(RenderedOp.java:1808)
at
javax.media.jai.PropertyEnvironment.getProperty(PropertyEnvironment.java:197)
at
javax.media.jai.PropertySourceImpl.getProperty(PropertySourceImpl.java:277)
at
javax.media.jai.WritablePropertySourceImpl.getProperty(WritablePropertySourceImpl.java:130)
at javax.media.jai.RenderedOp.getProperty(RenderedOp.java:1982)
at
org.geotools.image.ImageWorker.getComputedProperty(ImageWorker.java:961)
at org.geotools.image.ImageWorker.getExtremas(ImageWorker.java:1015)
at
org.geotools.image.ImageWorker.rescaleToBytes(ImageWorker.java:1319)
at
org.geotools.renderer.lite.gridcoverage2d.RasterSymbolizerHelper.execute(RasterSymbolizerHelper.java:130)
at
org.geotools.renderer.lite.gridcoverage2d.RasterSymbolizerHelper.execute(RasterSymbolizerHelper.java:58)
at
org.geotools.renderer.lite.gridcoverage2d.StyleVisitorCoverageProcessingNodeAdapter$1.execute(StyleVisitorCoverageProcessingNodeAdapter.java:101)
at
org.geotools.renderer.lite.gridcoverage2d.BaseCoverageProcessingNode.checkExecuted(BaseCoverageProcessingNode.java:238)
at
org.geotools.renderer.lite.gridcoverage2d.BaseCoverageProcessingNode.getOutput(BaseCoverageProcessingNode.java:341)
... 113 more
I mention this cause maybe there is issues with landsat geotiff 16 bit
images.
Thanks,
________________________________
De: Jose M <soloninguno@anonymised.com>
Enviado: martes, 19 de abril de 2016 03:55 p.m.
Para: geoserver-users@lists.sourceforge.net
Asunto: [Geoserver-users] Unsupported data type when using a transparent
color
Hi,
I was using geoserver 2.8.2 with geotools 14.2 and when trying to set an
InputTransparentColor to a layer, an exception was thrown. The exception is:
org.geoserver.platform.ServiceException: Error rendering coverage on the
fast path
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:344)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:259)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:132)
at org.geoserver.wms.GetMap.executeInternal(GetMap.java:505)
at org.geoserver.wms.GetMap.run(GetMap.java:249)
at org.geoserver.wms.GetMap.run(GetMap.java:119)
Caused by: org.geoserver.platform.ServiceException:
java.lang.IllegalStateException: Unsupported data type.
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.directRasterRender(RenderedImageMapOutputFormat.java:1055)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:342)
... 106 more
Caused by: java.lang.IllegalStateException: Unsupported data type.
at
org.geotools.image.ImageWorker.makeColorTransparent(ImageWorker.java:2459)
at
org.geotools.gce.geotiff.GeoTiffReader.read(GeoTiffReader.java:650)
at
org.geotools.coverage.grid.io.AbstractGridCoverage2DReader.read(AbstractGridCoverage2DReader.java:254)
at
org.geoserver.catalog.SingleGridCoverage2DReader.read(SingleGridCoverage2DReader.java:149)
at
org.geoserver.catalog.CoverageDimensionCustomizerReader.read(CoverageDimensionCustomizerReader.java:229)
at
org.geoserver.catalog.CoverageDimensionCustomizerReader.read(CoverageDimensionCustomizerReader.java:219)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageReaderHelper.readSingleCoverage(GridCoverageReaderHelper.java:511)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageReaderHelper.readCoverageInEnvelope(GridCoverageReaderHelper.java:298)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageReaderHelper.readCoverages(GridCoverageReaderHelper.java:203)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage(GridCoverageRenderer.java:800)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage(GridCoverageRenderer.java:768)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.directRasterRender(RenderedImageMapOutputFormat.java:947)
... 107 more
I was using the color 000000 (black), with a 16bit geotiff taken from a
landsat8 scene (i create a geotiff store referencing one band of that scene
and then publish the layer) .
Anyone knows what the problem could be? I see that the error is also
reported in Jira with no fixes yet, but maybe the issues aren't uptodate.
https://osgeo-org.atlassian.net/browse/GEOS-6847
https://osgeo-org.atlassian.net/browse/GEOS-6470
Thanks,
PS: Is it better to also post this in the geotools list?
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers
of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users