PostgreSQL extension for SIGUANET databases providing functions which return aggregate data based on spatial criteria