Hi,

Sorry about the 'EPSG:1234' and counting the number of parameters wrong. It 
does really read in the document that CRS is a string and in another place that 
string belongs in between single quotes. However, a clear and complete 
copy-paste ready BBOX example including the CRS part with quetes would be 
better for the readers.

About the default CRS, WFS 1.1.0 spec says "clearly" that KVP BBOX without 
coordinate system must default to CRS84. Geoserver does not bother about this 
and it may be good for the users. However, some other servers like TinyOWS 
behave like standard says. I would say that WFS 1.1.0 clients should never rely 
on the defaults but always include the CRS with BBOX, but now all WFS servers 
do not accept such BBOX at all which is one of those things making use of WFS 
so amusing. A blog post about this is at 
http://augusttown.blogspot.fi/2010/08/mysterious-bbox-parameter-in-web.html

-Jukka-


________________________________
Lähettäjä: Martin Davis [[email protected]]
Lähetetty: 8. marraskuuta 2012 19:22
Vastaanottaja: Rahkonen Jukka
Kopio: [email protected]
Aihe: Re: [Geoserver-users] CQL BBOX in documentation and in the real life

I think you're correct about the behaviour, and the documentation is wrong.  It 
should read:

The optional CRS is a string containing an SRS code (such as 'EPSG:1234').  The 
default is to use the CRS of the layer being queried.

Both 5 and 6-parameter BBOX expressions should work - note that the CRS needs 
to be in quotes.

On Thu, Nov 8, 2012 at 8:54 AM, Rahkonen Jukka 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

The CQL/ECQL documentation 
http://docs.geoserver.org/stable/en/user/filter/ecql_reference.html#filter-ecql-reference
 tells about BBOX

" BBOX ( Expression , Number , Number , Number , Number [ , CRS ] )
Tests whether a geometry intersects a bounding box specified by its minimum and 
maximum X and Y values. The optional CRS is a string containing an SRS code 
(the default is EPSG:4326) "

Isn't that exactly how BBOX is used in the user question earliar today?  The 
following query finds data from the sf:streams but I wonder if it correct or 
not.

http://localhost:8080/geoserver/wfs?request=GetFeature&typeName=sf:streams&cql_filter=bbox%28the_geom,500000,4000000,700000,6000000%29

I read the CQL/ECQL reference so that the four-parameter BBOX above should be 
interpreted as EPSG:4326 BBOX, and if it is to mean EPSG:26713 BBOX it should 
be written as
cql_filter=bbox%28the_geom,500000,4000000,700000,6000000,EPSG:26713%29

However, Geoserver seems to interpret that CQL filter BBOX without CRS means 
the default CRS of the layer and it does not accept five-paremeter BBOX at all. 
 That't in CQL filter, the standard WFS BBOX as key-value-pair parameter does 
accept the fifth parameter.


--
Martin Davis
OpenGeo - http://opengeo.org<http://opengeo.org/>
Expert service straight from the developers.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to