<div dir="ltr"><div>I solved the problem of CLUSTER removal with the following code :</div><div><br></div><div>$layer->updatefromstring("LAYER CLUSTER END END");</div><div><br></div><div>Here is an example of the operation :</div><div><br></div><div><a href="https://youtu.be/UtlvTWyoH2M">https://youtu.be/UtlvTWyoH2M</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-03 23:14 GMT-02:00 Moretti Edmar <span dir="ltr"><<a href="mailto:edmar.moretti@gmail.com" target="_blank">edmar.moretti@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I used your suggestion but did not work as expected.</div><div>I used PHP to create the cluster on a Layer. After creation, the mapfile contains the code:</div><div><br></div><div><div> CLUSTER</div><div> MAXDISTANCE 5</div><div> REGION "rectangle"</div><div> GROUP ('[TIPO]')</div><div> END # CLUSTER</div></div><div><br></div><div>After applying your sugestion, the mapfile looks like</div><div><br></div><div><div> CLUSTER</div><div> REGION ""</div><div> END # CLUSTER</div></div><div><br></div><div>but the Cluster still remains, now with the default values</div><div><br></div><div>My PHP to remove cluster:</div><div><br></div><div><div><span style="white-space:pre-wrap"> </span>$cluster->setFilter(NULL);</div><div><span style="white-space:pre-wrap"> </span>$cluster->setGroup(NULL);</div><div><span style="white-space:pre-wrap"> </span>$cluster->maxdistance = 10;</div><div><span style="white-space:pre-wrap"> </span>$cluster->region = NULL;</div></div><div><br></div><div>Any idea?</div><div><br></div><div>Thank you for your help.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-02-02 13:30 GMT-02:00 Tamas Szekeres <span dir="ltr"><<a href="mailto:szekerest@gmail.com" target="_blank">szekerest@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Looks like you need to set the following default parameters to prevent from writing to the mapfile:<div><br></div><div><div> cluster->maxdistance == 10 &&</div><div> cluster->buffer == 0.0 &&</div><div> cluster->region == NULL &&</div><div> cluster->group.string == NULL &&</div><div> cluster->filter.string == NULL</div></div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>2016-02-02 13:48 GMT+01:00 Moretti Edmar <span dir="ltr"><<a href="mailto:edmar.moretti@gmail.com" target="_blank">edmar.moretti@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div>How do I remove the CLUSTER definition of a mapfile using PHP-MapScript?</div><div>I try to use the code below, but without success</div></div><div><br></div><div>$cluster = $layer->cluster;</div><div>$cluster->updateFromString("GROUP END");</div><span><font color="#888888"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div><div>Para tirar dúvidas sobre o i3Geo utilize a lista: <a href="https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo" target="_blank">https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo</a></div><div><br></div><div>Edmar Moretti<br></div><a href="http://www.edmarmoretti.com.br" target="_blank">http://www.edmarmoretti.com.br</a><br></div>Skype: edmar.moretti<br></div>gTalk: edmar.moretti<br></div></div></div></div>
</font></span></div>
<br></div></div>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div><div>Para tirar dúvidas sobre o i3Geo utilize a lista: <a href="https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo" target="_blank">https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo</a></div><div><br></div><div>Edmar Moretti<br></div><a href="http://www.edmarmoretti.com.br" target="_blank">http://www.edmarmoretti.com.br</a><br></div>Skype: edmar.moretti<br></div>gTalk: edmar.moretti<br></div></div></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><div>Para tirar dúvidas sobre o i3Geo utilize a lista: <a href="https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo" target="_blank">https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo</a></div><div><br></div><div>Edmar Moretti<br></div><a href="http://www.edmarmoretti.com.br" target="_blank">http://www.edmarmoretti.com.br</a><br></div>Skype: edmar.moretti<br></div>gTalk: edmar.moretti<br></div></div></div></div>
</div>