dynamic rotation a label do not show on image
---------------------------------------------
Key: GEOS-2247
URL: http://jira.codehaus.org/browse/GEOS-2247
Project: GeoServer
Issue Type: Bug
Components: WMS
Environment: Linux CentOS 5.0
Reporter: Etienne Araya
Assignee: Andrea Aime
Fix For: 1.7.0
There is a BUG with rotation on TextSymbolizer
when I put this InlineFeature the text "TEXT1" don't show when using
<LabelPlacement>
<PointPlacement>
<Rotation>
<ogc:PropertyName>Rotation</ogc:PropertyName>
</Rotation>
</PointPlacement>
</LabelPlacement>
but using a number directly it works
<LabelPlacement>
<PointPlacement>
<Rotation>
45
</Rotation>
</PointPlacement>
</LabelPlacement>
below is an example wms request
<wms:GetMap service = "WMS" version = "1.3.0" xmlns:gml = "http://www.opengis.net/gml" xmlns:ows = "http://www.opengis.net/ows" xmlns:wms = "http://www.opengis.net/ows" xmlns:xlink = "http://www.w3.org/1999/xlink" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://www.opengis.net/ows">
<StyledLayerDescriptor xmlns:ogc = "http://www.opengis.net/ogc" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://www.opengis.net/sld" xmlns = "http://www.opengis.net/sld" version = "1.0.0">
<UserLayer>
<Name>Inline</Name>
<InlineFeature>
<FeatureCollection>
<featureMember>
<POI>
<Label>TEXT1</Label>
<Rotation>45</Rotation>
<pointProperty>
<gml:Point srsName = "http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coord>
<gml:X>-70.609533</gml:X>
<gml:Y>-33.418733</gml:Y>
</gml:coord>
</gml:Point>
</pointProperty>
</POI>
</featureMember>
</FeatureCollection>
</InlineFeature>
<LayerFeatureConstraints>
<FeatureTypeConstraint/>
</LayerFeatureConstraints>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<TextSymbolizer>
<Label>
<ogc:PropertyName>Label</ogc:PropertyName>
</Label>
<LabelPlacement>
<PointPlacement>
<Rotation>
<ogc:PropertyName>Rotation</ogc:PropertyName>
</Rotation>
</PointPlacement>
</LabelPlacement>
<Halo>
<Radius>2</Radius>
<Fill>
<CssParameter name = "fill">#FFFFFF</CssParameter>
<CssParameter name = "fill-opacity">0.85</CssParameter>
</Fill>
</Halo>
<Fill>
<CssParameter name = "fill">#000000</CssParameter>
</Fill>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</UserLayer>
</StyledLayerDescriptor>
<wms:BoundingBox srsName = "EPSG#4326">
<gml:coord>
<gml:X>-70.6554607276</gml:X>
<gml:Y>-33.4234815161</gml:Y>
</gml:coord>
<gml:coord>
<gml:X>-70.5917232724</gml:X>
<gml:Y>-33.3751024839</gml:Y>
</gml:coord>
</wms:BoundingBox>
<wms:Output>
<wms:Format>image/jpeg</wms:Format>
<wms:Transparent>true</wms:Transparent>
<wms:BGcolor>0xFFFFFF</wms:BGcolor>
<wms:Size>
<wms:Width>415</wms:Width>
<wms:Height>315</wms:Height>
</wms:Size>
</wms:Output>
<wms:Exceptions>application/vnd.ogc.se+inimage</wms:Exceptions>
</wms:GetMap>
--
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