[mapserver-commits] r11841 - in branches/branch-6-0/docs/en: mapfile mapscript/php

svn at osgeo.org svn at osgeo.org
Mon Jun 20 15:10:44 EDT 2011


Author: jmckenna
Date: 2011-06-20 12:10:44 -0700 (Mon, 20 Jun 2011)
New Revision: 11841

Modified:
   branches/branch-6-0/docs/en/mapfile/cluster.txt
   branches/branch-6-0/docs/en/mapscript/php/index.txt
Log:
add php mapscript note to cluster object mapfile page

Modified: branches/branch-6-0/docs/en/mapfile/cluster.txt
===================================================================
--- branches/branch-6-0/docs/en/mapfile/cluster.txt	2011-06-20 12:08:09 UTC (rev 11840)
+++ branches/branch-6-0/docs/en/mapfile/cluster.txt	2011-06-20 19:10:44 UTC (rev 11841)
@@ -6,6 +6,10 @@
 
 .. index:: Cluster
 
+.. contents:: Table of Contents
+    :depth: 2
+    :backlinks: top
+
 Description
 ===========
 
@@ -85,6 +89,17 @@
 layer attributes, then the actual value of the cluster attribute will be non-deterministic if the cluster contains
 multiple shapes with different values. The Count aggregate function in fact provides the same value as Cluster:FeatureCount.
 
+PHP MapScript Usage
+===================
+
+The :ref:`CLUSTER object <phpclusterobj>`  is exposed through PHP MapScript.  An example follows:
+
+.. code-block:: php
+
+  $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");
+  $layer1=$map->getLayerByName("test1");
+  $layer1->cluster; 
+
 Example: Clustering Railway Stations
 ====================================
 

Modified: branches/branch-6-0/docs/en/mapscript/php/index.txt
===================================================================
--- branches/branch-6-0/docs/en/mapscript/php/index.txt	2011-06-20 12:08:09 UTC (rev 11840)
+++ branches/branch-6-0/docs/en/mapscript/php/index.txt	2011-06-20 19:10:44 UTC (rev 11841)
@@ -2548,6 +2548,8 @@
 void free()
     Free the object properties and break the internal references. 
     Note that you have to unset the php variable to free totally the resources.
+    
+.. _phpclusterobj:
 
 clusterObj
 ^^^^^^^^^^^^



More information about the mapserver-commits mailing list