Class StacItem
This class allows accessing commonly used fields in STAC Item They are often used in STAC Item properties, but can also be used in other places, e.g. an Item Asset or Collection Asset. STAC Common Metadata
Inheritance
Implements
Namespace: Stac
Assembly: DotNetStac.dll
Syntax
public class StacItem : GeoJSON.Net.Feature.Feature, IStacObject, IStacPropertiesContainer, ILinksCollectionObject, ICloneable, GeoJSON.Net.Feature.Feature
Constructors
| Improve this Doc View SourceStacItem(StacItem)
Initializes a new instance of the StacItem class.
Declaration
public StacItem(StacItem stacItem)
Parameters
| Type | Name | Description |
|---|---|---|
| StacItem | stacItem | A StacItem to copy |
StacItem(String, IGeometryObject, IDictionary<String, Object>)
Initializes a new instance of the StacItem class.
Declaration
public StacItem(string id, IGeometryObject geometry, IDictionary<string, object> properties = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | Identifier of the item |
| IGeometryObject | geometry | Geometry of the item |
| IDictionary<System.String, System.Object> | properties | Properties of the item |
Fields
| Improve this Doc View SourceMEDIATYPE
Item Media-Type string
Declaration
public const string MEDIATYPE = null
Field Value
| Type | Description |
|---|---|
| System.String |
Properties
| Improve this Doc View SourceAssets
Gets the assets of the Item
Declaration
public IDictionary<string, StacAsset> Assets { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<System.String, StacAsset> |
Collection
Gets or sets the id of the STAC Collection this Item references to
Declaration
public string Collection { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Constellation
Gets or sets the constellation the data was acquired from.
Declaration
public string Constellation { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Created
Gets or sets the created date and time of the Item.
Declaration
public DateTime Created { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
DateTime
Gets or sets the date and time the data was acquired.
Declaration
public Itenso.TimePeriod.ITimePeriod DateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Itenso.TimePeriod.ITimePeriod |
Description
Gets or sets the description of the Item.
Declaration
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Gsd
Gets or sets the name of the satellite the data was acquired from.
Declaration
public double? Gsd { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Double> |
Instruments
Gets or sets the instruments used to acquire the data.
Declaration
public IEnumerable<string> Instruments { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<System.String> |
License
Gets or sets the license of the Item.
Declaration
public string License { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Links
Gets a list of references
Declaration
public ICollection<StacLink> Links { get; }
Property Value
| Type | Description |
|---|---|
| ICollection<StacLink> |
MediaType
Gets the type of the object
Declaration
public ContentType MediaType { get; }
Property Value
| Type | Description |
|---|---|
| ContentType |
Mission
Gets or sets the mission the data was acquired from.
Declaration
public string Mission { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Platform
Gets or sets the platform the data was acquired from.
Declaration
public string Platform { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Providers
Gets a list of providers, which may include all organizations capturing or processing the data or the hosting provider. Providers should be listed in chronological order with the most recent provider being the last element of the list.
Declaration
public Collection<StacProvider> Providers { get; }
Property Value
| Type | Description |
|---|---|
| Stac.Collection<StacProvider> |
RootProperties
Gets item root extended data
Declaration
public IDictionary<string, object> RootProperties { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<System.String, System.Object> |
StacExtensions
Gets a list of extension identifiers the Item implements
Declaration
public ICollection<string> StacExtensions { get; }
Property Value
| Type | Description |
|---|---|
| ICollection<System.String> |
StacObjectContainer
Gets the StacObjectContainer.
Declaration
public IStacObject StacObjectContainer { get; }
Property Value
| Type | Description |
|---|---|
| IStacObject |
StacVersion
Gets or sets the STAC version the Item implements
Declaration
public SemVersion StacVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| SemVersion |
Title
Gets the title of the object
Declaration
public string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Updated
Gets or sets the updated date and time of the Item.
Declaration
public DateTime Updated { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Methods
| Improve this Doc View SourceClone()
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| System.Object |
ShouldSerializeStacExtensions()
Declaration
public bool ShouldSerializeStacExtensions()
Returns
| Type | Description |
|---|---|
| System.Boolean |