[mapserver-users] MspServer Cluster Problem.
LewInMadrid
LCLARK at GENASYS.COM
Thu Jan 9 06:36:40 PST 2014
I'm trying to cluster a few thousand points but as I zoom out points
disappear until I have an almost empty map instead of a few cluster symbols
with big numbers.
I'm using MapServer v6.0.2
Here's an example with 2 different zoom levels.
<http://osgeo-org.1560.x6.nabble.com/file/n5097138/map_zoom_in.png>
<http://osgeo-org.1560.x6.nabble.com/file/n5097138/map_zoom_out.png>
LAYER
NAME "my_point_layer"
STATUS ON
CONNECTIONTYPE POSTGIS
CONNECTION "host=127.0.0.1 port=5432 dbname=rasterdb user=postgres
password=postgres"
DATA "g_point FROM my_point_table USING UNIQUE gid USING SRID=900913"
TYPE POINT
PROJECTION
"init=epsg:900913"
END
CLUSTER
MAXDISTANCE 30 # in pixels
REGION "rectangle" # can be rectangle or ellipse
END
LABELITEM "Cluster:FeatureCount"
CLASSITEM "status"
CLASS
NAME "D"
EXPRESSION "D"
STYLE
SYMBOL "circle"
ANTIALIAS TRUE
SIZE 8
OUTLINECOLOR 0 0 0
END
END
CLASS
NAME "E"
EXPRESSION "E"
# TEXT "[idelem]"
STYLE
SYMBOL "circle"
ANTIALIAS TRUE
SIZE 25
COLOR 0 255 0
OUTLINECOLOR 0 0 0
END
LABEL
FONT vera_sans-bold-italic
TYPE TRUETYPE
SIZE 8
COLOR 0 0 0
OUTLINECOLOR 255 255 255
ALIGN CENTER
PRIORITY 9
POSITION cc
END
END
END
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/MspServer-Cluster-Problem-tp5097138.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list