GeometryCollectionShape¶
Namespace: ThinkGeo.Core
public class GeometryCollectionShape : BaseShape
Inheritance Object → BaseShape → GeometryCollectionShape
Properties¶
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>)¶
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¶
GetWellKnownBinaryCore(RingOrder, WkbByteOrder)¶
protected Byte[] GetWellKnownBinaryCore(RingOrder outerRingOrder, WkbByteOrder byteOrder)
Parameters¶
outerRingOrder RingOrder
byteOrder WkbByteOrder
Returns¶
GetWellKnownTypeCore()¶
protected WellKnownType GetWellKnownTypeCore()
Returns¶
ValidateCore(ShapeValidationMode)¶
protected ShapeValidationResult ValidateCore(ShapeValidationMode validationMode)
Parameters¶
validationMode ShapeValidationMode
Returns¶
GetCrossingCore(BaseShape)¶
protected MultipointShape GetCrossingCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
Returns¶
GetBoundingBoxCore()¶
protected RectangleShape GetBoundingBoxCore()
Returns¶
GetDistanceToCore(BaseShape, GeographyUnit, DistanceUnit)¶
protected double GetDistanceToCore(BaseShape targetShape, GeographyUnit shapeUnit, DistanceUnit distanceUnit)
Parameters¶
targetShape BaseShape
shapeUnit GeographyUnit
distanceUnit DistanceUnit
Returns¶
GetClosestPointToCore(BaseShape, GeographyUnit)¶
protected PointShape GetClosestPointToCore(BaseShape targetShape, GeographyUnit shapeUnit)
Parameters¶
targetShape BaseShape
shapeUnit GeographyUnit
Returns¶
GetShortestLineToCore(BaseShape, GeographyUnit)¶
protected MultilineShape GetShortestLineToCore(BaseShape targetShape, GeographyUnit shapeUnit)
Parameters¶
targetShape BaseShape
shapeUnit GeographyUnit
Returns¶
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¶
IsDisjointedCore(BaseShape)¶
protected bool IsDisjointedCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
Returns¶
IntersectsCore(BaseShape)¶
protected bool IntersectsCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
Returns¶
TouchesCore(BaseShape)¶
protected bool TouchesCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
Returns¶
IsWithinCore(BaseShape)¶
protected bool IsWithinCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
Returns¶
GetIntersection(BaseShape)¶
public GeometryCollectionShape GetIntersection(BaseShape targetShape)
Parameters¶
targetShape BaseShape
Returns¶
GetIntersectionCore(BaseShape)¶
protected GeometryCollectionShape GetIntersectionCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
Returns¶
Union(BaseShape)¶
public GeometryCollectionShape Union(BaseShape targetShape)
Parameters¶
targetShape BaseShape
Returns¶
Union(IEnumerable<BaseShape>)¶
public GeometryCollectionShape Union(IEnumerable<BaseShape> targetShape)
Parameters¶
targetShape IEnumerable<BaseShape>
Returns¶
UnionCore(IEnumerable<BaseShape>)¶
protected GeometryCollectionShape UnionCore(IEnumerable<BaseShape> targetShape)
Parameters¶
targetShape IEnumerable<BaseShape>
Returns¶
UnionIncludeGeometryCollections(IEnumerable<BaseShape>)¶
internal static GeometryCollectionShape UnionIncludeGeometryCollections(IEnumerable<BaseShape> shapes)
Parameters¶
shapes IEnumerable<BaseShape>
Returns¶
GetDifference(BaseShape)¶
public GeometryCollectionShape GetDifference(BaseShape targetShape)
Parameters¶
targetShape BaseShape
Returns¶
GetDifferenceCore(BaseShape)¶
protected GeometryCollectionShape GetDifferenceCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
Returns¶
GetSymmetricalDifference(BaseShape)¶
public GeometryCollectionShape GetSymmetricalDifference(BaseShape targetShape)
Parameters¶
targetShape BaseShape
Returns¶
GetSymmetricalDifferenceCore(BaseShape)¶
protected GeometryCollectionShape GetSymmetricalDifferenceCore(BaseShape targetShape)
Parameters¶
targetShape BaseShape
Returns¶
GetConvexHull()¶
public RingShape GetConvexHull()
Returns¶
GetConvexHullCore()¶
protected RingShape GetConvexHullCore()
Returns¶
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¶
Simplify(Double, SimplificationType)¶
public GeometryCollectionShape Simplify(double tolerance, SimplificationType simplificationType)
Parameters¶
tolerance Double
simplificationType SimplificationType
Returns¶
SimplifyCore(Double, SimplificationType)¶
protected GeometryCollectionShape SimplifyCore(double tolerance, SimplificationType simplificationType)
Parameters¶
tolerance Double
simplificationType SimplificationType