GeometryCollection Class

A GeometryCollection is a Geometry that is a collection of one or more geometries.
Inheritance Hierarchy

Namespace:  Aspose.Gis.Geometries
Assembly:  Aspose.GIS (in Aspose.GIS.dll) Version: 20.3.0.0 (20.03)
Syntax
public class GeometryCollection : Geometry, 
	IGeometryCollection, IGeometry, IEnumerable<IGeometry>, IEnumerable, 
	IEquatable<IGeometryCollection>

The GeometryCollection type exposes the following members.

Constructors
  NameDescription
Public methodGeometryCollection
Initializes a new instance of the GeometryCollection class.
Properties
  NameDescription
Public propertyCoordinateDimension
Gets the number of coordinate dimensions for this Geometry.
(Inherited from Geometry.)
Public propertyCount
Gets the number of geometries in this collection.
Public propertyDimension
Gets the topological dimension of this Geometry.
(Overrides GeometryDimension.)
Public propertyGeometryType
Gets the type of the geometry.
(Overrides GeometryGeometryType.)
Public propertyHasCurveGeometry
Gets a value indicating whether this geometry is or contains curve (not linear) geometry.
(Overrides GeometryHasCurveGeometry.)
Public propertyHasM
Gets a value indicating whether this instance has M coordinate.
(Overrides GeometryHasM.)
Public propertyHasZ
Gets a value indicating whether this instance has Z coordinate.
(Overrides GeometryHasZ.)
Public propertyIsEmpty
Gets a value indicating whether this instance is empty.
(Overrides GeometryIsEmpty.)
Public propertyIsSimple
Gets a value indicating whether this instance is simple from SFA point of view.
(Inherited from Geometry.)
Public propertyIsValid
Gets a value indicating whether this instance is valid.
(Inherited from Geometry.)
Public propertyItem
Gets a IGeometry at the specified index.
Public propertySpatialReferenceSystem
Gets SpatialReferenceSystem of this instance. This property can be , is SpatialReferenceSystem is unknown. Assigning new SpatialReferenceSystem will not perform any coordinate transformation, only reference will change.
(Overrides GeometrySpatialReferenceSystem.)
Methods
  NameDescription
Public methodAdd
Adds the specified geometry to the collection.
Public methodAddRange
Adds the specified geometries to the collection.
Public methodAsBinary
Translates this geometry to its Well-Known Binary representation.
(Inherited from Geometry.)
Public methodAsBinary(WkbVariant)
Translates this geometry to its Well-Known Binary representation.
(Inherited from Geometry.)
Public methodAsText
Translates this geometry to its Well-Known Text representation.
(Inherited from Geometry.)
Public methodAsText(WktVariant)
Translates this geometry to its Well-Known Text representation.
(Inherited from Geometry.)
Public methodAsText(WktVariant, NumericFormat)
Translates this geometry to its Well-Known Text representation.
(Inherited from Geometry.)
Public methodClone
Clones this instance.
(Overrides GeometryClone.)
Public methodCoveredBy
Determines whether this geometry is covered by a specified geometry.
(Inherited from Geometry.)
Public methodCovers
Determines whether this geometry covers a specified geometry.
(Inherited from Geometry.)
Public methodCrosses
Determines if this geometry and a specified geometry cross.
(Inherited from Geometry.)
Public methodDifference
Subtracts a specified geometry from this geometry.
(Inherited from Geometry.)
Public methodDisjoint
Determines if this geometry is disjoint from a specified geometry.
(Inherited from Geometry.)
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(IGeometryCollection)
Indicates whether the current object is equal to another object of the same type.
Protected methodFinalize (Inherited from Object.)
Public methodGetArea
Computes the area of this geometry.
(Inherited from Geometry.)
Public methodGetBuffer
Computes a buffer region around this geometry.
(Inherited from Geometry.)
Public methodGetCentroid
Computes the centroid of this geometry.
(Inherited from Geometry.)
Public methodGetConvexHull
Computes the convex hull of this geometry.
(Inherited from Geometry.)
Public methodGetDistanceTo
Computes the minimum distance between this geometry and a specified geometry.
(Inherited from Geometry.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetExtent
Computes and returns a bounding extent of this geometry.
(Inherited from Geometry.)
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Public methodGetLength
Computes the length of this geometry.
(Inherited from Geometry.)
Public methodGetPointOnSurface
Finds a point that is guaranteed to be on one of the surfaces in this collection.
Public methodGetType (Inherited from Object.)
Public methodIntersection
Builds an intersection between this geometry and a specified geometry.
(Inherited from Geometry.)
Public methodIntersects(Extent)
Determines whether this geometry intersects a specified extent.
(Inherited from Geometry.)
Public methodIntersects(IGeometry)
Determines if this geometry and a specified geometry intersects.
(Inherited from Geometry.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodOverlaps
Determines whether this geometry overlap with a specified geometry.
(Inherited from Geometry.)
Public methodCode exampleRelate
Determines if DE-9IM intersection matrix of this geometry and a specified geometry matches provided pattern.
(Inherited from Geometry.)
Public methodRemoveAt
Removes the specified geometry from the collection.
Public methodRoundM
Rounds M coordinate to a specified number of fractional digits.
(Inherited from Geometry.)
Public methodRoundXY
Rounds X and Y coordinates to a specified number of fractional digits.
(Inherited from Geometry.)
Public methodRoundZ
Rounds Z coordinate to a specified number of fractional digits.
(Inherited from Geometry.)
Public methodSetEmpty
Makes this Geometry empty.
(Overrides GeometrySetEmpty.)
Public methodSpatiallyContains
Determines whether this geometry spatially contains a specified geometry.
(Inherited from Geometry.)
Public methodSpatiallyEquals
Determines if this geometry spatially equal to a specified geometry.
(Inherited from Geometry.)
Public methodSymDifference
Builds a symmetric difference between this geometry and a specified geometry.
(Inherited from Geometry.)
Public methodToEditable
Gets an editable copy of this geometry.
Public methodToLinearGeometry
Gets approximate or equivalent non-curve version of this geometry using the default tolerance.
Public methodToLinearGeometry(Double)
Gets approximate or equivalent non-curve version of this geometry using the specified tolerance.
Public methodToString (Inherited from Object.)
Public methodTouches
Determines if this geometry and a specified geometry touch.
(Inherited from Geometry.)
Public methodUnion
Unites this geometry and a specified geometry.
(Inherited from Geometry.)
Public methodWithin(Extent)
Determines whether this geometry is within a specified extent.
(Inherited from Geometry.)
Public methodWithin(IGeometry)
Determines whether this geometry is within a specified geometry.
(Inherited from Geometry.)
Operators
  NameDescription
Public operatorStatic memberEquality
Implements the operator ==.
Public operatorStatic memberInequality
Implements the operator !=.
See Also