alan-turing-institute / solar-panel-detection

Solar Panel Detection (Turing Climate Action Call)
23 stars 7 forks source link

Match REPD and OSM on location #7

Closed edwardchalstrey1 closed 4 years ago

edwardchalstrey1 commented 4 years ago

Postgres or can/should it be done there? Postgis (also for computing distances between 2 points).

edwardchalstrey1 commented 4 years ago

I think, somehow make a point from the lat/lon of each table entry: https://postgis.net/docs/ST_MakePoint.html, then calculate the minimum distance using: https://postgis.net/docs/ST_DistanceSphere.html

This might be how: https://postgis.net/workshops/postgis-intro/knn.html