Skip to content

GeometryCollectionShape

Namespace: ThinkGeo.Core

public class GeometryCollectionShape : BaseShape

Inheritance ObjectBaseShapeGeometryCollectionShape

Properties

Shapes

public Collection<BaseShape> Shapes { get; }

Property Value

Collection<BaseShape>

Id

The id of the shape.

public string Id { get; set; }

Property Value

String

Tag

The tag of the shape.

public object Tag { get; set; }

Property Value

Object

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>)

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[])

protected void LoadFromWellKnownDataCore(Byte[] wellKnownBinary)

Parameters

wellKnownBinary Byte[]

LoadFromWellKnownDataCore(String)

protected void LoadFromWellKnownDataCore(string wellKnownText)

Parameters

wellKnownText String

GetWellKnownTextCore(RingOrder)

protected string GetWellKnownTextCore(RingOrder outerRingOrder)

Parameters

outerRingOrder RingOrder

Returns

String

GetWellKnownBinaryCore(RingOrder, WkbByteOrder)

protected Byte[] GetWellKnownBinaryCore(RingOrder outerRingOrder, WkbByteOrder byteOrder)

Parameters

outerRingOrder RingOrder

byteOrder WkbByteOrder

Returns

Byte[]

GetWellKnownTypeCore()

protected WellKnownType GetWellKnownTypeCore()

Returns

WellKnownType

ValidateCore(ShapeValidationMode)

protected ShapeValidationResult ValidateCore(ShapeValidationMode validationMode)

Parameters

validationMode ShapeValidationMode

Returns

ShapeValidationResult

GetCrossingCore(BaseShape)

protected MultipointShape GetCrossingCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

MultipointShape

GetBoundingBoxCore()

protected RectangleShape GetBoundingBoxCore()

Returns

RectangleShape

GetDistanceToCore(BaseShape, GeographyUnit, DistanceUnit)

protected double GetDistanceToCore(BaseShape targetShape, GeographyUnit shapeUnit, DistanceUnit distanceUnit)

Parameters

targetShape BaseShape

shapeUnit GeographyUnit

distanceUnit DistanceUnit

Returns

Double

GetClosestPointToCore(BaseShape, GeographyUnit)

protected PointShape GetClosestPointToCore(BaseShape targetShape, GeographyUnit shapeUnit)

Parameters

targetShape BaseShape

shapeUnit GeographyUnit

Returns

PointShape

GetShortestLineToCore(BaseShape, GeographyUnit)

protected MultilineShape GetShortestLineToCore(BaseShape targetShape, GeographyUnit shapeUnit)

Parameters

targetShape BaseShape

shapeUnit GeographyUnit

Returns

MultilineShape

BufferCore(Double, Int32, BufferCapType, GeographyUnit, DistanceUnit)

protected MultipolygonShape BufferCore(double distance, int quadrantSegments, BufferCapType bufferCapType, GeographyUnit shapeUnit, DistanceUnit distanceUnit)

Parameters

distance Double

quadrantSegments Int32

bufferCapType BufferCapType

shapeUnit GeographyUnit

distanceUnit DistanceUnit

Returns

MultipolygonShape

IsDisjointedCore(BaseShape)

protected bool IsDisjointedCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

Boolean

IntersectsCore(BaseShape)

protected bool IntersectsCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

Boolean

TouchesCore(BaseShape)

protected bool TouchesCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

Boolean

IsWithinCore(BaseShape)

protected bool IsWithinCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

Boolean

GetIntersection(BaseShape)

public GeometryCollectionShape GetIntersection(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

GeometryCollectionShape

GetIntersectionCore(BaseShape)

protected GeometryCollectionShape GetIntersectionCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

GeometryCollectionShape

Union(BaseShape)

public GeometryCollectionShape Union(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

GeometryCollectionShape

Union(IEnumerable<BaseShape>)

public GeometryCollectionShape Union(IEnumerable<BaseShape> targetShape)

Parameters

targetShape IEnumerable<BaseShape>

Returns

GeometryCollectionShape

UnionCore(IEnumerable<BaseShape>)

protected GeometryCollectionShape UnionCore(IEnumerable<BaseShape> targetShape)

Parameters

targetShape IEnumerable<BaseShape>

Returns

GeometryCollectionShape

UnionIncludeGeometryCollections(IEnumerable<BaseShape>)

internal static GeometryCollectionShape UnionIncludeGeometryCollections(IEnumerable<BaseShape> shapes)

Parameters

shapes IEnumerable<BaseShape>

Returns

GeometryCollectionShape

GetDifference(BaseShape)

public GeometryCollectionShape GetDifference(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

GeometryCollectionShape

GetDifferenceCore(BaseShape)

protected GeometryCollectionShape GetDifferenceCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

GeometryCollectionShape

GetSymmetricalDifference(BaseShape)

public GeometryCollectionShape GetSymmetricalDifference(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

GeometryCollectionShape

GetSymmetricalDifferenceCore(BaseShape)

protected GeometryCollectionShape GetSymmetricalDifferenceCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

GeometryCollectionShape

GetConvexHull()

public RingShape GetConvexHull()

Returns

RingShape

GetConvexHullCore()

protected RingShape GetConvexHullCore()

Returns

RingShape

Simplify(GeographyUnit, Double, DistanceUnit, SimplificationType)

public GeometryCollectionShape Simplify(GeographyUnit shapeUnit, double tolerance, DistanceUnit toleranceUnit, SimplificationType simplificationType)

Parameters

shapeUnit GeographyUnit

tolerance Double

toleranceUnit DistanceUnit

simplificationType SimplificationType

Returns

GeometryCollectionShape

Simplify(Double, SimplificationType)

public GeometryCollectionShape Simplify(double tolerance, SimplificationType simplificationType)

Parameters

tolerance Double

simplificationType SimplificationType

Returns

GeometryCollectionShape

SimplifyCore(Double, SimplificationType)

protected GeometryCollectionShape SimplifyCore(double tolerance, SimplificationType simplificationType)

Parameters

tolerance Double

simplificationType SimplificationType

Returns

GeometryCollectionShape