[Geoserver-devel] [jira] Created: (GEOS-1214) Inline feature parser does not take into account the CRS when parsing the feature type

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

With this request
http://localhost:8080/geoserver/wms?bgcolor=0xf2AAAFF&bbox=-2761827.8078423585,-2589793.885787334,2850918.460493497,2421607.9999959785&SLD=http://localhost:8080/geoserver/www/test.sld&Format=image/png&request=GetMap&width=600&height=600&SRS=EPSG:3031

and this SLD:

{code}
<StyledLayerDescriptor version="1.0.0"
    xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
    xmlns="http://www.opengis.net/sld&quot;
    xmlns:ogc="http://www.opengis.net/ogc&quot;
    xmlns:xlink="http://www.w3.org/1999/xlink&quot;
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
    xmlns:gml="http://www.opengis.net/gml&quot; >

  <!-- 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&quot;&gt;
                <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&quot;&gt;
                <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