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">
<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">
<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==