[mapserver-users] How to avoid point from overlaying one another

Burgholzer,Robert rwburgholzer at deq.virginia.gov
Mon Jun 2 15:16:40 EDT 2008


Steve,
My $0.02 on this isn't really a mapserver specific solution, so it may be of limited interest to you.  I played around with a little PostGIS view/query to dynamically cluster points  of multiple individuals representing residents of a household.  What I came up with was a formula that essentially built them in a spiral around the centroid of the point.  Perhaps you might use a similar approach for a certain maxextent/minextent before you could be certain that a user was zoomed in enough to view all points successfully.

The description and a sample dataset is here:
http://soulswimmer.dynalias.net/gis/psql/visualize_demo.sql.txt 

Good luck,
r.b.


-----Original Message-----
From:	mapserver-users-bounces at lists.osgeo.org on behalf of Stephen Woodbridge
Sent:	Mon 6/2/2008 2:31 PM
To:	mapserver-users
Cc:	
Subject:	[mapserver-users] How to avoid point from overlaying one another

Hi all,

I have a point layer that is displaying points of interest (POI). Each 
POI has a classification that I use with a class expression to display a 
different icon image for the POI. I some cities there are so many POIs 
in a small spatial area that they all pile on top of one another and 
make a mess.

Is there anyway to do collision avoidance with the points?

I can change the layer TYPE to ANNOTATION which will thin them based on 
the ability to label them but it does not control whether they will be 
overlapped anyway, just assures that the symbol will only get drawn IF 
the label will fit.

Thoughts?
   -Steve W
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080602/4a4fa4cc/attachment.html


More information about the mapserver-users mailing list