OgcFeatureCollectionTable.withUriAndCollectionId constructor

OgcFeatureCollectionTable.withUriAndCollectionId({
  1. required Uri uri,
  2. required String collectionId,
})

Creates a new OGC API - Features feature collection table.

Parameters:

  • uri — The URL of the OGC API - Features service landing page that contains the feature collection.
  • collectionId — The unique identifier for the collection from the service.

Implementation

factory OgcFeatureCollectionTable.withUriAndCollectionId({
  required Uri uri,
  required String collectionId,
}) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreURI = _CString(uri.toString());
  final coreCollectionId = _CString(collectionId);
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_OGCFeatureCollectionTable_createWithURLAndTableName(
      coreURI.bytes,
      coreCollectionId.bytes,
      errorHandler,
    );
  });
  final OgcFeatureCollectionTable object =
      FeatureTable._instanceCache.instanceWith(handle);
  object._uri.cache(uri);
  return object;
}