Class RemoteS100Catalogue
- Namespace
- EncDotNet.S100.Collections.RemoteCatalogues
- Assembly
- EncDotNet.S100.Collections.dll
A remote S-100 exchange catalogue read into online items: one per dataset, with its coverage, edition, folder and download URL.
public sealed record RemoteS100Catalogue : IEquatable<RemoteS100Catalogue>
- Inheritance
-
RemoteS100Catalogue
- Implements
- Inherited Members
Constructors
RemoteS100Catalogue(Uri, Uri, DateTimeOffset?, IReadOnlyList<CollectionItem>, IReadOnlyList<IndexDiagnostic>)
A remote S-100 exchange catalogue read into online items: one per dataset, with its coverage, edition, folder and download URL.
public RemoteS100Catalogue(Uri CatalogUri, Uri RootUri, DateTimeOffset? IssuedAt, IReadOnlyList<CollectionItem> Items, IReadOnlyList<IndexDiagnostic> Diagnostics)
Parameters
CatalogUriUriWhere the catalogue was read from.
RootUriUriThe exchange set's root: the deepest folder holding both the catalogue's folder and every dataset (ending in
/). Item folders are relative to it.IssuedAtDateTimeOffset?The catalogue's own date-time (
identifier/dateTime), if it parses.ItemsIReadOnlyList<CollectionItem>Every dataset, in catalogue order, without sizes.
DiagnosticsIReadOnlyList<IndexDiagnostic>Problems met while reading; none are fatal.
Fields
FolderProperty
The item property holding the dataset's folder relative to
RootUri (e.g. Northeast/Long_Island_Sound; empty at
the root). It is also the item's group (GroupProperty).
public const string FolderProperty = "group"
Field Value
GridResolutionProperty
The item property holding the coverage's approximate grid resolution in metres (e.g. 4).
public const string GridResolutionProperty = "gridResolution"
Field Value
NavigationPurposeProperty
The item property holding the catalogue's navigationPurpose (e.g. port).
public const string NavigationPurposeProperty = "navigationPurpose"
Field Value
Properties
CatalogUri
Where the catalogue was read from.
public Uri CatalogUri { get; init; }
Property Value
Diagnostics
Problems met while reading; none are fatal.
public IReadOnlyList<IndexDiagnostic> Diagnostics { get; init; }
Property Value
IssuedAt
The catalogue's own date-time (identifier/dateTime), if it parses.
public DateTimeOffset? IssuedAt { get; init; }
Property Value
Items
Every dataset, in catalogue order, without sizes.
public IReadOnlyList<CollectionItem> Items { get; init; }
Property Value
RootUri
The exchange set's root: the deepest folder holding both the catalogue's
folder and every dataset (ending in /). Item folders are relative to it.
public Uri RootUri { get; init; }
Property Value
Methods
FolderName(string)
A folder's display name: its last segment with underscores as spaces ("Long Island Sound").
public static string FolderName(string folder)
Parameters
folderstring
Returns
FolderOf(CollectionItem)
The folder of item, relative to the root.
public static string FolderOf(CollectionItem item)
Parameters
itemCollectionItem
Returns
FolderUri(string)
The URL of a folder (relative to RootUri), ending in /.
public Uri FolderUri(string folder)
Parameters
folderstring
Returns
TopFolder(string)
The first segment of a folder (the region, for NOAA's S-102), or empty at the root.
public static string TopFolder(string folder)
Parameters
folderstring