有没有办法计算一个层收到了多少项目/几何图形?如果查询返回的项目太多,我想要做的是绘制一个不同的符号。例子:
MAXFEATURES 10001 #if I get 10001 results, please zoom in
CLUSTER
MAXDISTANCE 20
REGION "retangular"
END
LAYER
CLASS
EXPRESSION ([countPoints] > 10000)
STYLE
SYMBOL "to_many_points_please_zoom_in"
END
END
CLASS
EXPRESSION ([countPoints] < 10000 and [Cluster:FeatureCount] > 1)
STYLE
SYMBOL "cluster"
END
END
CLASS
EXPRESSION ([countPoints] < 10000 and [Cluster:FeatureCount] == 1)
STYLE
SYMBOL "point"
END
END
END
我尝试使用 [Cluster:FeatureCount] 但它无法计算整个层,它只计算几个集群中的点。