Side note. be aware that not everything that's in the rastersymbolizer
it is actually implemented in this snapshot build. However the most
important things like colormap, contrast enhancement, band select are
properly implementd. There is also some bonus contrast enhancement
methods ( I need to write user docs, I need to write user docs, I newd
to write user docs...).
Simone.
Hi Simone,
I am studying the SLD specification now. Thanks for the tip.
The following screenshot shows a GeoTIFF (2.3 MB) of an unbiased satellite
rainfall image served by GeoServer-1.7.0-SNAPSHOT running under Mac OS X:
It's not very pretty at this stage. But, I'm very encouraged!
Thanks for all your help!
Greg
Simone Giannecchini wrote:
Greg,
add this
<ChannelSelection>
<GrayChannel>
<SourceChannelName>1</SourceChannelName>
</GrayChannel>
</ChannelSelection>
If it's working can you describe a little bit more in detail the type
of data (source, foramt, size, etc).
Could you also attach screenshot?
Simone.
On Fri, Jun 6, 2008 at 1:00 AM, Greg Ederer <greg@anonymised.com> wrote:
Hi Simone,
It works!
Btw, You should add an element to select the channel named 1.
Sounds good. How do I do that?
Thanks!
Greg
Simone.
On Fri, Jun 6, 2008 at 12:47 AM, Greg Ederer <greg@anonymised.com> wrote:
Hi Simone,
I think I'm getting close. I installed the snapshot war (unarchived) in
Jetty, and set up my GeoTIFF in GeoServer with the 'raster' style. This
gave me a gray on black image. I then attempted to modify my raster.sld
file like so:
<?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>
<UserStyle>
<Name>raster</Name>
<Title>A boring default style</Title>
<Abstract>A sample style for rasters</Abstract>
<FeatureTypeStyle>
<FeatureTypeName>Feature</FeatureTypeName>
<Rule>
<RasterSymbolizer>
<ColorMap>
<ColorMapEntry color="#000000" quantity="-9999"
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>
<Opacity>1.0</Opacity>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</UserLayer>
</StyledLayerDescriptor>
However, when I submit this, I get:
1: <?xml version="1.0" encoding="UTF-8"?>
2: <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
3: http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"
version="1.0.0">
4: <UserLayer>
5: <Name>raster_layer</Name>
6: <UserStyle>
---------------^
cvc-complex-type.2.4.a: Invalid content starting with element
'UserStyle'. One of '{"http://www.opengis.net/sld":InlineFeature,
"http://www.opengis.net/sld":RemoteOWS,
"http://www.opengis.net/sld":LayerFeatureConstraints\}' is expected.
7: <Name>raster</Name>
8: <Title>A boring default style</Title>
9: <Abstract>A sample style for rasters</Abstract>
10: <FeatureTypeStyle>
11: <FeatureTypeName>Feature</FeatureTypeName>
12: <Rule>
13: <RasterSymbolizer>
14: <ColorMap>
15: <ColorMapEntry color="#000000" quantity="-9999"
label="nodata" opacity="0.0"/>
16: <ColorMapEntry color="#00ff00" quantity="-500"
label="values"/>
17: <ColorMapEntry color="#00fa00" quantity="-417"
label="values"/>
18: <ColorMapEntry color="#14f500" quantity="-333"
label="values"/>
19: <ColorMapEntry color="#28f502" quantity="-250"
label="values"/>
20: <ColorMapEntry color="#3cf505" quantity="-167"
label="values"/>
21: <ColorMapEntry color="#50f50a" quantity="-83"
label="values"/>
22: <ColorMapEntry color="#64f014" quantity="-1"
label="values"/>
23: <ColorMapEntry color="#7deb32" quantity="0"
label="values"/>
24: <ColorMapEntry color="#78c818" quantity="30"
label="values"/>
25: <ColorMapEntry color="#38840c" quantity="105"
label="values"/>
26: <ColorMapEntry color="#2c4b04" quantity="300"
label="values"/>
27: <ColorMapEntry color="#ffff00" quantity="400"
label="values"/>
28: <ColorMapEntry color="#dcdc00" quantity="700"
label="values"/>
29: <ColorMapEntry color="#b47800" quantity="1200"
label="values"/>
30: <ColorMapEntry color="#c85000" quantity="1400"
label="values"/>
31: <ColorMapEntry color="#be4100" quantity="1600"
label="values"/>
32: <ColorMapEntry color="#963000" quantity="2000"
label="values"/>
33: <ColorMapEntry color="#3c0200" quantity="3000"
label="values"/>
34: <ColorMapEntry color="#ffffff" quantity="5000"
label="values"/>
35: <ColorMapEntry color="#ffffff" quantity="13000"
label="values"/>
36: </ColorMap>
37: <Opacity>1.0</Opacity>
------------------------^
cvc-complex-type.2.4.a: Invalid content starting with element
'Opacity'. One of '{"http://www.opengis.net/sld":ContrastEnhancement,
"http://www.opengis.net/sld":ShadedRelief,
"http://www.opengis.net/sld":ImageOutline\}' is expected.
38: </RasterSymbolizer>
39: </Rule>
40: </FeatureTypeStyle>
41: </UserStyle>
42: </UserLayer>
43: </StyledLayerDescriptor>
Suggestions?
Thanks!
Greg
Simone Giannecchini wrote:
Interesting :-).
I have not had time to build gdal and the JNI bindings lately on it.
We have slightly modified them so even if you build yours it would not
work out of the box.
We have instructions on how to do that (applying patches and building)
but I guess it is a bit early at this stage for you.
What I suggest is, just deploy the geoserver as is and forget about
the libs. The GeoServer should work anyway, the only thing will be
that the GDAL plugins won't be avaliable.
If you got any problems, that's a bug and we'll fix it right away.
Note that I have never tried the GeoServer on Mac os ( I use my mac
only as a toy or for running ubuntu
), hence you are in the
unsupported land :-), but we'll try to help you out.
Simone.
On Fri, Jun 6, 2008 at 12:03 AM, Greg Ederer <greg@anonymised.com> wrote:
Hi Simone,
I'm on my Mac OS X laptop. I have GDAL installed as a pre-built binary. I
don't think I have the Java bindings required by ImageIO-Ext. I only need
to work with GeoTIFF rasters. Do I have to make GDAL from scratch, and get
ImageIO-Ext working in order to use 1.7.0-SNAPSHOT?
Thanks!
Greg
Simone Giannecchini wrote:
Ciao Greg,
check this email message and let me know how it goes with it...
http://www.nabble.com/News-on-GeoServer-supporting-GDAL-(Simplified-steps).-to17620431.html
Simone.
On Thu, Jun 5, 2008 at 11:50 PM, Greg Ederer <greg@anonymised.com> wrote:
Hi Simone,
I'm using 1.6.4. Is there a snapshot release that I can use?
Thanks!
Greg
Simone Giannecchini wrote:
Ciao Greg,
which version of GeoServer are you using?
Support for SLD 1.0 raster symbolizer has just been incorporated into
GeoServer trunk, hence it is not avaliable in GeoServer 1.6.x.
Simone.
On Thu, Jun 5, 2008 at 11:38 PM, Greg Ederer <greg@anonymised.com> wrote:
Hi,
I have added a new GeoTIFF coverage dataset and coverage to GeoServer.
In the Coverage Editor, I set the style to 'raster'. When I apply the
settings, and point my browser at the coverage, it displays as a black
and white image, rather than with the expected ColorMap. Any suggestions?
Thanks!
Greg
--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| greg@anonymised.com
| 360.774.6848
|
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| greg@anonymised.com
| 360.774.6848
|
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| greg@anonymised.com
| 360.774.6848
|
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| greg@anonymised.com
| 360.774.6848
|
--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| greg@anonymised.com
| 360.774.6848
|
--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| greg@anonymised.com
| 360.774.6848
|