Hi all,
I’m not sure if this is a bug or a feature so I thought I’d ask here, though I suspect a feature.
I’m trying to select stuff from a datastore using WFS, getfeature and outputFormat. I’m using bbox to provide the co-ordinates of the area I want things to be selected from, i.e.:
http://localhost:8080/geoserver/wfs?request=getfeature&service=wfs&version=1.0.0&typename=j2:woodland_geometry&outputFormat=GML2&bbox=-5.93395132390662,50.9761679303823,-1.3995414878861223,53.776153474504284
The quirk is, when the version is 1.0.0 as shown above, it works fine and returns results. But when I change the version number to 1.1.0, I get zero results. Is bbox not allowed to work in the 1.1 spec? If not, how am I supposed to get data, using CQL? It doesn’t seem to make a difference what the outputFormat is set to (GML2 or 3).
Disclaimer: I’m fine with leaving it on version 1.0.0, I’m just trying to figure out what’s going on. 
Jonathan
Hi,
If it is a bug then the bug is in the WFS 1.1 specifications which flipped the coordinate axis order. If you turn around the bbox coordinates from lat/lon to lon/lat in your 1.1.0 request then you should get some features back again.
-Jukka Rahkonen-
Jonathan Moules wrote:
Hi all,
I'm not sure if this is a bug or a feature so I thought I'd ask here, though
I suspect a feature.
I'm trying to select stuff from a datastore using WFS, getfeature and
outputFormat. I'm using bbox to provide the co-ordinates of the area I want
things to be selected from, i.e.:
http://localhost:8080/geoserver/wfs?request=getfeature&service=wfs&version=1.0.0&typename=j2:woodland_geometry&outputFormat=GML2&bbox=-5.93395132390662,50.9761679303823,-1.3995414878861223,53.776153474504284
The quirk is, when the version is 1.0.0 as shown above, it works fine and
returns results. But when I change the version number to 1.1.0, I get zero
results. Is bbox not allowed to work in the 1.1 spec? If not, how am I
supposed to get data, using CQL? It doesn't seem to make a difference what
the outputFormat is set to (GML2 or 3).
Disclaimer: I'm fine with leaving it on version 1.0.0, I'm just trying to
figure out what's going on. 
Jonathan
Sorry, I meant from lon/lat to lat/lon, naturally.
Rahkonen Jukka wrote:
Hi,
If it is a bug then the bug is in the WFS 1.1 specifications which flipped the coordinate axis order. If you turn around the bbox coordinates from lat/lon to lon/lat in your 1.1.0 request then you should get some features back again.
-Jukka Rahkonen-
Jonathan Moules wrote:
Hi all,
I'm not sure if this is a bug or a feature so I thought I'd ask here, though
I suspect a feature.
I'm trying to select stuff from a datastore using WFS, getfeature and
outputFormat. I'm using bbox to provide the co-ordinates of the area I want
things to be selected from, i.e.:
http://localhost:8080/geoserver/wfs?request=getfeature&service=wfs&version=1.0.0&typename=j2:woodland_geometry&outputFormat=GML2&bbox=-5.93395132390662,50.9761679303823,-1.3995414878861223,53.776153474504284
The quirk is, when the version is 1.0.0 as shown above, it works fine and
returns results. But when I change the version number to 1.1.0, I get zero
results. Is bbox not allowed to work in the 1.1 spec? If not, how am I
supposed to get data, using CQL? It doesn't seem to make a difference what
the outputFormat is set to (GML2 or 3).
Disclaimer: I'm fine with leaving it on version 1.0.0, I'm just trying to
figure out what's going on. 
Jonathan
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Thanks Jukka - that seemed to do it. I had noticed the co-ords in quite a few geoserver things were flipped around in strange kinds of ways, at least now I know at least part of the blame goes to the OGC. 
Jonathan
2009/6/22 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Sorry, I meant from lon/lat to lat/lon, naturally.
Rahkonen Jukka wrote:
Hi,
If it is a bug then the bug is in the WFS 1.1 specifications which flipped the coordinate axis order. If you turn around the bbox coordinates from lat/lon to lon/lat in your 1.1.0 request then you should get some features back again.
-Jukka Rahkonen-
Jonathan Moules wrote:
Hi all,
I’m not sure if this is a bug or a feature so I thought I’d ask here, though
I suspect a feature.
I’m trying to select stuff from a datastore using WFS, getfeature and
outputFormat. I’m using bbox to provide the co-ordinates of the area I want
things to be selected from, i.e.:
http://localhost:8080/geoserver/wfs?request=getfeature&service=wfs&version=1.0.0&typename=j2:woodland_geometry&outputFormat=GML2&bbox=-5.93395132390662,50.9761679303823,-1.3995414878861223,53.776153474504284
The quirk is, when the version is 1.0.0 as shown above, it works fine and
returns results. But when I change the version number to 1.1.0, I get zero
results. Is bbox not allowed to work in the 1.1 spec? If not, how am I
supposed to get data, using CQL? It doesn’t seem to make a difference what
the outputFormat is set to (GML2 or 3).
Disclaimer: I’m fine with leaving it on version 1.0.0, I’m just trying to
figure out what’s going on. 
Jonathan
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Rahkonen Jukka ha scritto:
Hi,
If it is a bug then the bug is in the WFS 1.1 specifications which
flipped the coordinate axis order. If you turn around the bbox
coordinates from lat/lon to lon/lat in your 1.1.0 request then you
should get some features back again.
Actually it's the opposite: WFS 1.0 -> lon/lat
WFS 1.1 -> lat/lon
Cheers
Andrea