Boundingbox facet


(Mats Norén) #1

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


(Shay Banon) #2

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


(Mats Norén) #3

Thanks, I'll see what I can do. :slight_smile:
Opened an issue: https://github.com/elasticsearch/elasticsearch/issues/1275

/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


(system) #4