[mapserver-commits] r11842 - in trunk/docs/en: mapfile mapscript/php
svn at osgeo.org
svn at osgeo.org
Mon Jun 20 15:17:16 EDT 2011
Author: jmckenna
Date: 2011-06-20 12:17:16 -0700 (Mon, 20 Jun 2011)
New Revision: 11842
Modified:
trunk/docs/en/mapfile/cluster.txt
trunk/docs/en/mapscript/php/index.txt
Log:
add php mapscript note to cluster object mapfile page
Modified: trunk/docs/en/mapfile/cluster.txt
===================================================================
--- trunk/docs/en/mapfile/cluster.txt 2011-06-20 19:10:44 UTC (rev 11841)
+++ trunk/docs/en/mapfile/cluster.txt 2011-06-20 19:17:16 UTC (rev 11842)
@@ -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: trunk/docs/en/mapscript/php/index.txt
===================================================================
--- trunk/docs/en/mapscript/php/index.txt 2011-06-20 19:10:44 UTC (rev 11841)
+++ trunk/docs/en/mapscript/php/index.txt 2011-06-20 19:17:16 UTC (rev 11842)
@@ -2549,6 +2549,8 @@
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