Support for Geospatial Queries
Would be super useful for a lot of different types of spatial analysis.
Definitely, we can collaborate on this.
Note that there's a distance_in_meters function you can call to find the distance between two WGS-84 positions: https://github.com/mapd/mapd-core/blob/master/QueryEngine/ExtensionFunctions.hpp#L227. Example (taken from tests): SELECT DISTANCE_IN_METERS(-74.0059, 40.7217,-122.416667 , 37.783333) FROM test LIMIT 1;.
Yeah, I've dug through the docs on the website. Looking for stuff like ST_Contains for polygons and points.
But the link to the source code is quite handy for seeing how these functions are implemented.
contains should be easy by adding another function to compute barycentric coordinates w/ it for triangles and dot product for others etc.
I'd merge this issue with this one: https://github.com/mapd/mapd-core/issues/58
This should probably be closed with the 4.0 release, which now supports geo features, and ST_DISTANCE and ST_CONTAINS geoprocessing ops mentioned above. @m1mc, @billmaimone and @benjaminjs: are you finding what you need now? If not, perhaps open a new issue - MapD is looking for community contributions/priorities for its geo road map. ST_INTERSECTION, ST_AREA, etc. could make fun projects for interested geogeeks!
Yep, exactly what I was looking for!