Skip to content

Commit

Permalink
Spatial Extent doc
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Apr 26, 2021
1 parent 7821c57 commit f4b0205
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
20 changes: 16 additions & 4 deletions src/DotNetStac/Collection/StacSpatialExtent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,30 @@

namespace Stac.Collection
{
/// <summary>
/// The class represents the spatial extents.
/// <seealso href="https://github.com/radiantearth/stac-spec/blob/dev/collection-spec/collection-spec.md#spatial-extent-object">Spatial Extent Object</seealso>
/// </summary>
[JsonObject]
public class StacSpatialExtent
{
public StacSpatialExtent()
{
}

/// <summary>
/// Initialize a new instance of the <see cref="StacSpatialExtent" /> class with a single extent.
/// </summary>
/// <param name="minX">Minimum X bound</param>
/// <param name="minY">Minimum Y bound</param>
/// <param name="maxX">Maximum X bound</param>
/// <param name="maxY">Maximum Y bound</param>
[JsonConstructor]
public StacSpatialExtent(double minX, double minY, double maxX, double maxY)
{
BoundingBoxes = new double[1][] { new double[4] { minX, minY, maxX, maxY } };
}

/// <summary>
/// Potential spatial extents.
/// </summary>
/// <value>Gets/sets double entry array of coordinates</value>
[JsonProperty("bbox")]
public double[][] BoundingBoxes { get; set; }
}
Expand Down
6 changes: 0 additions & 6 deletions src/DotNetStac/Collection/StacStatsObject.cs

This file was deleted.

0 comments on commit f4b0205

Please sign in to comment.