GithubHelp home page GithubHelp logo

Support for Geospatial Queries about heavydb HOT 7 CLOSED

heavyai avatar heavyai commented on July 20, 2024
Support for Geospatial Queries

from heavydb.

Comments (7)

billmaimone avatar billmaimone commented on July 20, 2024

Definitely, we can collaborate on this.

from heavydb.

asuhan avatar asuhan commented on July 20, 2024

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;.

from heavydb.

benjaminjs avatar benjaminjs commented on July 20, 2024

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.

from heavydb.

m1mc avatar m1mc commented on July 20, 2024

contains should be easy by adding another function to compute barycentric coordinates w/ it for triangles and dot product for others etc.

from heavydb.

dfernan avatar dfernan commented on July 20, 2024

I'd merge this issue with this one: #58

from heavydb.

mflaxman10 avatar mflaxman10 commented on July 20, 2024

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!

from heavydb.

benjaminjs avatar benjaminjs commented on July 20, 2024

Yep, exactly what I was looking for!

from heavydb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.