GeometryCollection
Namespace: Meshmakers.Octo.Runtime.Contracts.Geospatial.Geometry
Defines the GeometryCollection type.
public class GeometryCollection : GeoJSONObject, IGeoJSONObject, IEqualityComparer<GeoJSONObject>, IEquatable<GeoJSONObject>, IGeometryObject, IEqualityComparer<GeometryCollection>, IEquatable<GeometryCollection>
Inheritance Object → GeoJSONObject → GeometryCollection
Implements IGeoJSONObject, IEqualityComparer<GeoJSONObject>, IEquatable<GeoJSONObject>, IGeometryObject, IEqualityComparer<GeometryCollection>, IEquatable<GeometryCollection>
Remarks:
See https://tools.ietf.org/html/rfc7946#section-3.1.8
Properties
Type
public GeoJSONObjectType Type { get; }
Property Value
Geometries
Gets the list of Polygons enclosed in this MultiPolygon.
public ReadOnlyCollection<IGeometryObject> Geometries { get; private set; }
Property Value
ReadOnlyCollection<IGeometryObject>
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
GeometryCollection()
Initializes a new instance of the GeometryCollection class.
public GeometryCollection()
GeometryCollection(IEnumerable<IGeometryObject>)
Initializes a new instance of the GeometryCollection class.
public GeometryCollection(IEnumerable<IGeometryObject> geometries)
Parameters
geometries
IEnumerable<IGeometryObject>
The geometries contained in this GeometryCollection.
Methods
Equals(Object)
Determines whether the specified object is equal to the current object
public bool Equals(object obj)
Parameters
obj
Object
Returns
Equals(GeometryCollection)
Determines whether the specified object is equal to the current object
public bool Equals(GeometryCollection other)
Parameters
other
GeometryCollection
Returns
Equals(GeometryCollection, GeometryCollection)
Determines whether the specified object instances are considered equal
public bool Equals(GeometryCollection left, GeometryCollection right)
Parameters
left
GeometryCollection
right
GeometryCollection
Returns
GetHashCode()
Returns the hash code for this instance
public int GetHashCode()
Returns
GetHashCode(GeometryCollection)
Returns the hash code for the specified object
public int GetHashCode(GeometryCollection other)
Parameters
other
GeometryCollection