WfsService.withUri constructor

WfsService.withUri(
  1. Uri uri
)

Creates a WfsService, taking a URL to the service.

The URL is the 'GetCapabilities' URL for the WFS service. Web Feature Service (WFS) is an OGC standard. This API supports WFS versions 2.0.0 and 2.0.2.

Parameters:

  • uri — of the WFS service.

Implementation

factory WfsService.withUri(
  Uri uri,
) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreURI = _CString(uri.toString());
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_WFSService_createWithURL(
      coreURI.bytes,
      errorHandler,
    );
  });
  final WfsService object = WfsService._withHandle(handle);
  object._uri.cache(uri);
  return object;
}