[Geoserver-devel] [JIRA] (GEOS-7258) CQL filter query with BBOX and geometric shape errors

Tony Baron created an issue

GeoServer / BugGEOS-7258

CQL filter query with BBOX and geometric shape errors

Issue Type:

BugBug

Assignee:

Unassigned

Created:

20/Oct/15 9:48 PM

Environment:

Using demo server at: http://demo.boundlessgeo.com/geoserver

Priority:

LowLow

Reporter:

Tony Baron

When attempting to a BBOX CQL filter against geometric shapes like POLYGON, GeoServer errors out with an exception:

org.geotools.filter.LiteralExpressionImpl cannot be cast to org.opengis.filter.Filter

According to the documentation at http://docs.geoserver.org/2.7.1/user/filter/ecql_reference.html#spatial-predicate it seems like you should be able to do a BBOX query against a geometric shape like a POLYGON. Other spatial predicates appear to work correctly.

An example of this issue is the following request:

http://demo.boundlessgeo.com/geoserver/wfs?cql_filter=BBOX(%22the_geom%22,+POLYGON((-105.51+43.06,-105.51+47.10,-97.77+47.10,-97.77+43.06,-105.51+43.06)))&outputFormat=text%2Fxml;+subtype%3Dgml%2F3.1.1&request=GetFeature&srsName=EPSG:4326&typeName=og:archsites&version=1.0.0

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.0.0-OD-08-002#70107-sha1:3f098e8)

Atlassian logo