Commit 8c50c9a
tabish
NodeDistance is now using the great circle distance using postgres packages cube and earthdistance;
create extension cube; create extension earthdistance;
CREATE VIEW site_distances AS SELECT x.site as "site1", x.id as "site1id", y.site as "site2", y.id as "site2id", point(x.longitude, x.latitude) <@> point(y.longitude, y.latitude) AS "distance" FROM vivo_aggregated.site_location AS x, vivo_aggregated.site_location AS y;1 parent 2469cc9 commit 8c50c9a
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments