Class VersionStacExtensionExtensions
Extension methods for accessing EO extension
Inheritance
Namespace: Stac.Extensions.Version
Assembly: DotNetStac.dll
Syntax
public static class VersionStacExtensionExtensions : object
Methods
| Improve this Doc View SourceLatestVersion(StacCollection, Func<StacLink, StacCollection>)
Retrieve the latest version of the Stac Collection if any
Declaration
public static StacCollection LatestVersion(this StacCollection stacCollection, Func<StacLink, StacCollection> stacLinkResolver)
Parameters
Type | Name | Description |
---|---|---|
StacCollection | stacCollection | current Stac Collection |
Func<StacLink, StacCollection> | stacLinkResolver | Function that read a Stac Link to get the StacItem |
Returns
Type | Description |
---|---|
StacCollection | null if no latest version |
LatestVersion(StacItem, Func<StacLink, StacItem>)
Retrieve the latest version of the Stac Item if any
Declaration
public static StacItem LatestVersion(this StacItem stacItem, Func<StacLink, StacItem> stacLinkResolver)
Parameters
Type | Name | Description |
---|---|---|
StacItem | stacItem | current Stac Item |
Func<StacLink, StacItem> | stacLinkResolver | Function that read a Stac Link to get the StacItem |
Returns
Type | Description |
---|---|
StacItem | null if no latest version |
PredecessorVersion(StacCollection, Func<StacLink, StacCollection>)
Retrieve the predecessor version of the Stac Collection if any
Declaration
public static StacCollection PredecessorVersion(this StacCollection stacCollection, Func<StacLink, StacCollection> stacLinkResolver)
Parameters
Type | Name | Description |
---|---|---|
StacCollection | stacCollection | current Stac Collection |
Func<StacLink, StacCollection> | stacLinkResolver | Function that read a Stac Link to get the StacItem |
Returns
Type | Description |
---|---|
StacCollection | null if no precedessor version |
PredecessorVersion(StacItem, Func<StacLink, StacItem>)
Retrieve the predecessor version of the Stac Item if any
Declaration
public static StacItem PredecessorVersion(this StacItem stacItem, Func<StacLink, StacItem> stacLinkResolver)
Parameters
Type | Name | Description |
---|---|---|
StacItem | stacItem | current Stac Item |
Func<StacLink, StacItem> | stacLinkResolver | Function that read a Stac Link to get the StacItem |
Returns
Type | Description |
---|---|
StacItem | null if no precedessor version |
SuccessorVersion(StacCollection, Func<StacLink, StacCollection>)
Retrieve the successor version of the Stac Collection if any
Declaration
public static StacCollection SuccessorVersion(this StacCollection stacCollection, Func<StacLink, StacCollection> stacLinkResolver)
Parameters
Type | Name | Description |
---|---|---|
StacCollection | stacCollection | current Stac Collection |
Func<StacLink, StacCollection> | stacLinkResolver | Function that read a Stac Link to get the StacItem |
Returns
Type | Description |
---|---|
StacCollection | null if no successor version |
SuccessorVersion(StacItem, Func<StacLink, StacItem>)
Retrieve the successor version of the Stac Item if any
Declaration
public static StacItem SuccessorVersion(this StacItem stacItem, Func<StacLink, StacItem> stacLinkResolver)
Parameters
Type | Name | Description |
---|---|---|
StacItem | stacItem | current Stac Item |
Func<StacLink, StacItem> | stacLinkResolver | Function that read a Stac Link to get the StacItem |
Returns
Type | Description |
---|---|
StacItem | null if no successor version |
VersionExtension(StacCollection)
Initilize a VersionStacExtension class from a STAC collection
Declaration
public static VersionStacExtension VersionExtension(this StacCollection stacCollection)
Parameters
Type | Name | Description |
---|---|---|
StacCollection | stacCollection | The STAC collection |
Returns
Type | Description |
---|---|
VersionStacExtension | The VersionStacExtension class |
VersionExtension(StacItem)
Initilize a VersionStacExtension class from a STAC item
Declaration
public static VersionStacExtension VersionExtension(this StacItem stacItem)
Parameters
Type | Name | Description |
---|---|---|
StacItem | stacItem | The STAC item |
Returns
Type | Description |
---|---|
VersionStacExtension | The VersionStacExtension class |