SLD: <PerpendicularOffset> not being applied
--------------------------------------------
Key: GEOS-602
URL: http://jira.codehaus.org/browse/GEOS-602
Project: GeoServer
Type: Bug
Components: Global
Versions: 1.3.0
Environment: Geoserver 1.3.0a, CentOS 4.2 (RHEL4 equivalent)
Reporter: Corey Puffalt
Assigned to: dblasby
Fix For: 1.3.1
As documented on the various SLD-related pages on the GeoServer wiki I have created a SLD which looks like this:
<?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>Default Line</Name>
<UserStyle>
<!-- they have names, titles and abstracts -->
<Title>A boring default style</Title>
<Abstract>A sample style that just prints out a green line</Abstract>
<!-- FeatureTypeStyles describe how to render different features -->
<!-- a feature type for lines -->
<FeatureTypeStyle>
<!--FeatureTypeName>Feature</FeatureTypeName-->
<Rule>
<Name>Rule 1</Name>
<Title>Green Line</Title>
<Abstract>A green line with a 2 pixel width</Abstract>
<!-- like a polygonsymbolizer -->
<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">#319738</CssParameter>
<CssParameter name="stroke-width">2</CssParameter>
</Stroke>
</LineSymbolizer>
</Rule>
<!-- Add a label -->
<Rule>
<TextSymbolizer>
<Label>
<ogc:PropertyName>name</ogc:PropertyName>
</Label>
<Font>
<CssParameter name="font-family">Lucida Sans Typewriter</CssParameter>
<CssParameter name="font-style">Normal</CssParameter>
<CssParameter name="font-size">12</CssParameter>
<CssParameter name="font-weight">bold</CssParameter>
</Font>
<LabelPlacement>
<LinePlacement>
<PerpendicularOffset>15</PerpendicularOffset>
</LinePlacement>
</LabelPlacement>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
The problem is that the <PerpendicularOffset> setting isn't being honoured resulting in the labels being on top of the lines in my layer rather than shifted off the line.
This shouldn't matter, but just in case, the layer in question is served from a PostGIS datasource containing multi-linestrings.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira