Re: R-tree, order by, limit

From: "Anton Belyaev" <anton(dot)belyaev(at)gmail(dot)com>
To: "Mark Cave-Ayland" <mark(dot)cave-ayland(at)siriusit(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: R-tree, order by, limit
Date: 2008-09-22 10:18:08
Message-ID: d7e834b0809220318v7c06cc6bq1e48de77525dfee@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2008/9/22 Mark Cave-Ayland <mark(dot)cave-ayland(at)siriusit(dot)co(dot)uk>:
>>> I am implementing a map application. There are towns with altitude,
>>> longitude and population.
>>> One of the tasks is to be able to query N biggest (by population)
>>> towns within a rectangle.
> Have you considered using PostGIS? (http://postgis.refractions.net). It
> implements the OGC SFS for geometries and is compatible with a large number
> of open source viewers/tools such as Mapserver, Geoserver, QGIS, OGR etc...

Mark, thanks for the suggestion.
I examined PostGIS some time ago. It is too complex for my simple task
and it gives no advantages for me:
For spatial indexing it uses the same GiST-based R-tree.
And PostGIS does not offer that "population" or "priority" queries I need.

Anton.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Volkan YAZICI 2008-09-22 10:30:01 Re: R-tree, order by, limit
Previous Message Anton Belyaev 2008-09-22 10:14:28 Re: R-tree, order by, limit