[mapserver-users] PHP-Mapscript - clusterObj ?
Chris Green
chris.green at ibstv.co.uk
Mon Jun 20 00:21:52 PDT 2011
Hi list
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:
$map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");
$layer1=$map->getLayerByName("test1");
..
..
..
$image=$map->draw();
$image_url=$image->saveWebImage();
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?
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110620/3b49f855/attachment.htm>
More information about the MapServer-users
mailing list