[mapguide-commits] r5585 -
trunk/MgDev/Doc/samples/phpsamples/analyzing_features
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Mar 3 09:26:24 EST 2011
Author: jng
Date: 2011-03-03 06:26:23 -0800 (Thu, 03 Mar 2011)
New Revision: 5585
Modified:
trunk/MgDev/Doc/samples/phpsamples/analyzing_features/selectfeaturesinbuffer.php
Log:
#1614: Clean up for replication as updated code samples in devguide
Modified: trunk/MgDev/Doc/samples/phpsamples/analyzing_features/selectfeaturesinbuffer.php
===================================================================
--- trunk/MgDev/Doc/samples/phpsamples/analyzing_features/selectfeaturesinbuffer.php 2011-03-03 13:59:18 UTC (rev 5584)
+++ trunk/MgDev/Doc/samples/phpsamples/analyzing_features/selectfeaturesinbuffer.php 2011-03-03 14:26:23 UTC (rev 5585)
@@ -275,19 +275,14 @@
$parcelMarkerCommands = new MgFeatureCommandCollection();
while ($featureReader->ReadNext())
{
-
$byteReader = $featureReader->GetGeometry('SHPGEOM');
-
$geometry = $agfReaderWriter->Read($byteReader);
$point = $geometry->GetCentroid();
// Create an insert command for this parcel.
-
$properties = new MgPropertyCollection();
-
$properties->Add(new MgGeometryProperty('ParcelLocation', $agfReaderWriter->Write($point)));
$parcelMarkerCommands->Add(new MgInsertFeatures('ParcelMarkerClass', $properties));
-
}
$featureReader->Close();
@@ -301,7 +296,7 @@
}
else
{
- echo '</p><p>No parcels within the buffer area match.';
+ echo '</p><p>No parcels within the buffer area match.';
}
// Create a feature in the buffer feature source to show the area covered by the buffer.
More information about the mapguide-commits
mailing list