Class VirtualAsset
The virtual asset object is an extension of the core asset object for the Virtual Assets extension
Implements
Inherited Members
Namespace: Stac.Extensions.VirtualAssets
Assembly: DotNetStac.dll
Syntax
public class VirtualAsset : StacAsset, IStacPropertiesContainer
Constructors
| Improve this Doc View SourceVirtualAsset(IStacObject, IList<Uri>)
Initializes a new instance of the VirtualAsset class.
Declaration
public VirtualAsset(IStacObject stacObject, IList<Uri> uris)
Parameters
Type | Name | Description |
---|---|---|
IStacObject | stacObject | The stac object. |
IList<Uri> | uris | The uris. |
Properties
| Improve this Doc View SourceUri
Gets or sets do not use
Declaration
public Uri Uri { get; set; }
Property Value
Type | Description |
---|---|
Uri |
Uris
Gets array of URIs to the assets object composing the virtual asset. Relative and absolute URI are both allowed
Declaration
public IList<Uri> Uris { get; }
Property Value
Type | Description |
---|---|
IList<Uri> |
Methods
| Improve this Doc View SourceCreate(StacItem, IList<String>, IStacObject)
Create a new Virtual Asset from assets defined in an existing stac item
Declaration
public static VirtualAsset Create(StacItem stacItem, IList<string> assetsKey, IStacObject newStacObject = null)
Parameters
Type | Name | Description |
---|---|---|
StacItem | stacItem | Stac Item to reference the assets from |
IList<System.String> | assetsKey | keys of the assets to be referenced |
IStacObject | newStacObject | new stac object container of the virtuals assets. If not specified, the stacItem is used |
Returns
Type | Description |
---|---|
VirtualAsset | Virtual Asset |
ShouldSerializeUri()
Declaration
public bool ShouldSerializeUri()
Returns
Type | Description |
---|---|
System.Boolean |