diff --git a/Yavsc/contrib/install_earth.sql b/Yavsc/contrib/install_earth.sql new file mode 100644 index 00000000..0a5cb225 --- /dev/null +++ b/Yavsc/contrib/install_earth.sql @@ -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 \ No newline at end of file