PostgreSQL extension for spatial indexing on a sphere
// readme
Q3C
Author: Sergey Koposov, University of Edinburgh
Copyright (c) 2004-2026 Sergey Koposov
Email: skoposov AT ed DOT ac DOT uk
Fresh versions of the software could be obtained here: https://github.com/segasai/q3c
To read more about the Q3C indexing, you can check out the paper published in ADASS conference proceedings http://adsabs.harvard.edu/abs/2006ASPC..351..735K The citation is βKoposov, S., & Bartunov, O. 2006, Astronomical Society of the Pacific Conference Series, 351, 735β. Q3C is also registered in the ASCL library https://ascl.net/1905.008 . If you use Q3C, you are kindly asked to cite the 2006 paper. I am also always happy to hear about any usage of Q3C.
Prerequisites
In order to use Q3C you need to have a PostgreSQL database installed (version 9.1 or later). If you have PostgreSQL version lower than 9.1, you will need to use an older version of Q3C (1.4.x).
To successfully compile Q3C you must have pg_config in your PATH (that means that you may need to install the -devel versions of PostgreSQL packages)
Installation
- make
- make install
- Execute βCREATE EXTENSION q3cβ in the PostgreSQL client(psql) for the database where you plan to use q3cβ¦