Boundingbox facet

Hi Shay,
Do you think it would be difficult to implement a geo facet that used boundingbox and not a distance?

I'm thinking along the lines of

{
"geo_bbox": {
"bbox": [-180,90,180,-90],
"grid_size": 0.05,
"key_field": "location",
"value_field": "propery_value"
}

}

The grid_size in combination with the boundbox creates the buckets.

Rasteranalysis in GIS would be an interesting use case.

Regards Mats

Should be possible, requires thinking as to expanding the boxes correctly.
Sure, open an issue, or better yet, help implementing it :slight_smile:

On Wed, Aug 24, 2011 at 12:12 PM, Mats Norén mats.noren@gmail.com wrote:

Hi Shay,
Do you think it would be difficult to implement a geo facet that used
boundingbox and not a distance?

I'm thinking along the lines of

{
"geo_bbox": {
"bbox": [-180,90,180,-90],
"grid_size": 0.05,
"key_field": "location",
"value_field": "propery_value"
}

}

The grid_size in combination with the boundbox creates the buckets.

Rasteranalysis in GIS would be an interesting use case.

Regards Mats

Thanks, I'll see what I can do. :slight_smile:
Opened an issue: Geofacet with boundingbox · Issue #1275 · elastic/elasticsearch · GitHub

/M

On Wed, Aug 24, 2011 at 8:07 PM, Shay Banon kimchy@gmail.com wrote:

Should be possible, requires thinking as to expanding the boxes correctly.
Sure, open an issue, or better yet, help implementing it :slight_smile:

On Wed, Aug 24, 2011 at 12:12 PM, Mats Norén mats.noren@gmail.com wrote:

Hi Shay,
Do you think it would be difficult to implement a geo facet that used
boundingbox and not a distance?

I'm thinking along the lines of

{
"geo_bbox": {
"bbox": [-180,90,180,-90],
"grid_size": 0.05,
"key_field": "location",
"value_field": "propery_value"
}

}

The grid_size in combination with the boundbox creates the buckets.

Rasteranalysis in GIS would be an interesting use case.

Regards Mats