<br><div class="gmail_quote">2011/5/5 Jeff McKenna <span dir="ltr">&lt;<a href="mailto:jmckenna@gatewaygeomatics.com">jmckenna@gatewaygeomatics.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hmm, yes I think this is related to a point I made to the mapserver-dev list when I initially tested the cluster object (see below).  I could only ever receive one result when querying a cluster object (I assumed all features inside the cluster object would be returned by a query). Hopefully this generates some discussion on the mapserver-dev list.<br>
<font color="#888888">
<br></font></blockquote><div><br>Hi Jeff,<br><br>The term &quot;all features inside the cluster object would be returned by a query&quot; would imply that the cluster provider should behave differently according to the query and the drawing operations. Currently there&#39;s no reliable mechanism to identify a purpose of a particular feature access so this cannot be implemented in this form. We have been talking about (with Steve) to use the query object of the map for this purpose, however it is not handled consistently throughout MapServer (for example in drawQuery) so it cannot be utilized here.<br>
<br>What I have already mentioned to workaround the problem, is to use an union layer (with cluster setting) to provide the drawing and use the source layer(s) to provide the query results, something like:<br><br>LAYER  # non queryable, might not be exposed in WMS<br>
    NAME &quot;cluster-layer&quot;<br>    CONNECTIONTYPE UNION<br>    CONNECTION &quot;source-layer&quot;<br>    STATUS default<br>    CLUSTER<br>        REGION &quot;ellipse&quot;<br>        MAXDISTANCE 40<br>    END<br>
    CLASS<br>        ....<br>    END<br>END<br><br>LAYER<br>    NAME &quot;source-layer&quot;<br>    TEMPLATE &quot;query&quot;  #queryable<br>    CONNECTIONTYPE OGR<br>    CONNECTION ...<br>    STATUS default<br>    CLASS<br>
        STATUS off  # do not draw this layer but expose in legend<br>        ...<br>    END<br>END<br><br><br>Best regards,<br><br>Tamas<br><br></div></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>