Inline feature parser does not take into account the CRS when parsing the feature type
--------------------------------------------------------------------------------------
Key: GEOS-1214
URL: http://jira.codehaus.org/browse/GEOS-1214
Project: GeoServer
Issue Type: Bug
Components: WMS
Affects Versions: 1.6.0-beta1
Reporter: Andrea Aime
Assignee: Andrea Aime
Fix For: 1.5.2, 1.6.0-beta2
and this SLD:
{code}
<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"
xmlns:gml="http://www.opengis.net/gml" >
<!-- THE YELLOW DOT -->
<UserLayer>
<Name>Inline</Name>
<InlineFeature>
<gml:FeatureCollection>
<gml:featureMember>
<MyDot>
<gml:Type>Yellow_Dot</gml:Type>
<gml:pointProperty>
<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coordinates> -45,-67 </gml:coordinates>
</gml:Point>
</gml:pointProperty>
<gml:PointName>A</gml:PointName>
</MyDot>
</gml:featureMember>
<gml:featureMember>
<MyDot>
<gml:Type>Yellow_Dot</gml:Type>
<gml:pointProperty>
<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coordinates> 135,-80 </gml:coordinates>
</gml:Point>
</gml:pointProperty>
<gml:PointName>B</gml:PointName>
</MyDot>
</gml:featureMember>
</gml:FeatureCollection>
</InlineFeature>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>Type</ogc:PropertyName>
<ogc:Literal>Yellow_Dot</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>circle</WellKnownName>
<Fill>
<CssParameter name="fill">#FFFF00</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#000000</CssParameter>
</Stroke>
</Mark>
<Opacity>1</Opacity>
<Size>15</Size>
</Graphic>
</PointSymbolizer>
<TextSymbolizer>
<Label>
<ogc:PropertyName>PointName</ogc:PropertyName>
</Label>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</UserLayer>
</StyledLayerDescriptor>
{code}
the request fails to draw the two points. What's happening in fact is that the two points are superimposed because their coordinates are assumed to be in 3031 instead of being in 4326 (so they are both very close to the origin).
--
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