# Boundingbox facet

**URL:** <https://discuss.elastic.co/t/boundingbox-facet/5235>\
**Category:** Elasticsearch\
**Created:** [August 24, 2011, 9:12am UTC](https://discuss.elastic.co/t/boundingbox-facet/5235 "2011-08-24T09:12:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mats\_Noren](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@Mats\_Noren](https://discuss.elastic.co/u/Mats_Noren)\
**Post date:** [August 24, 2011, 9:12am UTC](https://discuss.elastic.co/t/boundingbox-facet/5235/1 "2011-08-24T09:12:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [August 24, 2011, 6:07pm UTC](https://discuss.elastic.co/t/boundingbox-facet/5235/2 "2011-08-24T18:07:51Z")

</div>

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

On Wed, Aug 24, 2011 at 12:12 PM, Mats Norén [mats.noren@gmail.com](mailto: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

---

<div class="post-metadata">

**Author:** ![Mats\_Noren](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@Mats\_Noren](https://discuss.elastic.co/u/Mats_Noren)\
**Post date:** [August 25, 2011, 8:50am UTC](https://discuss.elastic.co/t/boundingbox-facet/5235/3 "2011-08-25T08:50:22Z")

</div>

Thanks, I'll see what I can do. 🙂  
Opened an issue: [Geofacet with boundingbox · Issue #1275 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1275)

/M

On Wed, Aug 24, 2011 at 8:07 PM, Shay Banon [kimchy@gmail.com](mailto: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 🙂
> 
> On Wed, Aug 24, 2011 at 12:12 PM, Mats Norén [mats.noren@gmail.com](mailto: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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:56am UTC](https://discuss.elastic.co/t/boundingbox-facet/5235/4 "2017-07-06T03:56:03Z")

</div>


