Class StacGeometryHelpers
Some helpers for manipulating geometries
Inheritance
System.Object
StacGeometryHelpers
Namespace: Stac
Assembly: DotNetStac.dll
Syntax
public static class StacGeometryHelpers : object
Methods
| Improve this Doc View SourceGetBoundingBox(IGeometryObject)
Get the bounding box of a geometry object
Declaration
public static IPosition[] GetBoundingBox(this IGeometryObject geometry)
Parameters
Type | Name | Description |
---|---|---|
IGeometryObject | geometry | the geometry object |
Returns
Type | Description |
---|---|
IPosition[] | The bounding box |
GetBoundingBoxFromGeometryExtent(StacItem)
Get The bounding box of a geometry in a StacItem
Declaration
public static double[] GetBoundingBoxFromGeometryExtent(this StacItem stacItem)
Parameters
Type | Name | Description |
---|---|---|
StacItem | stacItem | The STAC Item containing the geometry |
Returns
Type | Description |
---|---|
System.Double[] | The bounding box |
GetLowerLeft(IPosition[])
Get the lower left corner of a bounding box
Declaration
public static IPosition GetLowerLeft(this IPosition[] positions)
Parameters
Type | Name | Description |
---|---|---|
IPosition[] | positions | set of positions |
Returns
Type | Description |
---|---|
IPosition | the lower left corner |
GetUpperRight(IPosition[])
Get the upper right corner of a bounding box.
Declaration
public static IPosition GetUpperRight(this IPosition[] positions)
Parameters
Type | Name | Description |
---|---|---|
IPosition[] | positions | set of positions. |
Returns
Type | Description |
---|---|
IPosition | the upper right corner. |