Table of Contents

Class GeoServicesServiceRoot

Namespace
Honua.Sdk.GeoServices.FeatureServer
Assembly
Honua.Sdk.GeoServices.dll

A GeoServices REST service root URL split into root (with any path prefix), services directory, service id and service type.

public sealed record GeoServicesServiceRoot : IEquatable<GeoServicesServiceRoot>
Inheritance
GeoServicesServiceRoot
Implements
Inherited Members

Properties

RootAddress

Absolute root including any path prefix, always ending with /.

public required Uri RootAddress { get; init; }

Property Value

Uri

ServiceId

Unescaped service id, including folders (for example Utilities/Water).

public required string ServiceId { get; init; }

Property Value

string

ServiceType

The service type named by the final URL segment.

public required GeoServicesServiceType ServiceType { get; init; }

Property Value

GeoServicesServiceType

ServicesPath

Services directory path relative to RootAddress, for example rest/services; empty when the URL has none.

public required string ServicesPath { get; init; }

Property Value

string

Methods

Parse(Uri)

Parses an absolute URL ending at a FeatureServer or MapServer root, ignoring query and fragment; throws ArgumentException otherwise.

public static GeoServicesServiceRoot Parse(Uri serviceRootUrl)

Parameters

serviceRootUrl Uri

Returns

GeoServicesServiceRoot

ToClientOptions(long)

Creates client options that address this service root; pass ServiceId as the service id on each call.

public HonuaFeatureServerClientOptions ToClientOptions(long maxResponseBytes = 67108864)

Parameters

maxResponseBytes long

Returns

HonuaFeatureServerClientOptions

TryParse(Uri?, out GeoServicesServiceRoot?)

Tries to parse an absolute URL ending at a FeatureServer or MapServer root, ignoring query and fragment.

public static bool TryParse(Uri? serviceRootUrl, out GeoServicesServiceRoot? root)

Parameters

serviceRootUrl Uri
root GeoServicesServiceRoot

Returns

bool