Hi,
I have a very simple shp file with AZIMUTH field. Same point can have
different azimuth directions. So for example point Y with three directions
will be described as three rows with different GID, different azimuth and
same geom.
I apply SLD (see below) that will show available azimuths for a given
point. SLD works fine when a layer comes from oracle spatial or PostGIS but
behaves strange with shapefile. It will render only the first row for a
given point, i.e. will show only one direction and skip other two. If I
delete first row for the point it will rerender and display second azimuth
and ignore the last one (so data is actually there). I tried the same with
square symbol but I get the same result.
Tested with geoserver 2.1.2, 2.1.3, 2.2-rc1
SLD:
<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld"
xmlns:sld="http://www.opengis.net/sld"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:gml="http://www.opengis.net/gml" version="1.0.0">
<sld:NamedLayer>
<sld:Name>AZ</sld:Name>
<sld:UserStyle>
<sld:Name>AZ</sld:Name>
<sld:Title/>
<sld:FeatureTypeStyle>
<sld:Name>name</sld:Name>
<Rule>
<Name>az_rule</Name>
<Title>Azimuth</Title>
<Abstract>A 6 pixel square with a red fill and no
stroke</Abstract>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple"
xlink:href="file:///usr/local/tomcat/webapps/geoserver/data/styles/azimuth_blue.svg"
/>
<Format>image/svg+xml</Format>
</ExternalGraphic>
<Size>50</Size>
<sld:Rotation>
<ogc:PropertyName>AZIMUTH</ogc:PropertyName>
</sld:Rotation>
</Graphic>
</PointSymbolizer>
</Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:NamedLayer>
</sld:StyledLayerDescriptor>
SVG:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="
http://www.w3.org/2000/svg" version="1.1" width="200" height="200">
<path d="M 100 100 L 70 10 Q 100 0 130 10 z"
fill="blue" stroke="black" stroke-width="2" />
</svg>
Thanks Alex
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users