The attached patches change earthdistance to use the new cube functions
authorBruce Momjian <bruce@momjian.us>
Thu, 13 Feb 2003 05:31:06 +0000 (05:31 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 13 Feb 2003 05:31:06 +0000 (05:31 +0000)
commit9ccaaf676ff17f1102542adb1ff05e3a9c873712
tree08eee9d504a4ef64fba2d22eb178c62b4c3a6e96
parent80b3513d5700945447815e80a661c719d3e8f044
The attached patches change earthdistance to use the new cube functions
in one of the earth functions so that latitude and longitude to
cartesian coordinates conversion will be more accurrate. (Previously
a text string was built to provide as input which limited the accuracy
to the number of digits printed.)

The new functions were included in a recent patch to contrib/cube that has not
as yet been accepted as of yet.

I also added check constraints to the domain 'earth' since they are now
working in 7.4.

Bruno Wolff III
contrib/earthdistance/README.earthdistance
contrib/earthdistance/earthdistance.sql.in