[MapServer-users] cluster points

Seth G sethg at geographika.co.uk
Tue Jun 25 07:07:07 PDT 2024


Hi Jörg,

This sounds like the same issue as https://lists.osgeo.org/pipermail/mapserver-users/2024-June/083491.html and https://github.com/MapServer/MapServer/issues/7070
A workaround for now is to manually add an EXTENT to the layer.

Seth

--
web:https://geographika.net & https://mapserverstudio.net
twitter: @geographika

On Tue, Jun 25, 2024, at 3:53 PM, Jörg Thomsen (WhereGroup) via MapServer-users wrote:
> Dear list,
>
> I have a problem with clustering of some points (layer at the end of 
> this mail).
>
> As soon as I insert the block
> CLUSTER
>     MAXDISTANCE 50
>     REGION 'ellipse'
> END
>
> the capabilities-document [1] of the wms ends abrupt with
>>     <sld:GetLegendGraphic>
>>       <Format>image/png</Format>
>>       <Format>im
>
> so I cannot load it to a client.
> getmap/browse-mode [2] works fine.
>
> I don't see the reason, does anyone else do and can tell me?
>
> [1]
> view-source:https://schulung.foss.academy/cgi-bin/mapserv?map=/foss-academy/MSII/cluster_loesung.map&SERVICE=WMS&REQUEST=GetCapabilities
>
> [2]
> https://schulung.foss.academy/cgi-bin/mapserv?map=/foss-academy/MSII/cluster_loesung.map&mode=browse&layer=all&template=OpenLayers
>
> Regards, Jörg
>
>
>
>
>    LAYER
>      NAME 'bushaltestellen'
>      TYPE POINT
>
> 	CONNECTIONTYPE postgis
> 	CONNECTION "user= password= dbname= host=127.0.0.1 port=5432"
> 	DATA "geom from transport_p"
>
>      METADATA
>        'ows_title' 'Bushaltestelen mit Clustering'
>      END
>
>
>      PROJECTION
>       'init=epsg:4326'
>      END
>
>      LABELITEM 'Cluster_FeatureCount'
>      CLASSITEM 'Cluster_FeatureCount'
>
> 	CLUSTER
> 		MAXDISTANCE 50
> 		REGION 'ellipse'
> 	END
>
>      CLASS
>         NAME 'einzeln'
>         EXPRESSION ("[Cluster_FeatureCount]" = "1")
>         STYLE
>            SIZE 10
>            SYMBOL "circle"
>            COLOR 150 150 150
>         END
>      END
>
>      CLASS
>         NAME 'cluster'
>         EXPRESSION ("[Cluster_FeatureCount]" != "1")
>         STYLE
>            SIZE 20
>            SYMBOL "circle"
>            COLOR 0 0 255
>         END
>         LABEL
> 			FONT 'arial'
> 			COLOR 255 255 255
> 			TYPE truetype
> 			SIZE 9
>         END
>      END
>
>     END
>
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list