Class AlternateStacExtension
Helper class to access the fields defined by the Alternate extension
Inherited Members
Namespace: Stac.Extensions.Alternate
Assembly: DotNetStac.dll
Syntax
public class AlternateStacExtension : StacPropertiesContainerExtension, IStacAssetExtension, IStacExtension
Fields
| Improve this Doc View SourceJsonSchemaUrl
Declaration
public const string JsonSchemaUrl = null
Field Value
Type | Description |
---|---|
System.String |
Properties
| Improve this Doc View SourceAlternateAssets
Gets or sets a dictionary of alternate location information for an asset.
Declaration
public IDictionary<string, AlternateAssetObject> AlternateAssets { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<System.String, AlternateAssetObject> | A dictionary of alternate location information for an asset. |
ItemFields
Gets potential fields and their types
Declaration
public override IDictionary<string, Type> ItemFields { get; }
Property Value
Type | Description |
---|---|
IDictionary<System.String, Type> | Potential fields and their types |
Overrides
| Improve this Doc View SourceStacAsset
Gets the StacAsset.
Declaration
public StacAsset StacAsset { get; }
Property Value
Type | Description |
---|---|
StacAsset |
Methods
| Improve this Doc View SourceAddAlternate(String, Uri, String, String)
Adds an alternate asset to the AlternateAssets dictionary
Declaration
public AlternateAssetObject AddAlternate(string key, Uri uri, string title = null, string description = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key of the alternate asset |
Uri | uri | The uri of the alternate asset |
System.String | title | The title of the alternate asset |
System.String | description | The description of the alternate asset |
Returns
Type | Description |
---|---|
AlternateAssetObject | The alternate asset object |
GetSummaryFunctions()
Get he potential summary functions for each field that can be summarized
Declaration
public override IDictionary<string, ISummaryFunction> GetSummaryFunctions()
Returns
Type | Description |
---|---|
IDictionary<System.String, ISummaryFunction> | Dictionary of summary functions |