install a basic earth distance computing
as an Npgsql extension
This commit is contained in:
parent
0cafb95304
commit
4475dca3fa
1 changed files with 6 additions and 0 deletions
6
Yavsc/contrib/install_earth.sql
Normal file
6
Yavsc/contrib/install_earth.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
SELECT version();
|
||||
CREATE EXTENSION "cube"; -- you will not be able install "earthdistance" w/o "cube" extension
|
||||
CREATE EXTENSION "earthdistance"; --or any other extension you need
|
||||
create extension earthdistance;
|
||||
select earth();
|
||||
select earth_distance(ll_to_earth(12.4,2.0),ll_to_earth(12.456,2.8043)); -- 87km
|
||||
Loading…
Add table
Add a link
Reference in a new issue