Show / Hide Table of Contents

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 Source

GetBoundingBox(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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX