diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-09-25 14:27:16 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-09-25 14:27:16 +0000 |
commit | 691aefcf4294c8262a8bf89258250470be1046a6 (patch) | |
tree | 2b2b2b0cb64f2ec803a5e9d3e6892a11a21a9709 | |
parent | 4852dd9d61bc1c3f609818d64d425fe4849fcb6f (diff) | |
download | postgresql-691aefcf4294c8262a8bf89258250470be1046a6.tar.gz postgresql-691aefcf4294c8262a8bf89258250470be1046a6.zip |
Shouldn't be here ...
-rw-r--r-- | contrib/earthdistance/earthdistance.out | 158 |
1 files changed, 0 insertions, 158 deletions
diff --git a/contrib/earthdistance/earthdistance.out b/contrib/earthdistance/earthdistance.out deleted file mode 100644 index 722299689e4..00000000000 --- a/contrib/earthdistance/earthdistance.out +++ /dev/null @@ -1,158 +0,0 @@ --- --- Test earth distance functions --- --- --- first, define the datatype. Turn off echoing so that expected file --- does not depend on contents of earthdistance.sql or cube.sql. --- -\set ECHO none --- --- Test getting the distance between two points using geo_distance. --- -select geo_distance('(0,0)'::point,'(0,0)'::point)::numeric(20,5); - geo_distance --------------- - 0.00000 -(1 row) - -select geo_distance('(0,0)'::point,'(180,0)'::point)::numeric(20,5); - geo_distance --------------- - 12436.77274 -(1 row) - -select geo_distance('(0,0)'::point,'(0,90)'::point)::numeric(20,5); - geo_distance --------------- - 6218.38637 -(1 row) - -select geo_distance('(0,0)'::point,'(90,0)'::point)::numeric(20,5); - geo_distance --------------- - 6218.38637 -(1 row) - -select geo_distance('(0,0)'::point,'(1,0)'::point)::numeric(20,5); - geo_distance --------------- - 69.09318 -(1 row) - -select geo_distance('(0,0)'::point,'(0,1)'::point)::numeric(20,5); - geo_distance --------------- - 69.09318 -(1 row) - -select geo_distance('(0,30)'::point,'(1,30)'::point)::numeric(20,5); - geo_distance --------------- - 59.83626 -(1 row) - -select geo_distance('(0,30)'::point,'(0,31)'::point)::numeric(20,5); - geo_distance --------------- - 69.09318 -(1 row) - -select geo_distance('(0,60)'::point,'(1,60)'::point)::numeric(20,5); - geo_distance --------------- - 34.54626 -(1 row) - -select geo_distance('(0,60)'::point,'(0,61)'::point)::numeric(20,5); - geo_distance --------------- - 69.09318 -(1 row) - -select geo_distance('(87.6,41.8)'::point,'(106.7,35.1)'::point)::numeric(20,5); - geo_distance --------------- - 1129.18983 -(1 row) - -select (geo_distance('(87.6,41.8)'::point,'(106.7,35.1)'::point)*5280.*12.*2.54/100.)::numeric(20,5); - numeric ---------------- - 1817254.87730 -(1 row) - --- --- Test getting the distance between two points using the <@> operator. --- -select ('(0,0)'::point <@> '(0,0)'::point)::numeric(20,5); - numeric ---------- - 0.00000 -(1 row) - -select ('(0,0)'::point <@> '(180,0)'::point)::numeric(20,5); - numeric -------------- - 12436.77274 -(1 row) - -select ('(0,0)'::point <@> '(0,90)'::point)::numeric(20,5); - numeric ------------- - 6218.38637 -(1 row) - -select ('(0,0)'::point <@> '(90,0)'::point)::numeric(20,5); - numeric ------------- - 6218.38637 -(1 row) - -select ('(0,0)'::point <@> '(1,0)'::point)::numeric(20,5); - numeric ----------- - 69.09318 -(1 row) - -select ('(0,0)'::point <@> '(0,1)'::point)::numeric(20,5); - numeric ----------- - 69.09318 -(1 row) - -select ('(0,30)'::point <@> '(1,30)'::point)::numeric(20,5); - numeric ----------- - 59.83626 -(1 row) - -select ('(0,30)'::point <@> '(0,31)'::point)::numeric(20,5); - numeric ----------- - 69.09318 -(1 row) - -select ('(0,60)'::point <@> '(1,60)'::point)::numeric(20,5); - numeric ----------- - 34.54626 -(1 row) - -select ('(0,60)'::point <@> '(0,61)'::point)::numeric(20,5); - numeric ----------- - 69.09318 -(1 row) - -select ('(87.6,41.8)'::point <@> '(106.7,35.1)'::point)::numeric(20,5); - numeric ------------- - 1129.18983 -(1 row) - -select (('(87.6,41.8)'::point <@> '(106.7,35.1)'::point)*5280.*12.*2.54/100.)::numeric(20,5); - numeric ---------------- - 1817254.87730 -(1 row) - |