Dear list,
I run into problems (see this Screenshot
http://www.filedropper.com/strangerenderinggeoserver ) while trying to
display Oracle data with mixed geometry with following SLD. This SLD ( see
at bottom ) is based upon documentation at
http://docs.geoserver.org/stable/en/user/styling/sld-tipstricks/mixed-geometries.html
.
The geometries are bound with Oracle NG to Geoserver and are defined in
Oracle DB as:
Polygon:
MDSYS.SDO_GEOMETRY(2003,25833,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),MDSYS.SDO_ORDINATE_ARRAY(398402.88570754,5821424.7206982,397309.27518698,5820578.0544888,398297.05243136,5820119.4436253,399531.77398683,5820754.4432824,398402.88570754,5821424.7206982))
Linestring:
MDSYS.SDO_GEOMETRY(2002,25833,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(393569.83276183,5822871.1088061,394575.248885575,5823153.33087592,395086.776387131,5821848.05380299,393710.94379674,5821459.998457))
point (i.e.):
MDSYS.SDO_GEOMETRY(2001,25833,MDSYS.SDO_POINT_TYPE(396603.72001242,5821742.2205268,NULL),NULL,NULL)
As you can see at the screenshot it seems that i.e. a polygon geometry is
rendered as a point, linestring AND polygon?
Does someone know about some problems here? Is something wrong with my SLD
or my definition of geometries?
Any help, idea or mental support would be appreciated :-)
Mit freundlichen Grüßen / Best regards
Thorsten Müller
Software Ingenieur / Software Engineer
Mettenmeier GmbH Utility Solutions
SLD:
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
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">
<!-- a Named Layer is the basic building block of an SLD document -->
<NamedLayer>
<Name>test_multigeometry</Name>
<UserStyle>
<!-- Styles can have names, titles and abstracts -->
<Title>Multi Geometry Style</Title>
<Abstract>A sample style that draws every sort of
geometry</Abstract>
<!-- FeatureTypeStyles describe how to render different features -->
<!-- A FeatureTypeStyle for rendering points -->
<FeatureTypeStyle>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualsTo>
<ogc:Function name="geometryType">
<ogc:PropertyName>THE_GEOM</ogc:PropertyName>
</ogc:Function>
<ogc:Literal>Point</ogc:Literal>
</ogc:PropertyIsEqualsTo>
</ogc:Filter>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>square</WellKnownName>
<Fill>
<CssParameter name="fill">#0000FF</CssParameter>
</Fill>
</Mark>
<Size>6</Size>
</Graphic>
</PointSymbolizer>
</Rule>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualsTo>
<ogc:Function name="geometryType">
<ogc:PropertyName>THE_GEOM</ogc:PropertyName>
</ogc:Function>
<ogc:Literal>LineString</ogc:Literal>
</ogc:PropertyIsEqualsTo>
</ogc:Filter>
<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">#FF0000</CssParameter>
<CssParameter name="stroke-width">3</CssParameter>
</Stroke>
</LineSymbolizer>
</Rule>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualsTo>
<ogc:Function name="geometryType">
<ogc:PropertyName>THE_GEOM</ogc:PropertyName>
</ogc:Function>
<ogc:Literal>Polygon</ogc:Literal>
</ogc:PropertyIsEqualsTo>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#00FF00</CssParameter>
<CssParameter name="fill-opacity">0.5</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#00FF00</CssParameter>
<CssParameter name="stroke-width">1</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
**********************************************************************************************
Mettenmeier GmbH
Sitz der Gesellschaft: 33100 Paderborn
Geschaeftsfuehrung: Ulrich Mettenmeier, Klaus von der Mosel, Dr. Michael Fette
Handelsregister: Amtsgericht Paderborn B 1114
USt.-ID: DE 811 324 124
Steuer-Nr.: 339/5873/3133
**********************************************************************************************
------------------------------------------------------------------------------
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