Chris,<br><br>clusterObj should not be constructed from scratch, it is an existing member of layerObj. Not sure how is that working in PHP, however.<br><br><br>Best regards,<br><br>Tamas<br><br><br><br><br><div class="gmail_quote">
2011/6/20 Chris Green <span dir="ltr">&lt;<a href="mailto:chris.green@ibstv.co.uk">chris.green@ibstv.co.uk</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div link="blue" vlink="purple" lang="EN-GB"><div><p class="MsoNormal">Hi list<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am running Mapserver 6.0 under Ubuntu 10.04 with PHP-Mapscript and I have been trying to get clustering to work with Mapscript. Actually it works fine when using a mapfile very similar to the ‘Clustering Railway Stations’ example given in the 6.0 documentation if I use the mapfile to generate a WMS layer without Mapscript. However using the same mapfile I can’t get the clustered output to appear with Mapscript when I try the usual construction along the lines of:<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none">$map = ms_newMapobj(&quot;/var/www/vhosts/mysite/httpdocs/test.map&quot;);<u></u><u></u></p><p class="MsoNormal" style="text-autospace:none">
$layer1=$map-&gt;getLayerByName(&quot;test1&quot;);<u></u><u></u></p><p class="MsoNormal" style="text-autospace:none">..<u></u><u></u></p><p class="MsoNormal" style="text-autospace:none">..<u></u><u></u></p><p class="MsoNormal" style="text-autospace:none">
..<u></u><u></u></p><p class="MsoNormal" style="text-autospace:none">$image=$map-&gt;draw();<u></u><u></u></p><p class="MsoNormal" style="text-autospace:none">$image_url=$image-&gt;saveWebImage();<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">This structure works on a non-clustered layer in the same mapfile. I can see in the documentation for MS RFC 69 that the idea is to use a new Mapscript object called clusterObj, but I can’t find any information on how to construct a clusterObj and several hours of trial and error yesterday didn’t get me very far. Can someone tell me how I should set up and use clusterObj?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Chris  <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>