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.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users