<div dir="ltr"><div><div>Hi</div><div><br></div><div>When combining Cluster and WMS dimension it seems like the Cluster is ignored.</div><div>This leeds to for instance that attribute "Cluster_FeatureCount" is missing so using it on SIZE and LABELS won't work and there is no clustering of objects.</div><div><br></div><div>Is Clustering supposed to work when using WMS Dimension?</div><div><br></div><div><br></div><div><br></div><div><br></div><div><b>Sample of mapfile etc:</b></div><div><br></div><div><ul><li>GetMap request with dimension filter: &dim_mainmissiontype=Brann <br></li><ul><li>gives non clustered map and if for instance Cluster_FeatureCount is used, an error is thrown</li></ul><li>The same GetMap request without dimension filter <br></li><ul><li>gives a image with clustered objects</li></ul></ul></div><div><br></div><div><br></div><div>Example mapfile:</div><div> LAYER</div><div> TYPE point</div><div> METADATA</div><div> "WMS_TITLE" "Fire rescue missions2"</div><div> "GML_INCLUDE_ITEMS" "oppdragid,mainmissiontype"</div><div> "WMS_INCLUDE_ITEMS" "oppdragid,mainmissiontype"</div><div> "WMS_MAINMISSIONTYPE_ITEM" "mainmissiontype"</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span> "WMS_MAINMISSIONTYPE_EXTENT" "Andre oppdrag,Brann,Brannhindrende tiltak,Ulykke"</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span> "WMS_MAINMISSIONTYPE_UNITS" ""</div><div> "WMS_MAINMISSIONTYPE_DEFAULT" ""</div><div> "WMS_DIMENSIONLIST" "mainmissiontype"</div><div> END</div><div> CONNECTION "user=xx password=xx dbname=xx host=localhost port=5433"</div><div> CONNECTIONTYPE postgis</div><div> DATA "wkb_geometry FROM (SELECT oppdragid, mainmissiontype, wkb_geometry FROM firerescuemissions) AS MYTABLE USING UNIQUE oppdragid USING SRID=4326"</div><div> EXTENT -9223372036.854776 0 31.118456919 9223372036.854776</div><div> NAME "layer_x"</div><div> PROCESSING "CLOSE_CONNECTION=DEFER"</div><div> PROCESSING "CLUSTER_GET_ALL_SHAPES=ON"</div><div> PROCESSING "ITEMS=oppdragid,mainmissiontype"</div><div> PROJECTION "init=epsg:4326" END</div><div> CLASS</div><div> NAME "class"</div><div> STYLE</div><div> ANGLE auto</div><div> COLOR 255 127 0</div><div> LINECAP round</div><div> LINEJOIN round</div><div> MAXSIZE 30</div><div> MINSIZE 10</div><div> OUTLINECOLOR 0 0 0</div><div> SIZE [Cluster_FeatureCount]</div><div> SYMBOL "circle"</div><div> WIDTH 1</div><div> END</div><div> END</div><div> CLUSTER</div><div> MAXDISTANCE 40</div><div> REGION "ellipse"</div><div> END</div><div> END </div><div><br></div><div><br></div><div>Example error message:</div><div><ul><li>Error using Mapserver 7.0.1 and 7.0.2: <br></li><ul><li>msDrawMap(): Image handling error. Failed to draw layer named 'layer_x'.msPostGISLayerWhichShapes(): Query error. Error executing query. Check server logs </li></ul><li>Error using Mapserver 6.4.0: <br></li><ul><li>msDrawMap(): Image handling error. Failed to draw layer named 'layer_x'.msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: column "Cluster:FeatureCount" does not exist<br>LINE 1: select "Cluster:FeatureCount",encode(ST_AsBinary(ST_Force_2D...</li></ul></ul></div><div> </div><div><br></div><div>Running Mapserver on Windows, using binary from <a href="http://gisinterals.com">gisinterals.com</a>.</div><div><br></div><div><br></div><div>Thanks</div><div><br></div><div>FrodeWJ</div><div><br></div><div><br></div></div><div><br></div><div><br></div><div><br></div><br>
</div>