Zum Hauptinhalt springen

Feature

Namespace: Meshmakers.Octo.Runtime.Contracts.Geospatial.Features

A GeoJSON Feature Object.

public class Feature : Feature<IGeometryObject>, IGeoJSONObject, IEqualityComparer<GeoJSONObject>, IEquatable<GeoJSONObject>, IEquatable<Feature<IGeometryObject, IDictionary<String, Object>>>, IEquatable<Feature<IGeometryObject>>

Inheritance Object → GeoJSONObject → Feature<IGeometryObject, IDictionary<String, Object>> → Feature<IGeometryObject> → Feature
Implements IGeoJSONObject, IEqualityComparer<GeoJSONObject>, IEquatable<GeoJSONObject>, IEquatable<Feature<IGeometryObject, IDictionary<String, Object>>>, IEquatable<Feature<IGeometryObject>>

Remarks:

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

Properties​

Type​

public GeoJSONObjectType Type { get; }

Property Value​

GeoJSONObjectType

Id​

Gets the identifier.

public string Id { get; }

Property Value​

String

Geometry​

Gets the Geometry Object.

public IGeometryObject Geometry { get; }

Property Value​

IGeometryObject

Properties​

Gets the properties.

public IDictionary<string, object> Properties { get; }

Property Value​

IDictionary<String, Object>

BoundingBoxes​

Gets or sets the (optional) Bounding Boxes.

public Double[] BoundingBoxes { get; set; }

Property Value​

Double[]
The value of GeoJSONObject.BoundingBoxes 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.

CRS​

Gets or sets the (optional)

Coordinate Reference System Object.

public ICRSObject CRS { get; set; }

Property Value​

ICRSObject
The Coordinate Reference System Objects.

Constructors​

Feature(IGeometryObject, IDictionary<String, Object>, String)​

Initializes a new instance of the Feature class.

public Feature(IGeometryObject geometry, IDictionary<string, object> properties, string id)

Parameters​

geometry IGeometryObject

properties IDictionary<String, Object>

id String

Feature(IGeometryObject, Object, String)​

Initializes a new instance of the Feature class.

public Feature(IGeometryObject geometry, object properties, string id)

Parameters​

geometry IGeometryObject

properties Object

id String