Skip to content

Commit

Permalink
remove blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Feb 7, 2023
1 parent d6d6cba commit 7ccb21a
Show file tree
Hide file tree
Showing 24 changed files with 223 additions and 75 deletions.
5 changes: 3 additions & 2 deletions src/DotNetStac/Collection/IStacSummaryItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ public interface IStacSummaryItem : IEnumerable<JToken>
/// <summary>
/// Gets or sets the summary value with the specified fields (for objects only)
/// </summary>

JToken this[object key] { get; }

/// <summary>
/// Gets the summary item as a JToken
/// </summary>

/// <value>
/// <placeholder>The summary item as a JToken</placeholder>
/// </value>
JToken AsJToken { get; }

IEnumerable<object> Enumerate();
Expand Down
1 change: 0 additions & 1 deletion src/DotNetStac/Collection/StacSummaryItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ protected StacSummaryItem(JToken summary)
/// <summary>
/// accessor of fields in the object
/// </summary>

public JToken this[object key]
{
get
Expand Down
4 changes: 3 additions & 1 deletion src/DotNetStac/Collection/StacTemporalExtent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public StacTemporalExtent(StacTemporalExtent temporal)
/// <summary>
/// Gets or sets potential temporal extents.
/// </summary>

/// <value>
/// <placeholder>Potential temporal extents.</placeholder>
/// </value>
[JsonProperty("interval")]
public DateTime?[][] Interval { get; set; }
}
Expand Down
1 change: 1 addition & 0 deletions src/DotNetStac/Common/PropertyObservableCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ private void ObservableCollectionInPropertiesChanged(object sender, NotifyCollec
{
return;
}

this.PropertiesContainer.SetProperty(this.Key, this.ToList());
}
}
Expand Down
24 changes: 18 additions & 6 deletions src/DotNetStac/Common/Statistics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,42 +37,54 @@ public Statistics(double? minimum, double? maximum, double? mean, double? stdev,
/// <summary>
/// Gets or sets mean value
/// </summary>

/// <value>
/// <placeholder>Mean value</placeholder>
/// </value>
[JsonProperty("mean")]
public double? Mean { get; set; }

/// <summary>
/// Gets or sets minimum value
/// </summary>

/// <value>
/// <placeholder>Minimum value</placeholder>
/// </value>
[JsonProperty("minimum")]
public double? Minimum { get; set; }

/// <summary>
/// Gets or sets maximum value
/// </summary>

/// <value>
/// <placeholder>Maximum value</placeholder>
/// </value>
[JsonProperty("maximum")]
public double? Maximum { get; set; }

/// <summary>
/// Gets or sets standard Deviation
/// </summary>

/// <value>
/// <placeholder>Standard Deviation</placeholder>
/// </value>
[JsonProperty("stdev")]
public double? Stdev { get; set; }

/// <summary>
/// Gets or sets valid percentage
/// </summary>

/// <value>
/// <placeholder>Valid percentage</placeholder>
/// </value>
[JsonProperty("valid_percent")]
public double? ValidPercent { get; set; }

/// <summary>
/// Gets or sets additional fields
/// </summary>

/// <value>
/// <placeholder>Additional fields</placeholder>
/// </value>
[JsonExtensionData]
public IDictionary<string, object> Properties { get => this.properties; set => this.properties = value; }

Expand Down
4 changes: 3 additions & 1 deletion src/DotNetStac/Extensions/Alternate/AlternateAssetObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ public AlternateAssetObject(string href, IStacObject parent = null, string title
/// <summary>
/// Gets or sets additional fields
/// </summary>

/// <value>
/// <placeholder>Additional fields</placeholder>
/// </value>
[JsonExtensionData]
public IDictionary<string, object> Properties { get => this.properties; set => this.properties = value; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ public class DatacubeDimension : IStacPropertiesContainer
/// <summary>
/// Gets or sets additional fields
/// </summary>

/// <value>
/// <placeholder>Additional fields</placeholder>
/// </value>
[JsonExtensionData]
public IDictionary<string, object> Properties { get => this.properties; set => this.properties = value; }

Expand Down
4 changes: 3 additions & 1 deletion src/DotNetStac/Extensions/Datacube/DatacubeVariableObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ public class DatacubeVariable : IStacPropertiesContainer
/// <summary>
/// Gets or sets additional fields
/// </summary>

/// <value>
/// <placeholder>Additional fields</placeholder>
/// </value>
[JsonExtensionData]
public IDictionary<string, object> Properties { get => this.properties; set => this.properties = value; }

Expand Down
20 changes: 15 additions & 5 deletions src/DotNetStac/Extensions/Eo/EoBandObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,35 +54,45 @@ public EoBandObject(string name, EoBandCommonName? commonName)
/// <summary>
/// Gets or sets the name commonly used to refer to the band to make it easier to search for bands across instruments.
/// </summary>

/// <value>
/// <placeholder>The name commonly used to refer to the band to make it easier to search for bands across instruments.</placeholder>
/// </value>
[JsonProperty("common_name")]
public EoBandCommonName? CommonName { get => this.commonName; set => this.commonName = value; }

/// <summary>
/// Gets or sets the center wavelength of the band, in micrometers (μm).
/// </summary>

/// <value>
/// <placeholder>The center wavelength of the band, in micrometers (μm).</placeholder>
/// </value>
[JsonProperty("center_wavelength")]
public double? CenterWavelength { get; set; }

/// <summary>
/// Gets or sets full width at half maximum (FWHM). The width of the band, as measured at half the maximum transmission, in micrometers (μm).
/// </summary>

/// <value>
/// <placeholder>Full width at half maximum (FWHM). The width of the band, as measured at half the maximum transmission, in micrometers (μm).</placeholder>
/// </value>
[JsonProperty("full_width_half_max")]
public double? FullWidthHalfMax { get; set; }

/// <summary>
/// Gets or sets the solar illumination of the band, as measured at half the maximum transmission, in W/m2/micrometers.
/// </summary>

/// <value>
/// <placeholder>The solar illumination of the band, as measured at half the maximum transmission, in W/m2/micrometers.</placeholder>
/// </value>
[JsonProperty("solar_illumination")]
public double? SolarIllumination { get; set; }

/// <summary>
/// Gets or sets additional fields
/// </summary>

/// <value>
/// <placeholder>Additional fields</placeholder>
/// </value>
[JsonExtensionData]
public IDictionary<string, object> Properties { get => this.properties; set => this.properties = value; }

Expand Down
16 changes: 12 additions & 4 deletions src/DotNetStac/Extensions/File/FileStacExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ internal FileStacExtension(StacAsset stacAsset) : base(JsonSchemaUrl, stacAsset)
/// <summary>
/// Gets or sets the byte order of integer values in the file. One of big-endian or little-endian.
/// </summary>

/// <value>
/// <placeholder>The byte order of integer values in the file. One of big-endian or little-endian.</placeholder>
/// </value>
public ByteOrder ByteOrder
{
get { return this.StacPropertiesContainer.GetProperty<ByteOrder>(ByteOrderField); }
Expand All @@ -46,7 +48,9 @@ public ByteOrder ByteOrder
/// <summary>
/// Gets or sets the name commonly used to refer to the processing level to make it easier to search for product level across collections or items.
/// </summary>

/// <value>
/// <placeholder>The name commonly used to refer to the processing level to make it easier to search for product level across collections or items.</placeholder>
/// </value>
public Multihash Checksum
{
get { return Multihash.Parse(this.StacPropertiesContainer.GetProperty<string>(ChecksumField)); }
Expand All @@ -56,7 +60,9 @@ public Multihash Checksum
/// <summary>
/// Gets or sets the name of the facility that produced the data.
/// </summary>

/// <value>
/// <placeholder>The name of the facility that produced the data. </placeholder>
/// </value>
public uint? HeaderSize
{
get { return this.StacPropertiesContainer.GetProperty<uint?>(HeaderSizeField); }
Expand All @@ -66,7 +72,9 @@ public uint? HeaderSize
/// <summary>
/// Gets or sets the name of the facility that produced the data.
/// </summary>

/// <value>
/// <placeholder>The name of the facility that produced the data. </placeholder>
/// </value>
public ulong? Size
{
get { return this.StacPropertiesContainer.GetProperty<ulong?>(SizeField); }
Expand Down
16 changes: 12 additions & 4 deletions src/DotNetStac/Extensions/Processing/ProcessingStacExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ internal ProcessingStacExtension(StacItem stacItem) : base(JsonSchemaUrl, stacIt
/// <summary>
/// Gets or sets lineage Information provided as free text information about the how observations were processed or models that were used to create the resource being described NASA ISO.
/// </summary>

/// <value>
/// <placeholder>Lineage Information provided as free text information about the how observations were processed or models that were used to create the resource being described NASA ISO.</placeholder>
/// </value>
public string Lineage
{
get { return this.StacPropertiesContainer.GetProperty<string>(LineageField); }
Expand All @@ -44,7 +46,9 @@ public string Lineage
/// <summary>
/// Gets or sets the name commonly used to refer to the processing level to make it easier to search for product level across collections or items.
/// </summary>

/// <value>
/// <placeholder>The name commonly used to refer to the processing level to make it easier to search for product level across collections or items.</placeholder>
/// </value>
public string Level
{
get { return this.StacPropertiesContainer.GetProperty<string>(LevelField); }
Expand All @@ -54,7 +58,9 @@ public string Level
/// <summary>
/// Gets or sets the name of the facility that produced the data.
/// </summary>

/// <value>
/// <placeholder>The name of the facility that produced the data. </placeholder>
/// </value>
public string Facility
{
get { return this.StacPropertiesContainer.GetProperty<string>(FacilityField); }
Expand All @@ -64,7 +70,9 @@ public string Facility
/// <summary>
/// Gets a dictionary with name/version for key/value describing one or more softwares that produced the data.
/// </summary>

/// <value>
/// <placeholder>A dictionary with name/version for key/value describing one or more softwares that produced the data.</placeholder>
/// </value>
public IDictionary<string, string> Software
{
get
Expand Down
24 changes: 18 additions & 6 deletions src/DotNetStac/Extensions/Raster/RasterBandObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,29 +56,37 @@ public RasterBand()
/// <summary>
/// Gets or sets the data type of the band.
/// </summary>

/// <value>
/// <placeholder>The data type of the band.</placeholder>
/// </value>
[JsonProperty("data_type")]
[JsonConverter(typeof(StringEnumConverter))]
public DataType? DataType { get => this.dataType; set => this.dataType = value; }

/// <summary>
/// Gets or sets the actual number of bits used for this band.
/// </summary>

/// <value>
/// <placeholder>The actual number of bits used for this band.</placeholder>
/// </value>
[JsonProperty("bits_per_sample")]
public int? BitsPerSample { get; set; }

/// <summary>
/// Gets or sets average spatial resolution (in meters) of the pixels in the band.
/// </summary>

/// <value>
/// <placeholder>Average spatial resolution (in meters) of the pixels in the band.</placeholder>
/// </value>
[JsonProperty("spatial_resolution")]
public double? SpatialResolution { get; set; }

/// <summary>
/// Gets or sets statistics of all the pixels in the band
/// </summary>

/// <value>
/// <placeholder>Statistics of all the pixels in the band</placeholder>
/// </value>
[JsonProperty("statistics")]
public Statistics Statistics { get; set; }

Expand Down Expand Up @@ -112,14 +120,18 @@ public RasterBand()
/// <summary>
/// Gets or sets histogram distribution information of the pixels values in the band
/// </summary>

/// <value>
/// <placeholder>Histogram distribution information of the pixels values in the band</placeholder>
/// </value>
[JsonProperty("histogram")]
public RasterHistogram Histogram { get; set; }

/// <summary>
/// Gets or sets additional fields
/// </summary>

/// <value>
/// <placeholder>Additional fields</placeholder>
/// </value>
[JsonExtensionData]
public IDictionary<string, object> Properties { get => this.properties; set => this.properties = value; }

Expand Down
16 changes: 12 additions & 4 deletions src/DotNetStac/Extensions/Raster/RasterHistogram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,36 @@ public class RasterHistogram
/// <summary>
/// Gets or sets number of buckets of the distribution.
/// </summary>

/// <value>
/// <placeholder>Number of buckets of the distribution.</placeholder>
/// </value>
[JsonProperty("count")]
public int? Count { get; set; }

/// <summary>
/// Gets or sets minimum value of the distribution. Also the mean value of the first bucket.
/// </summary>

/// <value>
/// <placeholder>Minimum value of the distribution. Also the mean value of the first bucket.</placeholder>
/// </value>
[JsonProperty("min")]
public double? Min { get; set; }

/// <summary>
/// Gets or sets minimum value of the distribution. Also the mean value of the last bucket.
/// </summary>

/// <value>
/// <placeholder>Minimum value of the distribution. Also the mean value of the last bucket.</placeholder>
/// </value>
[JsonProperty("max")]
public double? Max { get; set; }

/// <summary>
/// Gets or sets array of integer indicating the number of pixels included in the bucket.
/// </summary>

/// <value>
/// <placeholder>Array of integer indicating the number of pixels included in the bucket.</placeholder>
/// </value>
[JsonProperty("buckets")]
public double[] Buckets { get; set; }
}
Expand Down
4 changes: 3 additions & 1 deletion src/DotNetStac/Extensions/StacExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ public static class StacExtensions
/// <summary>
/// Gets dictionary of extensions managed by the library
/// </summary>

/// <value>
/// <placeholder>Dictionary of extensions managed by the library</placeholder>
/// </value>
public static Dictionary<string, Type> ManagedStacExtensions
{
get
Expand Down
Loading

0 comments on commit 7ccb21a

Please sign in to comment.