[postgis-users] Density calculation

Uli Mueller uli.mueller at gmx.ch
Sat May 10 00:59:31 PDT 2003


Hi

I am trying to calculate a density surface from points in a postgis
database. The result should be stored in a new table in PostGIS and should
display in MapServer. Any ideas about a fast way to do this in a
PostGIS/PHP/MapScript-environment?

I would prefer to do the whole calculation directly within SQL (for matters
of speed and reusability in different projects). I have been experimenting
with creating a temporary pivot table representing a matrix of all x- and
y-coordinates of my study area. Then I calculate the number of points within
a given radius from each matrix cell. Principally, this approach works, but
of course it tends to be very slow. I would appreciate to know about a
better solution.

Uli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Uli M?ller.vcf
Type: text/x-vcard
Size: 652 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20030510/de517d89/attachment.vcf>


More information about the postgis-users mailing list