OgcFeatureService.withUri constructor

OgcFeatureService.withUri(
  1. Uri uri
)

Creates an OgcFeatureService, taking a URL to the service landing page.

Parameters:

  • uri — The URL of the "OGC API - Features" service landing page.

Implementation

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