<br><div class="gmail_quote">2011/2/11 Stephen Woodbridge <span dir="ltr">&lt;<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div>This is more an abstract use case where separating the combining from the clustering might be useful.<br></div>
<br>
Today, you can combine multiple files using a tileindex, but only if they have the same attributes, and description. In theory, it might be nice to be able to have multiple source layers that have similar attributes and to be able to combine them into a single layer using some compatible subset of the source column attributes so that the combined layer could be treated as a single layer with the benefits of LABEL MINDISTANCE nnn, or querying it to get a single closest object, etc.<br>

<br></blockquote><div><br>Hi Steve,<br><br>I didn&#39;t understand exactly what Frank meant by combining and clustering should be different. Assuming you are talking about the same thing it looks like it is caused by a terminology confusion as we interpret the term &#39;combining&#39; differently. In my variant &#39;combining&#39; and &#39;clustering&#39; are just the same: creating a single aggregated feature from multiple neighbouring features.<br>
<br>Getting back to the use case you described it could also be implemented, but it may require to do some adjustments in the proposed implementation:<br><br>1. We would expect that the features are served from the union layer and not from the source layers (the source layers should be hidden in effect).<br>
2. The ITEMS processing option should be set (probably at the union layer) to specify the set of the attributes we intend to use.<br>3. In the union layer we should maintain some state in layerinfo to track which layer is actually used to provide the features (in NextShape)<br>
4. We should also provide the identification of the features (probably the tileindex would be sufficient to store the layer index?)<br><br>There may be some problems if we would like to use the same symbology for the features on the union layer and the source layers. We might probably support STYLEITEM AUTO on the  union layer which could be impemented by retieving the the corresponding class from the source layer. <br>
<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
So I think the idea of building modular filters and being about to chain them together might have some value. On the other hand, there maybe be some significant value in performance to combining and clustering in a single step, but you probably have a better idea based on how things are structured.<br>

<br></blockquote><div><br>Isolating these options would not necessarily impact the performance and we iterate the features in a similar way for both cases. In this case we would probably set at least 3 layers chaining together to carry out the functionality we are targeting. But the option of chaining modular filters together reminds me to the discussions around RFC-22 which could not get noticeable support since it doesn&#39;t fit well in the concept of &#39;MapServer is not a
full-featured GIS system, nor does it aspire to be.&#39; The implementation should probably be &#39;simple&#39; from the aspect of the user as well as the developer. (I&#39;m on the developer&#39;s side in most cases.)<br>
<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Regarding the whole RFC, I find it impressive and probably a little intimidating also. My first concern would be that I hope this does not impact performance in any significant way for people that are not using it. Beyond that, it seems well thought out, but there is a lot there and I think I need to read it again when my eyes are not glazing over :) I&#39;ll try to reread it in the morning.<br>

<br></blockquote><div><br>I&#39;m not sure what you guys mean by &#39;intimidating&#39; here? Is this related to the functionality itself? Or the proposed implementation? Most of the functionality would be encapsulated in a separate layer data provider which could infact be a plugin not requiring to incorporate that in the MapServer codebase at all. The only noticeable thing we would add is the changes in the vtable creation but it could eventually be ommitted if we implement this &#39;union&#39; layer separately. I&#39;ll do some investigation in this regard. <br>
<br> <br></div></div>Best regards,<br><br>Tamas<br><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>