Skip to content

Commit

Permalink
few fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Feb 10, 2021
1 parent 32f21bd commit b9a5d0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/DotNetStac.Test/Examples/Example1Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ namespace Stac.Test.Example
{
public class Example1Test
{
// [Fact]
[Fact]
public void Deserialize()
{
IStacCatalog catalog = (IStacCatalog)StacFactory.Load("https://cbers-stac-0-7.s3.amazonaws.com/CBERS4/MUX/027/catalog.json");
IStacCatalog catalog = (IStacCatalog)StacFactory.Load("https://landsat-stac.s3.amazonaws.com/catalog.json");

Console.Out.WriteLine(catalog.Id);
Console.Out.WriteLine(catalog.StacVersion);
Expand Down
2 changes: 1 addition & 1 deletion src/DotNetStac/Extensions/Eo/EoBandObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public EoBandObject(string name, EoBandCommonName commonName)
public EoBandCommonName CommonName { get => commonName; set => commonName = value; }

[JsonProperty("center_wavelength")]
public double CenterWavelength { get; set; }
public double? CenterWavelength { get; set; }

[JsonExtensionData]
public IDictionary<string, object> Properties { get => properties; set => properties = value; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class ProcessingStacExtension : AssignableStacExtension, IStacExtension

public ProcessingStacExtension(IStacObject stacObject) : base(Prefix, stacObject)
{
var existingSoftware = GetField<Dictionary<string, string>>(LineageField);
var existingSoftware = GetField<Dictionary<string, string>>(SoftwareField);
if (existingSoftware != null)
software = new ObservableDictionary<string, string>(existingSoftware);
software.CollectionChanged += UpdateSoftwareField;
Expand Down

0 comments on commit b9a5d0d

Please sign in to comment.