[Geoserver-users] SRSNAME reprojection problem

I'm running geoserver 1.6.0-beta, and the following GET request returns the feature in the native projection instead of the requested EPSG:4326. In fact, any value of SRSNAME at all seems to be ignored and the same (native projection) data is returned.

http://…/geoserver/wfs?request=GetFeature
&service=WFS
&version=1.1.0
&typename=gb:AdministrativeArea
&maxFeatures=1
&SRSNAME=urn:x-ogc:def:crs:EPSG:6.11.2:4326

Is this request invalid? Unsupported? What alternative request/format should I use to get my data returned in the projection of my choice?

Thanks in advance,
Chris

Hi Chris,

The request is fine and this is indeed a bug. It seems that with that
version only srsName specified in a POST request will actually work.
Opening up a jira task for this.

http://jira.codehaus.org/browse/GEOS-1304

I will commit the fix soon, it is a simple patch. I can generate a
nightly build after i commit so you can try it out if you are interested.

-Justin

Chris Hodgson wrote:

I'm running geoserver 1.6.0-beta, and the following GET request returns
the feature in the native projection instead of the requested EPSG:4326.
In fact, any value of SRSNAME at all seems to be ignored and the same
(native projection) data is returned.

http://…/geoserver/wfs?request=GetFeature
&service=WFS
&version=1.1.0
&typename=gb:AdministrativeArea
&maxFeatures=1
&SRSNAME=urn:x-ogc:def:crs:EPSG:6.11.2:4326

Is this request invalid? Unsupported? What alternative request/format
should I use to get my data returned in the projection of my choice?

Thanks in advance,
Chris

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,46d30345305021849620573!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Chris Hodgson ha scritto:

I'm running geoserver 1.6.0-beta, and the following GET request returns the feature in the native projection instead of the requested EPSG:4326. In fact, any value of SRSNAME at all seems to be ignored and the same (native projection) data is returned.

http://…/geoserver/wfs?request=GetFeature
&service=WFS
&version=1.1.0
&typename=gb:AdministrativeArea
&maxFeatures=1
&SRSNAME=urn:x-ogc:def:crs:EPSG:6.11.2:4326

Oh, one small consideration on this one: by using urn:x-ogc:def:crs:EPSG:6.11.2:4326 you're requesting GeoServer to
return data in lat/lon axis order, this is by OGC spec.
The urn format by spec requires the authority axis order to be
preserved, and the EPSG authority uses lat/lon.

If you want them to be preserved in lon/lat order, you'll have to
use the old EPSG:4326 instead.

Cheers
Andrea