[Geoserver-users] WFS 1.6.4: Features revolved 90 degrees?

I'm using Geoserver 1.6.4's WFS to retrieve a simple point type (in GML2 since GML3 is giving me NullPointerExceptions, but that's for another e-mail), but whenever I specify a BBOX, the box gets rotated 90 degrees around (0,0).

With BBOX=-180,-90,180,90 I get this boundedBy:

<gml:boundedBy>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates decimal="." cs="," ts=" ">-84.986116,-89.861522 83.784695,89.670032</gml:coordinates>
</gml:Box>
</gml:boundedBy>

With BBOX=-90,-180,90,180 I get this:

<gml:boundedBy>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates decimal="." cs="," ts=" ">-84.986116,-179.842232 84.701757,179.746389</gml:coordinates>
</gml:Box>
</gml:boundedBy>

But the coordinate pairs seem backward, and I had to specify a backwards BBOX. In OpenLayers, the features themselves seem to have revolved 90 degrees around the origin. Here's a sampling of points from the database:

select asewkt(latlonalt) from ...
POINT(164.633616 -8.164801 1497.655041)
POINT(-133.282617 38.431241 0)
POINT(52.063888 30.033215 1575.509414)
POINT(119.297458 -9.703107 210.578179)
POINT(-81.260415 26.65784 1157.392573)
POINT(-100.388277 20.638608 1105.992547)
POINT(101.494309 -56.331053 856.095094)

(i.e. no points off the top of the map!) Everything is in WGS84 coordinates, not projected. Can anyone help me puzzle out what's going on here?

--
Dustin Parker
Forward Slope, Inc.
Work: 619 299 4400
Cell: 619 277 2591
0tDaX0iWmunqkiR2WKCNG
vHUT0iWqSJHZYoI0a8d1p
E9Ilprp6QZrogbPZYoI0a
8aA0ekDQ6eyxQRo146A==

Hi,

Geoserver 1.6.4 is using as a default WFS 1.1.0 which flipped the axis order. Try using old standard version 1.0.0 instead by having "&version=1.0.0" in your wfs requests.

-Jukka Rahkonen-

-----Alkuperäinen viesti-----
Lähettäjä: geoserver-users-bounces@lists.sourceforge.net puolesta: Dustin Parker
Lähetetty: ti 19.8.2008 3:20
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] WFS 1.6.4: Features revolved 90 degrees?

I'm using Geoserver 1.6.4's WFS to retrieve a simple point type (in GML2
since GML3 is giving me NullPointerExceptions, but that's for another
e-mail), but whenever I specify a BBOX, the box gets rotated 90 degrees
around (0,0).

With BBOX=-180,-90,180,90 I get this boundedBy:

<gml:boundedBy>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates decimal="." cs="," ts=" ">-84.986116,-89.861522
83.784695,89.670032</gml:coordinates>
</gml:Box>
</gml:boundedBy>

With BBOX=-90,-180,90,180 I get this:

<gml:boundedBy>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates decimal="." cs="," ts=" ">-84.986116,-179.842232
84.701757,179.746389</gml:coordinates>
</gml:Box>
</gml:boundedBy>

But the coordinate pairs seem backward, and I had to specify a backwards
BBOX. In OpenLayers, the features themselves seem to have revolved 90
degrees around the origin. Here's a sampling of points from the database:

select asewkt(latlonalt) from ...
POINT(164.633616 -8.164801 1497.655041)
POINT(-133.282617 38.431241 0)
POINT(52.063888 30.033215 1575.509414)
POINT(119.297458 -9.703107 210.578179)
POINT(-81.260415 26.65784 1157.392573)
POINT(-100.388277 20.638608 1105.992547)
POINT(101.494309 -56.331053 856.095094)

(i.e. no points off the top of the map!) Everything is in WGS84
coordinates, not projected. Can anyone help me puzzle out what's going
on here?

--
Dustin Parker
Forward Slope, Inc.
Work: 619 299 4400
Cell: 619 277 2591
0tDaX0iWmunqkiR2WKCNG
vHUT0iWqSJHZYoI0a8d1p
E9Ilprp6QZrogbPZYoI0a
8aA0ekDQ6eyxQRo146A==

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users