Geographic Information Systems Asked by Daenzer G. on August 16, 2021
I’m new with MapServer and I tried to use as cluster.
When I click on the map to see info about my points, nothing pop up. I can see info about different layers but not for the one with the cluster.
Layer with the cluster:
LAYER
NAME "eqp_point_collecte"
GROUP "eqp_dechet"
TYPE POINT
TEMPLATE "ttt"
CONNECTIONTYPE postgis
PROCESSING "CLOSE_CONNECTION=DEFER"
CONNECTION "user=${PGUSER} password=${PGPASSWORD} dbname=${PGDATABASE} host=${PGHOST} port=${PGPORT}"
DATA "geom FROM (select * from ${PGSCHEMA_GEODATA}.eqp_point_collecte) as foo USING UNIQUE gid USING srid=2056"
METADATA
"wfs_title" "eqp_point_collecte" ##REQUIRED
"wfs_srs" "EPSG:2056" ## REQUIRED
"wfs_enable_request" "*"
"wfs_include_items" "all"
"wms_title" "eqp_point_collecte" ##REQUIRED
"wms_srs" "EPSG:2056" ## REQUIRED
"wms_enable_request" "*"
"wms_include_items" "all"
"gml_include_items" "all"
"ows_enable_request" "*"
"ows_geom_type" "point" # For returning geometries in GetFeatureInfo
"ows_geometries" "geom" # For returning geometries in GetFeatureInfo
"ows_title" "eqp_point_collecte"
"gml_types" "auto"
"gml_featureid" "gid" ## REQUIRED
"gml_geometries" "geom"
"gml_geom_type" "point"
END
DUMP TRUE # For GetFeatureInfo
STATUS ON
PROJECTION
"init=epsg:2056"
END
CLASSITEM "Cluster_FeatureCount"
EXTENT 2470000 1110000 2840000 1200000
#SYMBOLSCALE 500
MAXSCALEDENOM 25000
###########################
# Define the cluster object
###########################
PROCESSING "CLUSTER_GET_ALL_SHAPES=ON"
PROCESSING "ITEMS=gid"
CLUSTER
MAXDISTANCE 30
##########################################################
### TIPS : MAXDISTANCE > SIZE du symbole évite les bugs###
##########################################################
REGION "ellipse"
END
################################
# Class1: For the cluster symbol
################################
CLASS
NAME "Déchetterie"
EXPRESSION ("[Cluster_FeatureCount]" != "1" AND '[type_collecte]' = 'déchetterie')
STYLE
SIZE 20
SYMBOL "déchetterie"
COLOR 255 0 0
END
END
CLASS
NAME "Eco-point"
EXPRESSION ("[Cluster_FeatureCount]" != "1" AND '[type_collecte]' = 'écopoint')
STYLE
SIZE 20
SYMBOL "éco point"
COLOR 255 0 0
END
END
################################
# Classes: For single stations
################################
CLASS
NAME "PET"
EXPRESSION ('[type_dechet]' = 'PET')
STYLE
SYMBOL "PET"
SIZE 20
OUTLINEWIDTH 0.05
OUTLINECOLOR 240 175 55
COLOR 255 255 255
END
END
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP