GeoSearch against stored Bounding Box

Hi,
all I've been through the query/filter documentation, and have seen
the ability to search for points in a bounding box.

My domain problem is subtlely different. I am storing bounding boxes,
and want to find the box that contains the search point.

Storing the 4 corners of the box and searching against them won't give
me my answer: that would return a distance - and I can't determine yes/
no bounds from that.

I guess the same situation would apply to stored polygons. If we have
the world's countries stored as polygons we may want to find the
country that contains a particular lat/long. Or we may have a
database of aerial imagery, and we may want to find any images that
cover a particular lat/long.

Most grateful for any clarification on this,
Cheers,
Ian

There isn't support for matching on stored bounding boxes. It has been discussed in the mailing list before, it will require adding a new type of filter, which expects to get the locations for the bounding box fields, and then do the checks.

On Friday, February 24, 2012 at 6:05 PM, ian mayo wrote:

Hi,
all I've been through the query/filter documentation, and have seen
the ability to search for points in a bounding box.

My domain problem is subtlely different. I am storing bounding boxes,
and want to find the box that contains the search point.

Storing the 4 corners of the box and searching against them won't give
me my answer: that would return a distance - and I can't determine yes/
no bounds from that.

I guess the same situation would apply to stored polygons. If we have
the world's countries stored as polygons we may want to find the
country that contains a particular lat/long. Or we may have a
database of aerial imagery, and we may want to find any images that
cover a particular lat/long.

Most grateful for any clarification on this,
Cheers,
Ian

New issue (feature request) added to GitHub
cheers Shay,
Ian

On Feb 26, 7:32 pm, Shay Banon kim...@gmail.com wrote:

There isn't support for matching on stored bounding boxes. It has been discussed in the mailing list before, it will require adding a new type of filter, which expects to get the locations for the bounding box fields, and then do the checks.