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]>wrote:

> Hi,
>
> The CQL/ECQL documentation
> http://docs.geoserver.org/stable/en/user/filter/ecql_reference.html#filter-ecql-referencetells
>  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
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