[Geoserver-users] Problems with the Swedish RT90 projection (EPSG:3021)

Hello
We have several features in Geoserver that has the Swedish
RT90-projection (EPSG:3021) and if you just asks for an image from the
WMS server then everything is fine.. But if I try to get the features as
a SHAPE/zip from the WFS-server then the result is rotated and reversed.
And if I try to get some features from the WFS-server with the
BBOX-parameter then I have to switch X & Y with each other to get any
response.

I've read something about that the Swedish RT90 uses X as easting and Y
as northing. My guess is that this is the root cause to the problem. But
I don't know WHY it's a problem, is it Proj4 that can't handle this or
is it something in Geoserver that cause the problem?

Anyone how as any ideas?

//Mårten

Mårten Swärd ha scritto:

Hello
We have several features in Geoserver that has the Swedish
RT90-projection (EPSG:3021) and if you just asks for an image from the
WMS server then everything is fine.. But if I try to get the features as
a SHAPE/zip from the WFS-server then the result is rotated and reversed.
And if I try to get some features from the WFS-server with the
BBOX-parameter then I have to switch X & Y with each other to get any
response.

I've read something about that the Swedish RT90 uses X as easting and Y
as northing. My guess is that this is the root cause to the problem. But
I don't know WHY it's a problem, is it Proj4 that can't handle this or
is it something in Geoserver that cause the problem?

Which version of WFS are you using? OGC mandates that WFS 1.1 returns
data in the order the EPSG defined the projection. For most geographic
ones, that means lat/lon, and it means most client will display
the data flipped as a result.

If you use WFS 1.0 this should not happen
Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hi
I'm using version 1.1, I changed the request to ask for version 1.0 and
now the result looks like it should.
Thanks!

//Mårten

On Fri, 2009-02-06 at 10:57 +0100, Andrea Aime wrote:

Mårten Swärd ha scritto:
> Hello
> We have several features in Geoserver that has the Swedish
> RT90-projection (EPSG:3021) and if you just asks for an image from the
> WMS server then everything is fine.. But if I try to get the features as
> a SHAPE/zip from the WFS-server then the result is rotated and reversed.
> And if I try to get some features from the WFS-server with the
> BBOX-parameter then I have to switch X & Y with each other to get any
> response.
>
> I've read something about that the Swedish RT90 uses X as easting and Y
> as northing. My guess is that this is the root cause to the problem. But
> I don't know WHY it's a problem, is it Proj4 that can't handle this or
> is it something in Geoserver that cause the problem?

Which version of WFS are you using? OGC mandates that WFS 1.1 returns
data in the order the EPSG defined the projection. For most geographic
ones, that means lat/lon, and it means most client will display
the data flipped as a result.

If you use WFS 1.0 this should not happen
Cheers
Andrea