Hi,
I'm running geoserver 2.1 to serve polygon layers. The layers are stored in a
postgis store.
I use different SLD's each doing attribute based styling using <ogc:Filter>.
Example (cutout from SLD):
<Rule>
<Title>Erosion by wind, Area>50%</Title>
<ogc:Filter>
<ogc:And>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>dom_deg_code</ogc:PropertyName>
<ogc:Literal>E</ogc:Literal>
</ogc:PropertyIsEqualTo>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>
dom_deg_area
</ogc:PropertyName>
<ogc:Literal>50</ogc:Literal>
</ogc:PropertyIsGreaterThan>
</ogc:And>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#ce9e01</CssParameter>
<CssParameter name="fill-opacity">0.5</CssParameter>
</Fill>
<Stroke>
<CssParameter name="Stroke">#5e5e5e</CssParameter>
<CssParameter name="stroke-width">1</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
This works well for WMS service.
But I have troubles with KMZ/KML output:
When I use the KML output, indicating the SLD to use with 'styles=' attribute,
then the polygons will not be filled.
They show only the outline (stroke) but no fill. It is zooming to the map,
when I load the KMZ and it shows the attributes, but no fill.
If I use just the 'polygon' style which geoserver provides with its demo data
the polygons are filled.
Has KMZ output in geoserver a problem with <ogc:filter> ?
Regards
Kurt Gerber
_______________________________________
University of Bern
Centre for Development and Environment (CDE)
Kurt Gerber, MSc
Senior Research Scientist
http://www.cde.unibe.ch <http://www.cde.unibe.ch>
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users