# Cartesian coordinate support in ES

**URL:** https://discuss.elastic.co/t/cartesian-coordinate-support-in-es/80864
**Category:** Elasticsearch
**Created:** [March 31, 2017, 7:04pm UTC](https://discuss.elastic.co/t/cartesian-coordinate-support-in-es/80864 "2017-03-31T19:04:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![arsi](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@arsi](https://discuss.elastic.co/u/arsi)
#### Post date: [March 31, 2017, 7:04pm UTC](https://discuss.elastic.co/t/cartesian-coordinate-support-in-es/80864/1 "2017-03-31T19:04:36Z")

</div>

Hi. I'm new to ES and I was wondering if elastic search supports cartesian geometric data or if I have to do a custom implementation.

Basically, I have points in a plane and I want to be able to do aggregates such as returning the count of the number of points in boxes of size dx, dy. I want there to not be a limit on the axis lengths (at least not as small as 180). All my searches so far have led to geoshape and the geopoint data type, but it won't work for our purposes since this is a spherical coordinate system and not a 2d cartesian coordinate system.

Thanks for the help!

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [April 2, 2017, 2:10am UTC](https://discuss.elastic.co/t/cartesian-coordinate-support-in-es/80864/2 "2017-04-02T02:10:53Z")

</div>

AFAIK it doesn't directly, but you could probably adapt it to as lat/lon are the same idea (well, numerically) just for geography.

---

<div class="post-metadata">

### Author: ![arsi](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@arsi](https://discuss.elastic.co/u/arsi)
#### Post date: [April 3, 2017, 10:26pm UTC](https://discuss.elastic.co/t/cartesian-coordinate-support-in-es/80864/3 "2017-04-03T22:26:52Z")

</div>

Thanks for the response. I don't think lat/lon will work for our case though based on what I see (bounded by 180, only integer values can be used for precision parameter, and I imagine there are issues involve in using latitude/longitude for 2 dimensional coordinate system). I'm curious, is this something I can add to elasticsearch? I know that mysql supports geometric spatial data and I was wondering if you think this would be useful for elasticsearch.

---

<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: [May 1, 2017, 10:26pm UTC](https://discuss.elastic.co/t/cartesian-coordinate-support-in-es/80864/4 "2017-05-01T22:26:55Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
