-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3efbf55
commit d7b2e67
Showing
9 changed files
with
801 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
DotNetStac | ||
[![Build Status](https://travis-ci.com/Terradue/DotNetStac.svg?branch=develop)](https://travis-ci.com/Terradue/DotNetStac) | ||
|
||
# DotNetStac | ||
.Net library for working with any SpatioTemporal Asset Catalog (STAC) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
namespace Stac.Collection | ||
{ | ||
[JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] | ||
public class StacProvider | ||
{ | ||
private string name; | ||
|
||
private string description; | ||
|
||
private List<StacProviderRole> roles; | ||
private Uri uri; | ||
|
||
public StacProvider(string name) | ||
{ | ||
this.name = name; | ||
} | ||
|
||
[JsonProperty("name")] | ||
public string Name { get => name; set => name = value; } | ||
|
||
[JsonProperty("description")] | ||
public string Description { get => description; set => description = value; } | ||
|
||
[JsonProperty("roles")] | ||
public List<StacProviderRole> Roles { get => roles; set => roles = value; } | ||
|
||
[JsonProperty("url")] | ||
public Uri Uri { get => uri; set => uri = value; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
namespace Stac.Collection | ||
{ | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum StacProviderRole | ||
{ | ||
licensor, | ||
producer, | ||
processor, | ||
host | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters