[mapguide-users] Re: sum of a field on selected items

Jackie Ng jumpinjackie at gmail.com
Mon Mar 28 07:49:49 EDT 2011

A high-level overview:

In a PHP script, create a MgSelection from your MgMap.

Call GetLayers on the MgSelection

For each MgLayer in this result, if the layer's name matches the one you're
interested in (Agencies), call GetSelectedFeatures on MgSelection using this

Loop through the MgFeatureReader returned by this method, get the value of
the population property and accumulate it to a running total.

- Jackie

View this message in context: http://osgeo-org.1803224.n2.nabble.com/sum-of-a-field-on-selected-items-tp6214193p6214581.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

More information about the mapguide-users mailing list