Hi,
I made this question already last week. I didn't get an answer, so I try again.
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>.
This works well for the 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> ? Why is the stroke
showing up, but not the fill?
Below you can see a short part of the SLD. The present rule is repeated
several times with different values inside:
<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>
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>
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users