srsName does not cascade from Query to bounding box (and eventually, to other geometries as well)
-------------------------------------------------------------------------------------------------
Key: GEOS-1437
URL: http://jira.codehaus.org/browse/GEOS-1437
Project: GeoServer
Issue Type: Bug
Components: WFS
Affects Versions: 1.6.0-beta3
Reporter: Andrea Aime
Assignee: Justin Deoliveira
Fix For: 1.6.0-RC1
In the following query:
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs"
xmlns:sf="http://cite.opengeospatial.org/gmlsf"
xmlns:myparsers="http://teamengine.sourceforge.net/parsers"
xmlns:parsers="http://www.occamlab.com/te/parsers"
xmlns:saxon="http://saxon.sf.net/"
xmlns:p="http://teamengine.sourceforge.net/parsers"
xmlns="http://www.occamlab.com/ctl"
xmlns:ctl="http://www.occamlab.com/ctl"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:te="java:com.occamlab.te.TECore"
xmlns:ows="http://www.opengis.net/ows"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
service="WFS"
version="1.1.0">
<wfs:Query srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326" typeName="sf:PrimitiveGeoFeature">
<ogc:Filter>
<ogc:BBOX>
<ogc:PropertyName>sf:pointProperty</ogc:PropertyName>
<gml:Envelope>
<gml:lowerCorner>37.0 -2.5</gml:lowerCorner>
<gml:upperCorner>42.0 2.5</gml:upperCorner>
</gml:Envelope>
</ogc:BBOX>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
the srsName defined in Query does not get down to the bbox filter parsing code.
This might be addressed by using the same CRS passing down approach used in
AbstractGeometryTypeBinding, but there is the catch that bbox filter wants the
srs name and not a crs object.
OGCBBOXTypeBinding could then receive the srs, but would have to translate it
back to a name depending on the axis orientation of the srs.
The trouble is that even if you parse urn:x-ogc:def:crs:EPSG:6.11.2:4326 the
resulting crs object will state its id is "epsg:4326".
So I was thinking, should we pass down an IndentifiedCRS instead of just a CRS?
Where IndentifiedCRS might be just:
class IdentifiedCRS {
String srsName;
CoordinateReferenceSystem crs;
}
this should satisfy the requirements of both bbox and geometry parsing.
--
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