WfsFeatureTable.withUriAndTableName constructor

WfsFeatureTable.withUriAndTableName({
  1. required Uri uri,
  2. required String tableName,
})

Creates a WFS feature table from the URL of a WFS Service and a table name.

Parameters:

  • uri — The URL of a WFS service.
  • tableName — The name of the layer (feature type) from the WFS service.

Implementation

factory WfsFeatureTable.withUriAndTableName({
  required Uri uri,
  required String tableName,
}) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreURI = _CString(uri.toString());
  final coreTableName = _CString(tableName);
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_WFSFeatureTable_createWithURLAndTableName(
      coreURI.bytes,
      coreTableName.bytes,
      errorHandler,
    );
  });
  final WfsFeatureTable object =
      FeatureTable._instanceCache.instanceWith(handle);
  object._uri.cache(uri);
  return object;
}