Supporting Geospatial Operations
Hello,
Currently, MapD does not support a variety of geo-spatial operations such as spatial kNN queries, spatial join queries, etc. Since, these queries are compute intensive, GPUs will be tremendously beneficial for boosting their performance. I (as a part of my PhD work), am working towards adding this functionality in MapD-core and planning to release it to the community. I am currently understanding the code.
Here's a post from mapd-core forum where I has posted my queries related to code docs. I am creating an issue (as suggested by @aaron_mapd) here to get more help. I am willing to work with the dev team to better understand the existing code of MapD-core, designing my solution, and releasing it. Any help in this regard will be greatly appreciated!
Thanks, Harshada
Hi Harshada,
Welcome to the MapD community!
In case you missed it, we do have some geospatial features in the works: https://github.com/mapd/mapd-core/blob/master/ROADMAP.md#gis Hopefully you'll be able to build upon this functionality, once it lands.
Spatial kNN in particular could be implemented through sorting by ST_Distance() to the neighbors, in ascending order, and then taking the top K to get just the nearest ones.
It would be great if you could share technical details on all the queries you'd like MapD to support. Maybe a technical specification, use cases, etc? If you start developing, please share your design first, let's coordinate our efforts to avoid duplication. And of course let us know if you need any assistance.
Regards, Dmitri
Hi Dmitri,
Thanks for the help. I will share my plan with the team.
Could you please let me know which files contain the implementation for the existing geospatial operators such as ST_Distance?
Thanks, -Harshada
Hi Harshada,
This is work in progress, I will point you to the changes once they land in mapd-core.
Thanks, Dmitri
Do you have any kind of spatial indexing like R-tree or KD-tree in MapD ?
Currently we don't have many indexing data-structures specially not R-tree or KD-trees. If you feel you can contribute to the project we would love to support your efforts.
Hi, I have two tables, a shapefile and a table of records with lat, lon and other information. Is it possible to do a spatial join such that for each point I know into which polygon it falls into? Also, what's the status of this, plans to release them soon? Thanks!
Closing this; MapD does now support selected geospatial operations. As we develop our roadmap, we'll consider adding these types of spatial queries