Zum Hauptinhalt springen

Feature<TGeometry>

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

Typed GeoJSON Feature class

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

Type Parameters​

TGeometry

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

Remarks:

Returns correctly typed Geometry property

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 TGeometry Geometry { get; }

Property Value​

TGeometry

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(TGeometry, IDictionary<String, Object>, String)​

Initializes a new instance of the Feature class.

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

Parameters​

geometry TGeometry
The Geometry Object.

properties IDictionary<String, Object>
The properties.

id String
The (optional) identifier.

Feature(TGeometry, Object, String)​

Initializes a new instance of the Feature class.

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

Parameters​

geometry TGeometry
The Geometry Object.

properties Object
Class used to fill feature properties. Any public member will be added to feature properties

id String
The (optional) identifier.

Methods​

Equals(Feature<TGeometry>)​

public bool Equals(Feature<TGeometry> other)

Parameters​

other Feature<TGeometry>

Returns​

Boolean

Equals(Object)​

public bool Equals(object obj)

Parameters​

obj Object

Returns​

Boolean

GetHashCode()​

public int GetHashCode()

Returns​

Int32