[Geoserver-devel] [jira] (GEOS-6286) Changed Axis Ordering with WFS 1.1.0 Filtering using URN-Projections

Bernhard Kiselka created BugGEOS-6286
Changed Axis Ordering with WFS 1.1.0 Filtering using URN-Projections

Issue Type:

BugBug

Affects Versions:

2.4.2

Assignee:

Andrea Aime

Components:

WFS

Created:

16/Jan/14 8:48 AM

Description:

I upgraded from GeoServer 2.1.3 to 2.4.2 and experienced the following problem:

Worked and works only in GeoServer 2.1.3: Provide coordinates as latitude/longitude (y/x)
Example:
http://localhost:8080/geoserver/ows?service=wfs&version=1.1.0&request=getfeature&typeName=EDGE&filter=<Filter xmlns:ogc=“http://www.opengis.net/ogc” xmlns:gml=“http://www.opengis.net/gml”><BBOX><PropertyName>SHAPE</PropertyName><gml:Envelope srsName=“urn:x-ogc:def:crs:EPSG:31258”><gml:lowerCorner>167426 524877</gml:lowerCorner><gml:upperCorner>167573 525122</gml:upperCorner></gml:Envelope></BBOX></Filter>

Works only GeoServer 2.4.2: Provide coordinates as longitude/latitude (x/y)
Example:
http://localhost:8080/geoserver/ows?service=wfs&version=1.1.0&request=getfeature&typeName=EDGE&filter=<Filter xmlns:ogc=“http://www.opengis.net/ogc” xmlns:gml=“http://www.opengis.net/gml”><BBOX><PropertyName>SHAPE</PropertyName><gml:Envelope srsName=“urn:x-ogc:def:crs:EPSG:31258”><gml:lowerCorner>524877 167426</gml:lowerCorner><gml:upperCorner>525122 167573</gml:upperCorner></gml:Envelope></BBOX></Filter>

The new behaviour does not match the documented behaviour here http://docs.geoserver.org/stable/en/user/services/wfs/basics.html#axis-ordering

A work-around that works with both GeoServer versions: Provide coordinates as longitude/latitude (x/y), but use srsName EPSG:31258 instead of urn:x-ogc:def:crs:EPSG:31258 http://localhost:8080/geoserver/ows?service=wfs&version=1.1.0&request=getfeature&typeName=EDGE&filter=<Filter xmlns:ogc=“http://www.opengis.net/ogc” xmlns:gml=“http://www.opengis.net/gml”><BBOX><PropertyName>SHAPE</PropertyName><gml:Envelope srsName=“EPSG:31258”><gml:lowerCorner>524877 167426</gml:lowerCorner><gml:upperCorner>525122 167573</gml:upperCorner></gml:Envelope></BBOX></Filter>

Environment:

Windows 7, JBoss, Oracle NG

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Bernhard Kiselka

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)