Hi everybody,
I repost the mail because it was include in antoher thread.
I've looked sld spec 1.0 and I see we can specify a Color Map to a raster
and my question is where we specify which dimension is concerned by the colormap?
Here there is ane example basic of sld using ColorMap but no dimension specify:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor 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" version="1.0.0">
<UserLayer>
<Name>raster_layer</Name>
<LayerFeatureConstraints>
<FeatureTypeConstraint/>
</LayerFeatureConstraints>
<UserStyle>
<Name>raster</Name>
<Title>A boring default style</Title>
<Abstract>A sample style for rasters</Abstract>
<FeatureTypeStyle>
<FeatureTypeName>Feature</FeatureTypeName>
<Rule>
<RasterSymbolizer>
<Opacity>1.0</Opacity>
<OverlapBehavior>
<AVERAGE/>
</OverlapBehavior>
<ColorMap>
<ColorMapEntry color="#000000" quantity="-500" label="nodata" opacity="0.0"/>
<ColorMapEntry color="#00ff00" quantity="-500" label="values"/>
<ColorMapEntry color="#00fa00" quantity="-417" label="values"/>
<ColorMapEntry color="#14f500" quantity="-333" label="values"/>
<ColorMapEntry color="#28f502" quantity="-250" label="values"/>
<ColorMapEntry color="#3cf505" quantity="-167" label="values"/>
<ColorMapEntry color="#50f50a" quantity="-83" label="values"/>
<ColorMapEntry color="#64f014" quantity="-1" label="values"/>
<ColorMapEntry color="#7deb32" quantity="0" label="values"/>
<ColorMapEntry color="#78c818" quantity="30" label="values"/>
<ColorMapEntry color="#38840c" quantity="105" label="values"/>
<ColorMapEntry color="#2c4b04" quantity="300" label="values"/>
<ColorMapEntry color="#ffff00" quantity="400" label="values"/>
<ColorMapEntry color="#dcdc00" quantity="700" label="values"/>
<ColorMapEntry color="#b47800" quantity="1200" label="values"/>
<ColorMapEntry color="#c85000" quantity="1400" label="values"/>
<ColorMapEntry color="#be4100" quantity="1600" label="values"/>
<ColorMapEntry color="#963000" quantity="2000" label="values"/>
<ColorMapEntry color="#3c0200" quantity="3000" label="values"/>
<ColorMapEntry color="#ffffff" quantity="5000" label="values"/>
<ColorMapEntry color="#ffffff" quantity="13000" label="values"/>
</ColorMap>
<ShadedRelief/>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</UserLayer>
</StyledLayerDescriptor>
I hope you can help me.
Bye
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
hi Olivier,
I have the same problem, trying to apply sld to raster (to compute histogram corrections) but did not work and i had no time to go further…
However for colormap, i think for each entry you apply “color” when “label” = “quantity”
Cheers
On 26/07/07, olivier.terral <olivier.terral@anonymised.com> wrote:
Hi everybody,
I repost the mail because it was include in antoher thread.
I’ve looked sld spec 1.0 and I see we can specify a Color Map to a raster
and my question is where we specify which dimension is concerned by the
colormap?
Here there is ane example basic of sld using ColorMap but no dimension
specify:
<?xml version="1.0" encoding="UTF-8"?>
raster_layer
raster
A boring default style
A sample style for rasters
Feature
1.0
I hope you can help me.
Bye
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Ciao Olivier,
good timing, I am working right now on implmenting the
RasterSymbolizer support for geoserver WMS reusing part of Martin's
classes.
What are trying to achieve? Are you working client side or server side?
See also below...
On 7/26/07, olivier.terral <olivier.terral@anonymised.com> wrote:
Hi everybody,
I repost the mail because it was include in antoher thread.
I've looked sld spec 1.0 and I see we can specify a Color Map to a raster
and my question is where we specify which dimension is concerned by the
colormap?
What do you mean exactly by which dimension?
Here there is ane example basic of sld using ColorMap but no dimension
specify:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor 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"
version="1.0.0">
<UserLayer>
<Name>raster_layer</Name>
<LayerFeatureConstraints>
<FeatureTypeConstraint/>
</LayerFeatureConstraints>
<UserStyle>
<Name>raster</Name>
<Title>A boring default style</Title>
<Abstract>A sample style for rasters</Abstract>
<FeatureTypeStyle>
<FeatureTypeName>Feature</FeatureTypeName>
<Rule>
<RasterSymbolizer>
<Opacity>1.0</Opacity>
<OverlapBehavior>
<AVERAGE/>
</OverlapBehavior>
<ColorMap>
<ColorMapEntry color="#000000" quantity="-500"
label="nodata" opacity="0.0"/>
<ColorMapEntry color="#00ff00" quantity="-500"
label="values"/>
<ColorMapEntry color="#00fa00" quantity="-417"
label="values"/>
<ColorMapEntry color="#14f500" quantity="-333"
label="values"/>
<ColorMapEntry color="#28f502" quantity="-250"
label="values"/>
<ColorMapEntry color="#3cf505" quantity="-167"
label="values"/>
<ColorMapEntry color="#50f50a" quantity="-83"
label="values"/>
<ColorMapEntry color="#64f014" quantity="-1"
label="values"/>
<ColorMapEntry color="#7deb32" quantity="0"
label="values"/>
<ColorMapEntry color="#78c818" quantity="30"
label="values"/>
<ColorMapEntry color="#38840c" quantity="105"
label="values"/>
<ColorMapEntry color="#2c4b04" quantity="300"
label="values"/>
<ColorMapEntry color="#ffff00" quantity="400"
label="values"/>
<ColorMapEntry color="#dcdc00" quantity="700"
label="values"/>
<ColorMapEntry color="#b47800" quantity="1200"
label="values"/>
<ColorMapEntry color="#c85000" quantity="1400"
label="values"/>
<ColorMapEntry color="#be4100" quantity="1600"
label="values"/>
<ColorMapEntry color="#963000" quantity="2000"
label="values"/>
<ColorMapEntry color="#3c0200" quantity="3000"
label="values"/>
<ColorMapEntry color="#ffffff" quantity="5000"
label="values"/>
<ColorMapEntry color="#ffffff" quantity="13000"
label="values"/>
</ColorMap>
<ShadedRelief/>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</UserLayer>
</StyledLayerDescriptor>
I hope you can help me.
Bye
Ciao,Simone.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions
http://www.geo-solutions.it
-------------------------------------------------------
Hi Simone
Simone Giannecchini a écrit :
Ciao Olivier,
good timing, I am working right now on implmenting the
RasterSymbolizer support for geoserver WMS reusing part of Martin's
classes.
What are trying to achieve? Are you working client side or server side?
See also below...
I work on clientSide with Mapbuilder and I searched a way to specify a color pallette on client Side and apply it to NetCDF layer or other Raster layer.
SLD seems to be the better solution for this to respecting standards.
And I would like to know if this type of SLD works actaually?
On 7/26/07, olivier.terral <olivier.terral@anonymised.com> wrote:
Hi everybody,
I repost the mail because it was include in antoher thread.
I've looked sld spec 1.0 and I see we can specify a Color Map to a raster
and my question is where we specify which dimension is concerned by the
colormap?
What do you mean exactly by which dimension?
By dimension I want to say temperature or other (except time and elevation) , but Martin explain me there are only one possible dimension in a pixel.
Bye
Here there is ane example basic of sld using ColorMap but no dimension
specify:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor 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"
version="1.0.0">
<UserLayer>
<Name>raster_layer</Name>
<LayerFeatureConstraints>
<FeatureTypeConstraint/>
</LayerFeatureConstraints>
<UserStyle>
<Name>raster</Name>
<Title>A boring default style</Title>
<Abstract>A sample style for rasters</Abstract>
<FeatureTypeStyle>
<FeatureTypeName>Feature</FeatureTypeName>
<Rule>
<RasterSymbolizer>
<Opacity>1.0</Opacity>
<OverlapBehavior>
<AVERAGE/>
</OverlapBehavior>
<ColorMap>
<ColorMapEntry color="#000000" quantity="-500"
label="nodata" opacity="0.0"/>
<ColorMapEntry color="#00ff00" quantity="-500"
label="values"/>
<ColorMapEntry color="#00fa00" quantity="-417"
label="values"/>
<ColorMapEntry color="#14f500" quantity="-333"
label="values"/>
<ColorMapEntry color="#28f502" quantity="-250"
label="values"/>
<ColorMapEntry color="#3cf505" quantity="-167"
label="values"/>
<ColorMapEntry color="#50f50a" quantity="-83"
label="values"/>
<ColorMapEntry color="#64f014" quantity="-1"
label="values"/>
<ColorMapEntry color="#7deb32" quantity="0"
label="values"/>
<ColorMapEntry color="#78c818" quantity="30"
label="values"/>
<ColorMapEntry color="#38840c" quantity="105"
label="values"/>
<ColorMapEntry color="#2c4b04" quantity="300"
label="values"/>
<ColorMapEntry color="#ffff00" quantity="400"
label="values"/>
<ColorMapEntry color="#dcdc00" quantity="700"
label="values"/>
<ColorMapEntry color="#b47800" quantity="1200"
label="values"/>
<ColorMapEntry color="#c85000" quantity="1400"
label="values"/>
<ColorMapEntry color="#be4100" quantity="1600"
label="values"/>
<ColorMapEntry color="#963000" quantity="2000"
label="values"/>
<ColorMapEntry color="#3c0200" quantity="3000"
label="values"/>
<ColorMapEntry color="#ffffff" quantity="5000"
label="values"/>
<ColorMapEntry color="#ffffff" quantity="13000"
label="values"/>
</ColorMap>
<ShadedRelief/>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</UserLayer>
</StyledLayerDescriptor>
I hope you can help me.
Bye
Ciao,Simone.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users