[Geoserver-devel] [jira] Created: (GEOS-2199) Filter geometry srsName not inherited from Query (worked in 1.6.x)

Filter geometry srsName not inherited from Query (worked in 1.6.x)
------------------------------------------------------------------

                 Key: GEOS-2199
                 URL: http://jira.codehaus.org/browse/GEOS-2199
             Project: GeoServer
          Issue Type: Bug
          Components: WFS
    Affects Versions: 1.7.0-RC2
            Reporter: Andreas Hocevar
            Assignee: Andrea Aime

Take a look at this request:

<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs&quot; service="WFS" version="1.0.0" maxFeatures="1" outputFormat="GML2" xmlns:tiger="http://www.census.gov" xmlns:ogc="http://www.opengis.net/ogc&quot;&gt;
    <wfs:Query typeName="tiger:poly_landmarks" srsName="EPSG:900913">
        <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc&quot;&gt;
            <ogc:Intersects>
                <ogc:PropertyName>
                    the_geom
                </ogc:PropertyName>
                <gml:Point xmlns:gml="http://www.opengis.net/gml&quot;&gt;
                    <gml:coordinates decimal="." cs="," ts=" ">
                        -8237470.327209473,4972883.484817505
                    </gml:coordinates>
                </gml:Point>
            </ogc:Intersects>
        </ogc:Filter>
    </wfs:Query>
</wfs:GetFeature>

This works fine with Geoserver 1.6.x, but it does not with 1.7.0-rc2. It does not return any features, because the gml:Point does not seem to inherit the srsName from wfs:Query. As soon as you add srsName="EPSG:900913" as attribute to the gml:Point node, it works again.

Maybe it is not even a bug, but for me it's hard to tell what the WFS spec says about this. The srsName on the wfs:Query defines the srs that the features should be returned in, but I could not find anything about if or how to interpret the srsName property on a geometry.

--
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