Class SchemaBasedStacExtension
A schema based extension
Implements
Inherited Members
Namespace: Stac.Extensions
Assembly: DotNetStac.dll
Syntax
public class SchemaBasedStacExtension : StacPropertiesContainerExtension, IStacExtension
Constructors
| Improve this Doc View SourceSchemaBasedStacExtension(Uri, IStacObject)
Initializes a new instance of the SchemaBasedStacExtension class.
Declaration
public SchemaBasedStacExtension(Uri jsonSchema, IStacObject stacObject)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | jsonSchema | The json schema. |
| IStacObject | stacObject | The stac object. |
SchemaBasedStacExtension(Uri, StacSchemaResolver, IStacObject)
Initializes a new instance of the SchemaBasedStacExtension class.
Declaration
public SchemaBasedStacExtension(Uri schemaUri, StacSchemaResolver stacSchemaResolver, IStacObject stacObject)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | schemaUri | The schema URI. |
| StacSchemaResolver | stacSchemaResolver | The stac schema resolver. |
| IStacObject | stacObject | The stac object. |
Properties
| Improve this Doc View SourceIdentifier
Gets identifier of the extension
Declaration
public override string Identifier { get; }
Property Value
| Type | Description |
|---|---|
| System.String | Identifier of the extension |
Overrides
| Improve this Doc View SourceItemFields
Gets get the potential fields of the extensions and their type
Declaration
public override IDictionary<string, Type> ItemFields { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<System.String, Type> | Get the potential fields of the extensions and their type |
Overrides
| Improve this Doc View SourceJsonSchema
Gets the json schema.
Declaration
public Uri JsonSchema { get; }
Property Value
| Type | Description |
|---|---|
| Uri | The schema URI |
Methods
| Improve this Doc View SourceCreate(String, StacSchemaResolver, IStacObject)
Creates a new instance of the SchemaBasedStacExtension class.
Declaration
public static SchemaBasedStacExtension Create(string shortcut, StacSchemaResolver stacSchemaResolver, IStacObject stacObject)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | shortcut | The shortcut. |
| StacSchemaResolver | stacSchemaResolver | The stac schema resolver. |
| IStacObject | stacObject | The stac object. |
Returns
| Type | Description |
|---|---|
| SchemaBasedStacExtension | The extension |