Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: support location queries (geospatial indexing) #19313

Open
vivekmenezes opened this Issue Oct 17, 2017 · 11 comments

Comments

@vivekmenezes
Copy link
Contributor

vivekmenezes commented Oct 17, 2017

http://postgis.net/ is an example of a Postgres extension that supports location queries.

If you would like cockroachdb to support geospatial indexes for your project please do vote for this feature. We would also appreciate specific details on how you might use this feature so we can support you within the scope we define for this feature.

Thanks!

@awoods187

This comment has been minimized.

Copy link
Contributor

awoods187 commented Feb 28, 2018

Community request: what are some use cases that you want to use geospatial indexing for?

@grantcarthew

This comment has been minimized.

Copy link

grantcarthew commented Mar 8, 2018

Quote:

A common query used with spatial data is the Nearest Neighbor query. Nearest Neighbor queries are used to find the closest spatial objects to a specific spatial object. For example a store locator for a Web site often must find the closest store locations to a customer location.

Source: https://docs.microsoft.com/en-us/sql/relational-databases/spatial/query-spatial-data-for-nearest-neighbor

I have a Postgres database using PostGIS which contains address details of multiple locations. The users can search for the nearest location.

@johanneswuerbach

This comment has been minimized.

Copy link

johanneswuerbach commented Mar 8, 2018

The SaaS provider I work for provides the following query capabilities currently backed by postgis: finding points within a bounding box, within a radius around a given point or to generally order points by distance to known point x

So far those seem to solve most of our customer use cases.

@andressrg

This comment has been minimized.

Copy link

andressrg commented Mar 23, 2018

Most of my use cases involve being able to calculate distance between 2 GPS points.

@SpatialJ

This comment has been minimized.

Copy link

SpatialJ commented Apr 5, 2018

@orofarne

This comment has been minimized.

Copy link

orofarne commented Apr 15, 2018

PostGIS functionality is excellent!

@knz knz added the C-enhancement label Apr 28, 2018

@knz knz added this to Triage in SQL Front-end, Lang & Semantics via automation Apr 28, 2018

@knz knz moved this from Triage to Feature requests / nice-to-have in SQL Front-end, Lang & Semantics Apr 28, 2018

@lonesword

This comment has been minimized.

Copy link

lonesword commented May 16, 2018

Would love to see this in CRDB. Would make CRDB more appealing to small personal projects - get some geospatial data, put them in CRDB, run fancy queries (get me all users within 10km radius of this user) against it.

@gpiffault

This comment has been minimized.

Copy link

gpiffault commented Jun 1, 2018

One of my use cases is to find segments within a radius of a point (all in GPS coordinates). I think the most useful part would be efficiently finding geometries within a bounding box, everything else can be done relatively easily at the application level. Something along the lines of rbush for example.

@DeoLeung

This comment has been minimized.

Copy link

DeoLeung commented Jun 20, 2018

will be great to enable using postgis/pgrouting, the rest is up to people how to use the functions

@gsf

This comment has been minimized.

Copy link

gsf commented Dec 21, 2018

Most of our queries involve ST_Within to filter down to all points or geoms within a specified geom.

@darren1713

This comment has been minimized.

Copy link

darren1713 commented Feb 25, 2019

We are greatly interested in a database solution that scales out well (CRDB) and has geospatial support. We run queries that include: reverse geocoding, map tile generation, polygon/geofence search results, and analytics (combining geospatial data with other fields or cubes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.