Table of Contents

Class GeometryCollectionShape

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll
[TypeConverter(typeof(BaseShapeTypeConverter))]
public class GeometryCollectionShape : BaseShape
Inheritance
GeometryCollectionShape
Inherited Members

Constructors

GeometryCollectionShape()

This constructor creates the GeometryCollectionShape.

public GeometryCollectionShape()

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.

Remarks

None

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.

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.

Remarks

None

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.

Properties

Shapes

public Collection<BaseShape> Shapes { get; }

Property Value

Collection<BaseShape>

Methods

BufferCore(double, int, BufferCapType, GeographyUnit, DistanceUnit)

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

Parameters

distance double
quadrantSegments int
bufferCapType BufferCapType
shapeUnit GeographyUnit
distanceUnit DistanceUnit

Returns

MultipolygonShape

GetBoundingBoxCore()

protected override RectangleShape GetBoundingBoxCore()

Returns

RectangleShape

GetClosestPointToCore(BaseShape, GeographyUnit)

protected override PointShape GetClosestPointToCore(BaseShape targetShape, GeographyUnit shapeUnit)

Parameters

targetShape BaseShape
shapeUnit GeographyUnit

Returns

PointShape

GetConvexHull()

public RingShape GetConvexHull()

Returns

RingShape

GetConvexHullCore()

protected virtual RingShape GetConvexHullCore()

Returns

RingShape

GetCrossingCore(BaseShape)

protected override MultipointShape GetCrossingCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

MultipointShape

GetDifference(BaseShape)

public GeometryCollectionShape GetDifference(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

GeometryCollectionShape

GetDifferenceCore(BaseShape)

protected virtual GeometryCollectionShape GetDifferenceCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

GeometryCollectionShape

GetDistanceToCore(BaseShape, GeographyUnit, DistanceUnit)

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

Parameters

targetShape BaseShape
shapeUnit GeographyUnit
distanceUnit DistanceUnit

Returns

double

GetIntersection(BaseShape)

public GeometryCollectionShape GetIntersection(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

GeometryCollectionShape

GetIntersectionCore(BaseShape)

protected virtual GeometryCollectionShape GetIntersectionCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

GeometryCollectionShape

GetShortestLineToCore(BaseShape, GeographyUnit)

protected override MultilineShape GetShortestLineToCore(BaseShape targetShape, GeographyUnit shapeUnit)

Parameters

targetShape BaseShape
shapeUnit GeographyUnit

Returns

MultilineShape

GetSymmetricalDifference(BaseShape)

public GeometryCollectionShape GetSymmetricalDifference(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

GeometryCollectionShape

GetSymmetricalDifferenceCore(BaseShape)

protected virtual GeometryCollectionShape GetSymmetricalDifferenceCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

GeometryCollectionShape

GetWellKnownBinaryCore(RingOrder, WkbByteOrder)

protected override byte[] GetWellKnownBinaryCore(RingOrder outerRingOrder, WkbByteOrder byteOrder)

Parameters

outerRingOrder RingOrder
byteOrder WkbByteOrder

Returns

byte[]

GetWellKnownTextCore(RingOrder)

protected override string GetWellKnownTextCore(RingOrder outerRingOrder)

Parameters

outerRingOrder RingOrder

Returns

string

GetWellKnownTypeCore()

protected override WellKnownType GetWellKnownTypeCore()

Returns

WellKnownType

IntersectsCore(BaseShape)

protected override bool IntersectsCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

bool

IsDisjointedCore(BaseShape)

protected override bool IsDisjointedCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

bool

IsWithinCore(BaseShape)

protected override bool IsWithinCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

bool

LoadFromWellKnownDataCore(byte[])

protected override void LoadFromWellKnownDataCore(byte[] wellKnownBinary)

Parameters

wellKnownBinary byte[]

LoadFromWellKnownDataCore(string)

protected override void LoadFromWellKnownDataCore(string wellKnownText)

Parameters

wellKnownText string

Simplify(double, SimplificationType)

public GeometryCollectionShape Simplify(double tolerance, SimplificationType simplificationType)

Parameters

tolerance double
simplificationType SimplificationType

Returns

GeometryCollectionShape

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

SimplifyCore(double, SimplificationType)

protected virtual GeometryCollectionShape SimplifyCore(double tolerance, SimplificationType simplificationType)

Parameters

tolerance double
simplificationType SimplificationType

Returns

GeometryCollectionShape

TouchesCore(BaseShape)

protected override bool TouchesCore(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

bool

Union(IEnumerable<BaseShape>)

public GeometryCollectionShape Union(IEnumerable<BaseShape> targetShape)

Parameters

targetShape IEnumerable<BaseShape>

Returns

GeometryCollectionShape

Union(BaseShape)

public GeometryCollectionShape Union(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

GeometryCollectionShape

UnionCore(IEnumerable<BaseShape>)

protected virtual GeometryCollectionShape UnionCore(IEnumerable<BaseShape> targetShape)

Parameters

targetShape IEnumerable<BaseShape>

Returns

GeometryCollectionShape

ValidateCore(ShapeValidationMode)

protected override ShapeValidationResult ValidateCore(ShapeValidationMode validationMode)

Parameters

validationMode ShapeValidationMode

Returns

ShapeValidationResult