Skip to main content

IGeoJSONObject

Namespace: Meshmakers.Octo.Runtime.Contracts.Geospatial

Base Interface for GeoJSONObject types.

public interface IGeoJSONObject

Properties

Type

Gets the (mandatory) type of the GeoJSON Object.

public abstract GeoJSONObjectType Type { get; }

Property Value

GeoJSONObjectType
The type of the object.

Remarks:

See https://tools.ietf.org/html/rfc7946#section-3

CRS

Gets the (optional) Coordinate Reference System Object.

public abstract ICRSObject CRS { get; }

Property Value

ICRSObject
The Coordinate Reference System Objects.

Remarks:

See https://tools.ietf.org/html/rfc7946#section-4

BoundingBoxes

Gets or sets the (optional) Bounding Boxes.

public abstract Double[] BoundingBoxes { get; set; }

Property Value

Double[]
The value of the bbox member must be a 2*n array where n is the number of dimensions represented in the contained geometries, with the lowest values for all axes followed by the highest values. The axes order of a bbox follows the axes order of geometries. In addition, the coordinate reference system for the bbox is assumed to match the coordinate reference system of the GeoJSON object of which it is a member.

Remarks:

See https://tools.ietf.org/html/rfc7946#section-5