PlanetaryComputerModelFactory.GeoJsonGeometry Method

Definition

Represents a GeoJSON geometry object as defined by RFC 7946. Supported geometry types include:

  • Point: A single geographic coordinate.
  • LineString: A sequence of geographic coordinates forming a line.
  • Polygon: A closed shape defined by linear rings.
  • MultiPoint: A collection of Points.
  • MultiLineString: A collection of LineStrings.
  • MultiPolygon: A collection of Polygons.
Used for spatial filtering in STAC. Please note this is the abstract base class. The derived classes available for instantiation are: PointGeometry, PolygonGeometry, MultiPolygon, MultiLineString, LineString, and MultiPoint.
public static Azure.Analytics.PlanetaryComputer.GeoJsonGeometry GeoJsonGeometry(string type = default, System.Collections.Generic.IEnumerable<float> boundingBox = default);
static member GeoJsonGeometry : string * seq<single> -> Azure.Analytics.PlanetaryComputer.GeoJsonGeometry
Public Shared Function GeoJsonGeometry (Optional type As String = Nothing, Optional boundingBox As IEnumerable(Of Single) = Nothing) As GeoJsonGeometry

Parameters

type
String

Discriminator property for GeoJsonGeometry.

boundingBox
IEnumerable<Single>

Optional bounding box of the geometry.

Returns

A new GeoJsonGeometry instance for mocking.

Applies to