GeometryCollectionShape¶
Namespace: ThinkGeo.Core
Represents the GeometryCollectionShape class.
public class GeometryCollectionShape : BaseShape
Inheritance object → BaseShape → GeometryCollectionShape
Properties¶
Shapes¶
Gets or sets the Shapes.
public Collection<BaseShape> Shapes { get; }
Property Value¶
Id¶
The id of the shape.
public string Id { get; set; }
Property Value¶
Tag¶
The tag of the shape.
public object Tag { get; set; }
Property Value¶
Constructors¶
GeometryCollectionShape()¶
This constructor creates the GeometryCollectionShape.
public GeometryCollectionShape()
Remarks:
None
GeometryCollectionShape(IEnumerable<BaseShape>)¶
public GeometryCollectionShape(IEnumerable<BaseShape> baseShapes)
Parameters¶
baseShapes IEnumerable<BaseShape>
Exceptions¶
ArgumentException
If you pass in any baseShapes which are invalid, we will throw an ArgumentException.
ArgumentNullException
If you pass a null as the baseShapes, we will throw an ArgumentNullException.
GeometryCollectionShape(IEnumerable<Feature>)¶
Initializes a new instance of the GeometryCollectionShape class.
public GeometryCollectionShape(IEnumerable<Feature> features)
Parameters¶
features IEnumerable<Feature>
GeometryCollectionShape(string)¶
This constructor creates the GeometryCollectionShape.
public GeometryCollectionShape(string wellKnownText)
Parameters¶
wellKnownText string
This parameter is the well-known text used to build the shape.
Exceptions¶
ArgumentException
Passing invalid well-known text in the wellKnownText parameter will throw an ArgumentException.
ArgumentNullException
Passing a null as the wellKnownText parameter will throw an ArgumentNullException.
Remarks:
None
GeometryCollectionShape(Byte[])¶
This constructor creates the GeometryCollectionShape.
public GeometryCollectionShape(Byte[] wellKnownBinary)
Parameters¶
wellKnownBinary Byte[]
This parameter is the well-known binary used to build the shape.
Exceptions¶
ArgumentException
Passing invalid well-known binary in the bytes parameter will throw an ArgumentException.
ArgumentNullException
Passing a null as the bytes parameter will throw an ArgumentNullException.
Remarks:
None
Methods¶
LoadFromWellKnownDataCore(Byte[])¶
Provides the overridable implementation that performs load from well known data.
protected void LoadFromWellKnownDataCore(Byte[] wellKnownBinary)
Parameters¶
wellKnownBinary Byte[]
The well known binary.
Returns¶
LoadFromWellKnownDataCore(string)¶
Provides the overridable implementation that performs load from well known data.
protected void LoadFromWellKnownDataCore(string wellKnownText)
Parameters¶
wellKnownText string
The well known text.
Returns¶
GetWellKnownTextCore(RingOrder)¶
Provides the overridable implementation that returns well known text for .
protected string GetWellKnownTextCore(RingOrder outerRingOrder)
Parameters¶
outerRingOrder RingOrder
The outer ring order.
Returns¶
string
A string result.
GetWellKnownBinaryCore(RingOrder, WkbByteOrder)¶
Provides the overridable implementation that returns well known binary for the specified parameters.
protected Byte[] GetWellKnownBinaryCore(RingOrder outerRingOrder, WkbByteOrder byteOrder)
Parameters¶
outerRingOrder RingOrder
The outer ring order.
byteOrder WkbByteOrder
The byte order.
Returns¶
Byte[]
An array containing the requested values.
GetWellKnownTypeCore()¶
Provides the overridable implementation that returns well known type.
protected WellKnownType GetWellKnownTypeCore()
Returns¶
WellKnownType
The result of the operation.
ValidateCore(ShapeValidationMode)¶
Provides the overridable implementation that performs validate.
protected ShapeValidationResult ValidateCore(ShapeValidationMode validationMode)
Parameters¶
validationMode ShapeValidationMode
The validation mode.
Returns¶
ShapeValidationResult
The result of the operation.
GetCrossingCore(BaseShape)¶
Provides the overridable implementation that returns crossing for .
protected MultipointShape GetCrossingCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
The target shape.
Returns¶
MultipointShape
The result of the operation.
GetBoundingBoxCore()¶
Provides the overridable implementation that returns the bounding box that encloses the relevant geometry.
protected RectangleShape GetBoundingBoxCore()
Returns¶
RectangleShape
The result of the operation.
GetDistanceToCore(BaseShape, GeographyUnit, DistanceUnit)¶
Provides the overridable implementation that returns distance to for the specified parameters.
protected double GetDistanceToCore(BaseShape targetShape, GeographyUnit shapeUnit, DistanceUnit distanceUnit)
Parameters¶
targetShape BaseShape
The target shape.
shapeUnit GeographyUnit
The shape unit.
distanceUnit DistanceUnit
The distance unit.
Returns¶
double
The result of the operation.
GetClosestPointToCore(BaseShape, GeographyUnit)¶
Provides the overridable implementation that returns closest point to for the specified parameters.
protected PointShape GetClosestPointToCore(BaseShape targetShape, GeographyUnit shapeUnit)
Parameters¶
targetShape BaseShape
The target shape.
shapeUnit GeographyUnit
The shape unit.
Returns¶
PointShape
The result of the operation.
GetShortestLineToCore(BaseShape, GeographyUnit)¶
Provides the overridable implementation that returns shortest line to for the specified parameters.
protected MultilineShape GetShortestLineToCore(BaseShape targetShape, GeographyUnit shapeUnit)
Parameters¶
targetShape BaseShape
The target shape.
shapeUnit GeographyUnit
The shape unit.
Returns¶
MultilineShape
The result of the operation.
BufferCore(double, int, BufferCapType, GeographyUnit, DistanceUnit)¶
protected MultipolygonShape BufferCore(double distance, int quadrantSegments, BufferCapType bufferCapType, GeographyUnit shapeUnit, DistanceUnit distanceUnit)
Parameters¶
distance double
quadrantSegments int
bufferCapType BufferCapType
shapeUnit GeographyUnit
distanceUnit DistanceUnit
Returns¶
IsDisjointedCore(BaseShape)¶
protected bool IsDisjointedCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
Returns¶
IntersectsCore(BaseShape)¶
Provides the overridable implementation that performs intersects.
protected bool IntersectsCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
The target shape.
Returns¶
bool
True if the condition is met; otherwise, false.
TouchesCore(BaseShape)¶
Provides the overridable implementation that converts this instance to a bool.
protected bool TouchesCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
The target shape.
Returns¶
bool
True if the condition is met; otherwise, false.
IsWithinCore(BaseShape)¶
Provides the overridable implementation that performs is within.
protected bool IsWithinCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
The target shape.
Returns¶
bool
True if the condition is met; otherwise, false.
GetIntersection(BaseShape)¶
Returns intersection for .
public GeometryCollectionShape GetIntersection(BaseShape targetShape)
Parameters¶
targetShape BaseShape
The target shape.
Returns¶
GeometryCollectionShape
The result of the operation.
GetIntersectionCore(BaseShape)¶
Provides the overridable implementation that returns intersection for .
protected GeometryCollectionShape GetIntersectionCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
The target shape.
Returns¶
GeometryCollectionShape
The result of the operation.
Union(BaseShape)¶
Performs union.
public GeometryCollectionShape Union(BaseShape targetShape)
Parameters¶
targetShape BaseShape
The target shape.
Returns¶
GeometryCollectionShape
The result of the operation.
Union(IEnumerable<BaseShape>)¶
Performs union.
public GeometryCollectionShape Union(IEnumerable<BaseShape> targetShape)
Parameters¶
targetShape IEnumerable<BaseShape>
The target shape.
Returns¶
GeometryCollectionShape
The result of the operation.
UnionCore(IEnumerable<BaseShape>)¶
Provides the overridable implementation that performs union.
protected GeometryCollectionShape UnionCore(IEnumerable<BaseShape> targetShape)
Parameters¶
targetShape IEnumerable<BaseShape>
The target shape.
Returns¶
GeometryCollectionShape
The result of the operation.
sRw=(IEnumerable<BaseShape>)¶
internal static GeometryCollectionShape sRw=(IEnumerable<BaseShape> shapes)
Parameters¶
shapes IEnumerable<BaseShape>
Returns¶
GetDifference(BaseShape)¶
Returns difference for .
public GeometryCollectionShape GetDifference(BaseShape targetShape)
Parameters¶
targetShape BaseShape
The target shape.
Returns¶
GeometryCollectionShape
The result of the operation.
GetDifferenceCore(BaseShape)¶
Provides the overridable implementation that returns difference for .
protected GeometryCollectionShape GetDifferenceCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
The target shape.
Returns¶
GeometryCollectionShape
The result of the operation.
GetSymmetricalDifference(BaseShape)¶
Returns symmetrical difference for .
public GeometryCollectionShape GetSymmetricalDifference(BaseShape targetShape)
Parameters¶
targetShape BaseShape
The target shape.
Returns¶
GeometryCollectionShape
The result of the operation.
GetSymmetricalDifferenceCore(BaseShape)¶
Provides the overridable implementation that returns symmetrical difference for .
protected GeometryCollectionShape GetSymmetricalDifferenceCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
The target shape.
Returns¶
GeometryCollectionShape
The result of the operation.
GetConvexHull()¶
Returns convex hull.
public RingShape GetConvexHull()
Returns¶
RingShape
The result of the operation.
GetConvexHullCore()¶
Provides the overridable implementation that returns convex hull.
protected RingShape GetConvexHullCore()
Returns¶
RingShape
The result of the operation.
Simplify(GeographyUnit, double, DistanceUnit, SimplificationType)¶
Performs simplify.
public GeometryCollectionShape Simplify(GeographyUnit shapeUnit, double tolerance, DistanceUnit toleranceUnit, SimplificationType simplificationType)
Parameters¶
shapeUnit GeographyUnit
The shape unit.
tolerance double
The tolerance.
toleranceUnit DistanceUnit
The tolerance unit.
simplificationType SimplificationType
The simplification type.
Returns¶
GeometryCollectionShape
The result of the operation.
Simplify(double, SimplificationType)¶
Performs simplify.
public GeometryCollectionShape Simplify(double tolerance, SimplificationType simplificationType)
Parameters¶
tolerance double
The tolerance.
simplificationType SimplificationType
The simplification type.
Returns¶
GeometryCollectionShape
The result of the operation.
SimplifyCore(double, SimplificationType)¶
Provides the overridable implementation that performs simplify.
protected GeometryCollectionShape SimplifyCore(double tolerance, SimplificationType simplificationType)
Parameters¶
tolerance double
The tolerance.
simplificationType SimplificationType
The simplification type.
Returns¶
GeometryCollectionShape
The result of the operation.