|
|
@ -743,7 +743,7 @@ SELECT cube_ll_coord(earth_box(ll_to_earth(0,0),10*earth()),1)::numeric(20,5), |
|
|
|
-- Test for points that should be in bounding boxes. |
|
|
|
-- Test for points that should be in bounding boxes. |
|
|
|
-- |
|
|
|
-- |
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,1))*1.00001) @ |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,1))*1.00001) @> |
|
|
|
ll_to_earth(0,1); |
|
|
|
ll_to_earth(0,1); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
@ -751,7 +751,7 @@ SELECT earth_box(ll_to_earth(0,0), |
|
|
|
(1 row) |
|
|
|
(1 row) |
|
|
|
|
|
|
|
|
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.1))*1.00001) @ |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.1))*1.00001) @> |
|
|
|
ll_to_earth(0,0.1); |
|
|
|
ll_to_earth(0,0.1); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
@ -759,7 +759,7 @@ SELECT earth_box(ll_to_earth(0,0), |
|
|
|
(1 row) |
|
|
|
(1 row) |
|
|
|
|
|
|
|
|
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.01))*1.00001) @ |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.01))*1.00001) @> |
|
|
|
ll_to_earth(0,0.01); |
|
|
|
ll_to_earth(0,0.01); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
@ -767,7 +767,7 @@ SELECT earth_box(ll_to_earth(0,0), |
|
|
|
(1 row) |
|
|
|
(1 row) |
|
|
|
|
|
|
|
|
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.001))*1.00001) @ |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.001))*1.00001) @> |
|
|
|
ll_to_earth(0,0.001); |
|
|
|
ll_to_earth(0,0.001); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
@ -775,7 +775,7 @@ SELECT earth_box(ll_to_earth(0,0), |
|
|
|
(1 row) |
|
|
|
(1 row) |
|
|
|
|
|
|
|
|
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.0001))*1.00001) @ |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.0001))*1.00001) @> |
|
|
|
ll_to_earth(0,0.0001); |
|
|
|
ll_to_earth(0,0.0001); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
@ -783,7 +783,7 @@ SELECT earth_box(ll_to_earth(0,0), |
|
|
|
(1 row) |
|
|
|
(1 row) |
|
|
|
|
|
|
|
|
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0.0001,0.0001))*1.00001) @ |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0.0001,0.0001))*1.00001) @> |
|
|
|
ll_to_earth(0.0001,0.0001); |
|
|
|
ll_to_earth(0.0001,0.0001); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
@ -791,7 +791,7 @@ SELECT earth_box(ll_to_earth(0,0), |
|
|
|
(1 row) |
|
|
|
(1 row) |
|
|
|
|
|
|
|
|
|
|
|
SELECT earth_box(ll_to_earth(45,45), |
|
|
|
SELECT earth_box(ll_to_earth(45,45), |
|
|
|
earth_distance(ll_to_earth(45,45),ll_to_earth(45.0001,45.0001))*1.00001) @ |
|
|
|
earth_distance(ll_to_earth(45,45),ll_to_earth(45.0001,45.0001))*1.00001) @> |
|
|
|
ll_to_earth(45.0001,45.0001); |
|
|
|
ll_to_earth(45.0001,45.0001); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
@ -799,7 +799,7 @@ SELECT earth_box(ll_to_earth(45,45), |
|
|
|
(1 row) |
|
|
|
(1 row) |
|
|
|
|
|
|
|
|
|
|
|
SELECT earth_box(ll_to_earth(90,180), |
|
|
|
SELECT earth_box(ll_to_earth(90,180), |
|
|
|
earth_distance(ll_to_earth(90,180),ll_to_earth(90.0001,180.0001))*1.00001) @ |
|
|
|
earth_distance(ll_to_earth(90,180),ll_to_earth(90.0001,180.0001))*1.00001) @> |
|
|
|
ll_to_earth(90.0001,180.0001); |
|
|
|
ll_to_earth(90.0001,180.0001); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
@ -812,7 +812,7 @@ SELECT earth_box(ll_to_earth(90,180), |
|
|
|
-- but further away than the distance we are testing. |
|
|
|
-- but further away than the distance we are testing. |
|
|
|
-- |
|
|
|
-- |
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,1))*.57735) @ |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,1))*.57735) @> |
|
|
|
ll_to_earth(0,1); |
|
|
|
ll_to_earth(0,1); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
@ -820,7 +820,7 @@ SELECT earth_box(ll_to_earth(0,0), |
|
|
|
(1 row) |
|
|
|
(1 row) |
|
|
|
|
|
|
|
|
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.1))*.57735) @ |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.1))*.57735) @> |
|
|
|
ll_to_earth(0,0.1); |
|
|
|
ll_to_earth(0,0.1); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
@ -828,7 +828,7 @@ SELECT earth_box(ll_to_earth(0,0), |
|
|
|
(1 row) |
|
|
|
(1 row) |
|
|
|
|
|
|
|
|
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.01))*.57735) @ |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.01))*.57735) @> |
|
|
|
ll_to_earth(0,0.01); |
|
|
|
ll_to_earth(0,0.01); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
@ -836,7 +836,7 @@ SELECT earth_box(ll_to_earth(0,0), |
|
|
|
(1 row) |
|
|
|
(1 row) |
|
|
|
|
|
|
|
|
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.001))*.57735) @ |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.001))*.57735) @> |
|
|
|
ll_to_earth(0,0.001); |
|
|
|
ll_to_earth(0,0.001); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
@ -844,7 +844,7 @@ SELECT earth_box(ll_to_earth(0,0), |
|
|
|
(1 row) |
|
|
|
(1 row) |
|
|
|
|
|
|
|
|
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.0001))*.57735) @ |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0,0.0001))*.57735) @> |
|
|
|
ll_to_earth(0,0.0001); |
|
|
|
ll_to_earth(0,0.0001); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
@ -852,7 +852,7 @@ SELECT earth_box(ll_to_earth(0,0), |
|
|
|
(1 row) |
|
|
|
(1 row) |
|
|
|
|
|
|
|
|
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
SELECT earth_box(ll_to_earth(0,0), |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0.0001,0.0001))*.57735) @ |
|
|
|
earth_distance(ll_to_earth(0,0),ll_to_earth(0.0001,0.0001))*.57735) @> |
|
|
|
ll_to_earth(0.0001,0.0001); |
|
|
|
ll_to_earth(0.0001,0.0001); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
@ -860,7 +860,7 @@ SELECT earth_box(ll_to_earth(0,0), |
|
|
|
(1 row) |
|
|
|
(1 row) |
|
|
|
|
|
|
|
|
|
|
|
SELECT earth_box(ll_to_earth(45,45), |
|
|
|
SELECT earth_box(ll_to_earth(45,45), |
|
|
|
earth_distance(ll_to_earth(45,45),ll_to_earth(45.0001,45.0001))*.57735) @ |
|
|
|
earth_distance(ll_to_earth(45,45),ll_to_earth(45.0001,45.0001))*.57735) @> |
|
|
|
ll_to_earth(45.0001,45.0001); |
|
|
|
ll_to_earth(45.0001,45.0001); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
@ -868,7 +868,7 @@ SELECT earth_box(ll_to_earth(45,45), |
|
|
|
(1 row) |
|
|
|
(1 row) |
|
|
|
|
|
|
|
|
|
|
|
SELECT earth_box(ll_to_earth(90,180), |
|
|
|
SELECT earth_box(ll_to_earth(90,180), |
|
|
|
earth_distance(ll_to_earth(90,180),ll_to_earth(90.0001,180.0001))*.57735) @ |
|
|
|
earth_distance(ll_to_earth(90,180),ll_to_earth(90.0001,180.0001))*.57735) @> |
|
|
|
ll_to_earth(90.0001,180.0001); |
|
|
|
ll_to_earth(90.0001,180.0001); |
|
|
|
?column? |
|
|
|
?column? |
|
|
|
---------- |
|
|
|
---------- |
|
|
|