[Geoserver-devel] [jira] Created: (GEOS-2247) dynamic rotation a label do not show on image

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&quot; xmlns:ows = "http://www.opengis.net/ows&quot; xmlns:wms = "http://www.opengis.net/ows&quot; xmlns:xlink = "http://www.w3.org/1999/xlink&quot; xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation = "http://www.opengis.net/ows&quot;&gt;
<StyledLayerDescriptor xmlns:ogc = "http://www.opengis.net/ogc&quot; xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation = "http://www.opengis.net/sld&quot; xmlns = "http://www.opengis.net/sld&quot; 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&quot;&gt;
<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