FeatureCollectionTable.withFeatureSet constructor
- FeatureSet featureSet
Creates a FeatureCollectionTable populated from the specified FeatureSet.
The FeatureCollectionTable will be populated with the contents of the FeatureSet. Note that this constructor may take some time to complete depending on how many features are in the feature set.
Parameters:
featureSet
— An object that implements the FeatureSet.
Implementation
factory FeatureCollectionTable.withFeatureSet(
FeatureSet featureSet,
) {
_initializeArcGISEnvironmentIfNeeded();
final coreFeatureSet = _ElementExtension.fromDartValue(featureSet);
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_FeatureCollectionTable_createWithFeatureSet(
coreFeatureSet._handle,
errorHandler,
);
});
return FeatureTable._instanceCache.instanceWith(handle);
}