[mapguide-users] Create feature source from FeatureReader

mates reklamama at centrum.sk
Mon Jan 7 15:26:33 EST 2008


Finally i found a solution !!
I created a new temporary featureSource and a layer definition.And then
simply copied the geometry from the selected features to the new layer.


          $agfReaderWriter = new MgAgfReaderWriter();
	  $Commands = new MgFeatureCommandCollection();
	 
	  while ($featureReader->ReadNext())
	   {
		
		 $byteReader = $featureReader->GetGeometry('Geometry');

		 $properties = new MgPropertyCollection();
		 $properties->Add(new MgGeometryProperty('ProjektyGeom', $byteReader));
		 $parcelMarkerCommands->Add(new MgInsertFeatures('ProjektyResultClass',
$properties));
		
	    }

      $featureService->UpdateFeatures($parcelFeatureResId, $Commands,
false);
-- 
View this message in context: http://www.nabble.com/Create-feature-source-from-FeatureReader-tp14585581s16610p14674936.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list