Pgsphere is a project mainly written in C and PERL, based on the BSD-3-Clause license.
pgsphere provides spherical data types, functions, and operators for PostgreSQL
This is R-Tree implementation using GiST for spherical objects like spherical points and spherical circles with useful functions and operators.
NOTICE: This version will works only with postgresql version 8.0 and above.
INSTALLATION:
gmake
gmake install
-- load functions
psql
REGRESSION TEST:
gmake installcheck
LONG REGRESSION TEST:
gmake crushtest
For more informations have a look at http://pgsphere.projects.postgresql.org/
Have a lot of fun!