I used your suggestion but did not work as expected.
I used PHP to create the cluster on a Layer. After creation, the mapfile
contains the code:
CLUSTER
MAXDISTANCE 5
REGION "rectangle"
GROUP ('[TIPO]')
END # CLUSTER
After applying your sugestion, the mapfile looks like
CLUSTER
REGION ""
END # CLUSTER
but the Cluster still remains, now with the default values
My PHP to remove cluster:
$cluster->setFilter(NULL);
$cluster->setGroup(NULL);
$cluster->maxdistance = 10;
$cluster->region = NULL;
Any idea?
Thank you for your help.
2016-02-02 13:30 GMT-02:00 Tamas Szekeres <[email protected]>:
> Looks like you need to set the following default parameters to prevent
> from writing to the mapfile:
>
> cluster->maxdistance == 10 &&
> cluster->buffer == 0.0 &&
> cluster->region == NULL &&
> cluster->group.string == NULL &&
> cluster->filter.string == NULL
>
> Best regards,
>
> Tamas
>
>
>
> 2016-02-02 13:48 GMT+01:00 Moretti Edmar <[email protected]>:
>
>> How do I remove the CLUSTER definition of a mapfile using PHP-MapScript?
>> I try to use the code below, but without success
>>
>> $cluster = $layer->cluster;
>> $cluster->updateFromString("GROUP END");
>>
>> --
>> Para tirar dúvidas sobre o i3Geo utilize a lista:
>> https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo
>>
>> Edmar Moretti
>> http://www.edmarmoretti.com.br
>> Skype: edmar.moretti
>> gTalk: edmar.moretti
>>
>> _______________________________________________
>> mapserver-users mailing list
>> [email protected]
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
--
Para tirar dúvidas sobre o i3Geo utilize a lista:
https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo
Edmar Moretti
http://www.edmarmoretti.com.br
Skype: edmar.moretti
gTalk: edmar.moretti
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users