Skip to main content

FeatureCollection<TProps>

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

Defines a typed version of Feature collection

public class FeatureCollection<TProps> : FeatureCollection, IGeoJSONObject, IEqualityComparer<GeoJSONObject>, IEquatable<GeoJSONObject>, IEqualityComparer<FeatureCollection>, IEquatable<FeatureCollection>, IEqualityComparer<FeatureCollection<TProps>>, IEquatable<FeatureCollection<TProps>>

Type Parameters

TProps

Inheritance ObjectGeoJSONObjectFeatureCollectionFeatureCollection<TProps>
Implements IGeoJSONObject, IEqualityComparer<GeoJSONObject>, IEquatable<GeoJSONObject>, IEqualityComparer<FeatureCollection>, IEquatable<FeatureCollection>, IEqualityComparer<FeatureCollection<TProps>>, IEquatable<FeatureCollection<TProps>>

Properties

Type

public GeoJSONObjectType Type { get; }

Property Value

GeoJSONObjectType

Features

Gets the features.

public List<Feature<IGeometryObject, TProps>> Features { get; private set; }

Property Value

List<Feature<IGeometryObject, TProps>>
The features.

Features

Gets the features.

public List<Feature> Features { get; }

Property Value

List<Feature>
The features.

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

FeatureCollection()

Initializes a new instance of the FeatureCollection class.

public FeatureCollection()

FeatureCollection(List<Feature<IGeometryObject, TProps>>)

Initializes a new instance of the FeatureCollection class.

public FeatureCollection(List<Feature<IGeometryObject, TProps>> features)

Parameters

features List<Feature<IGeometryObject, TProps>>
The features.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object

public bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(FeatureCollection<TProps>)

Determines whether the specified object is equal to the current object

public bool Equals(FeatureCollection<TProps> other)

Parameters

other FeatureCollection<TProps>

Returns

Boolean

Equals(FeatureCollection<TProps>, FeatureCollection<TProps>)

Determines whether the specified object instances are considered equal

public bool Equals(FeatureCollection<TProps> left, FeatureCollection<TProps> right)

Parameters

left FeatureCollection<TProps>

right FeatureCollection<TProps>

Returns

Boolean

GetHashCode()

Returns the hash code for this instance

public int GetHashCode()

Returns

Int32

GetHashCode(FeatureCollection<TProps>)

Returns the hash code for the specified object

public int GetHashCode(FeatureCollection<TProps> other)

Parameters

other FeatureCollection<TProps>

Returns

Int32