Class GeometryCollection
Basic implementation of GeometryCollection
.
Inheritance
GeometryCollection
Assembly: NetTopologySuite.dll
Syntax
[Serializable]
public class GeometryCollection : Geometry, IComparable, IComparable<Geometry>, IEnumerable<Geometry>, IEnumerable
Constructors
|
Improve this Doc
View Source
GeometryCollection(Geometry[])
Declaration
public GeometryCollection(Geometry[] geometries)
Parameters
Type |
Name |
Description |
Geometry[] |
geometries |
The Geometry s for this GeometryCollection ,
or null or an empty array to create the empty
point. Elements may be empty Geometry s,
but not null s.
|
|
Improve this Doc
View Source
GeometryCollection(Geometry[], GeometryFactory)
Declaration
public GeometryCollection(Geometry[] geometries, GeometryFactory factory)
Parameters
Type |
Name |
Description |
Geometry[] |
geometries |
The Geometry s for this GeometryCollection ,
or null or an empty array to create the empty
point. Elements may be empty Geometry s,
but not null s.
|
GeometryFactory |
factory |
|
Fields
|
Improve this Doc
View Source
Empty
Represents an empty GeometryCollection
.
Declaration
public static readonly GeometryCollection Empty
Field Value
Properties
|
Improve this Doc
View Source
Area
Returns the area of this GeometryCollection
.
Declaration
public override double Area { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Boundary
Declaration
public override Geometry Boundary { get; }
Property Value
Overrides
|
Improve this Doc
View Source
BoundaryDimension
Declaration
public override Dimension BoundaryDimension { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Coordinate
Declaration
public override Coordinate Coordinate { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Coordinates
Collects all coordinates of all subgeometries into an Array.
Note that while changes to the coordinate objects themselves
may modify the Geometries in place, the returned Array as such
is only a temporary container which is not synchronized back.
Declaration
public override Coordinate[] Coordinates { get; }
Property Value
Type |
Description |
Coordinate[] |
The collected coordinates.
|
Overrides
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
|
Improve this Doc
View Source
Dimension
Declaration
public override Dimension Dimension { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Geometries
Declaration
public Geometry[] Geometries { get; protected set; }
Property Value
|
Improve this Doc
View Source
GeometryType
Returns the name of this object's interface.
Declaration
public override string GeometryType { get; }
Property Value
Type |
Description |
String |
"GeometryCollection"
|
Overrides
|
Improve this Doc
View Source
IsEmpty
Declaration
public override bool IsEmpty { get; }
Property Value
Overrides
|
Improve this Doc
View Source
IsHomogeneous
Return true
if all features in collection are of the same type.
Declaration
public bool IsHomogeneous { get; }
Property Value
|
Improve this Doc
View Source
Item[Int32]
Returns the iTh element in the collection.
Declaration
public Geometry this[int i] { get; }
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Property Value
|
Improve this Doc
View Source
Length
Returns the length of this GeometryCollection
.
Declaration
public override double Length { get; }
Property Value
Overrides
|
Improve this Doc
View Source
NumGeometries
Declaration
public override int NumGeometries { get; }
Property Value
Overrides
|
Improve this Doc
View Source
NumPoints
Declaration
public override int NumPoints { get; }
Property Value
Overrides
|
Improve this Doc
View Source
OgcGeometryType
Gets the OGC geometry type
Declaration
public override OgcGeometryType OgcGeometryType { get; }
Property Value
Overrides
|
Improve this Doc
View Source
SortIndex
Gets a value to sort the geometry
Declaration
protected override Geometry.SortIndexValue SortIndex { get; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
Apply(ICoordinateFilter)
Declaration
public override void Apply(ICoordinateFilter filter)
Parameters
Overrides
|
Improve this Doc
View Source
Apply(ICoordinateSequenceFilter)
Declaration
public override void Apply(ICoordinateSequenceFilter filter)
Parameters
Overrides
|
Improve this Doc
View Source
Apply(IEntireCoordinateSequenceFilter)
Declaration
public override void Apply(IEntireCoordinateSequenceFilter filter)
Parameters
Overrides
|
Improve this Doc
View Source
Apply(IGeometryComponentFilter)
Declaration
public override void Apply(IGeometryComponentFilter filter)
Parameters
Overrides
|
Improve this Doc
View Source
Apply(IGeometryFilter)
Declaration
public override void Apply(IGeometryFilter filter)
Parameters
Overrides
|
Improve this Doc
View Source
CompareToSameClass(Object)
Declaration
protected override int CompareToSameClass(object o)
Parameters
Type |
Name |
Description |
Object |
o |
|
Returns
Overrides
|
Improve this Doc
View Source
CompareToSameClass(Object, IComparer<CoordinateSequence>)
Declaration
protected override int CompareToSameClass(object o, IComparer<CoordinateSequence> comp)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
ComputeEnvelopeInternal()
Declaration
protected override Envelope ComputeEnvelopeInternal()
Returns
Overrides
|
Improve this Doc
View Source
CopyInternal()
Declaration
protected override Geometry CopyInternal()
Returns
Overrides
|
Improve this Doc
View Source
EqualsExact(Geometry, Double)
Declaration
public override bool EqualsExact(Geometry other, double tolerance)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator<Geometry> GetEnumerator()
Returns
|
Improve this Doc
View Source
GetGeometryN(Int32)
Declaration
public override Geometry GetGeometryN(int n)
Parameters
Type |
Name |
Description |
Int32 |
n |
|
Returns
Overrides
|
Improve this Doc
View Source
GetOrdinates(Ordinate)
Declaration
public override double[] GetOrdinates(Ordinate ordinate)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
Normalize()
Declaration
public override void Normalize()
Overrides
|
Improve this Doc
View Source
Reverse()
Creates a GeometryCollection with
every component reversed.
The order of the components in the collection are not reversed.
Declaration
[Obsolete("Call Geometry.Reverse()")]
public override Geometry Reverse()
Returns
Overrides
|
Improve this Doc
View Source
ReverseInternal()
The actual implementation of the Reverse() function for GeometryCollection
s.
Declaration
protected override Geometry ReverseInternal()
Returns
Type |
Description |
Geometry |
A reversed geometry
|
Overrides
Explicit Interface Implementations
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Implements