Web API Reference | MapGuide Open Source |
Constructs an insert command containing many features.
.NET Syntax
Java Syntax
PHP Syntax
Example (PHP)
<?php $batchPropertyCollection = new MgBatchPropertyCollection(); $featCmdCollection = new MgFeatureCommandCollection(); for($i = 0; $i < 2; $i++) { $col = new MgPropertyCollection(); $featIdProp = new MgInt32Property($i); $col->Add($featIdProp); $batchPropertyCollection->Add($col); } $insertFeatures = new MgInsertFeatures("featClass", $batchPropertyCollection); $featCmdCollection->Add($insertFeatures); $useTransaction = false; $featureService->UpdateFeatures($featureSrcResourceId, $featCmdCollection, $useTransaction); ?>
|