Class GeometryCollectionShape
[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
stringThis 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
Methods
BufferCore(double, int, BufferCapType, GeographyUnit, DistanceUnit)
protected override MultipolygonShape BufferCore(double distance, int quadrantSegments, BufferCapType bufferCapType, GeographyUnit shapeUnit, DistanceUnit distanceUnit)
Parameters
distance
doublequadrantSegments
intbufferCapType
BufferCapTypeshapeUnit
GeographyUnitdistanceUnit
DistanceUnit
Returns
GetBoundingBoxCore()
protected override RectangleShape GetBoundingBoxCore()
Returns
GetClosestPointToCore(BaseShape, GeographyUnit)
protected override PointShape GetClosestPointToCore(BaseShape targetShape, GeographyUnit shapeUnit)
Parameters
targetShape
BaseShapeshapeUnit
GeographyUnit
Returns
GetConvexHull()
public RingShape GetConvexHull()
Returns
GetConvexHullCore()
protected virtual RingShape GetConvexHullCore()
Returns
GetCrossingCore(BaseShape)
protected override MultipointShape GetCrossingCore(BaseShape targetShape)
Parameters
targetShape
BaseShape
Returns
GetDifference(BaseShape)
public GeometryCollectionShape GetDifference(BaseShape targetShape)
Parameters
targetShape
BaseShape
Returns
GetDifferenceCore(BaseShape)
protected virtual GeometryCollectionShape GetDifferenceCore(BaseShape targetShape)
Parameters
targetShape
BaseShape
Returns
GetDistanceToCore(BaseShape, GeographyUnit, DistanceUnit)
protected override double GetDistanceToCore(BaseShape targetShape, GeographyUnit shapeUnit, DistanceUnit distanceUnit)
Parameters
targetShape
BaseShapeshapeUnit
GeographyUnitdistanceUnit
DistanceUnit
Returns
GetIntersection(BaseShape)
public GeometryCollectionShape GetIntersection(BaseShape targetShape)
Parameters
targetShape
BaseShape
Returns
GetIntersectionCore(BaseShape)
protected virtual GeometryCollectionShape GetIntersectionCore(BaseShape targetShape)
Parameters
targetShape
BaseShape
Returns
GetShortestLineToCore(BaseShape, GeographyUnit)
protected override MultilineShape GetShortestLineToCore(BaseShape targetShape, GeographyUnit shapeUnit)
Parameters
targetShape
BaseShapeshapeUnit
GeographyUnit
Returns
GetSymmetricalDifference(BaseShape)
public GeometryCollectionShape GetSymmetricalDifference(BaseShape targetShape)
Parameters
targetShape
BaseShape
Returns
GetSymmetricalDifferenceCore(BaseShape)
protected virtual GeometryCollectionShape GetSymmetricalDifferenceCore(BaseShape targetShape)
Parameters
targetShape
BaseShape
Returns
GetWellKnownBinaryCore(RingOrder, WkbByteOrder)
protected override byte[] GetWellKnownBinaryCore(RingOrder outerRingOrder, WkbByteOrder byteOrder)
Parameters
outerRingOrder
RingOrderbyteOrder
WkbByteOrder
Returns
- byte[]
GetWellKnownTextCore(RingOrder)
protected override string GetWellKnownTextCore(RingOrder outerRingOrder)
Parameters
outerRingOrder
RingOrder
Returns
GetWellKnownTypeCore()
protected override WellKnownType GetWellKnownTypeCore()
Returns
IntersectsCore(BaseShape)
protected override bool IntersectsCore(BaseShape targetShape)
Parameters
targetShape
BaseShape
Returns
IsDisjointedCore(BaseShape)
protected override bool IsDisjointedCore(BaseShape targetShape)
Parameters
targetShape
BaseShape
Returns
IsWithinCore(BaseShape)
protected override bool IsWithinCore(BaseShape targetShape)
Parameters
targetShape
BaseShape
Returns
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
doublesimplificationType
SimplificationType
Returns
Simplify(GeographyUnit, double, DistanceUnit, SimplificationType)
public GeometryCollectionShape Simplify(GeographyUnit shapeUnit, double tolerance, DistanceUnit toleranceUnit, SimplificationType simplificationType)
Parameters
shapeUnit
GeographyUnittolerance
doubletoleranceUnit
DistanceUnitsimplificationType
SimplificationType
Returns
SimplifyCore(double, SimplificationType)
protected virtual GeometryCollectionShape SimplifyCore(double tolerance, SimplificationType simplificationType)
Parameters
tolerance
doublesimplificationType
SimplificationType
Returns
TouchesCore(BaseShape)
protected override bool TouchesCore(BaseShape targetShape)
Parameters
targetShape
BaseShape
Returns
Union(IEnumerable<BaseShape>)
public GeometryCollectionShape Union(IEnumerable<BaseShape> targetShape)
Parameters
targetShape
IEnumerable<BaseShape>
Returns
Union(BaseShape)
public GeometryCollectionShape Union(BaseShape targetShape)
Parameters
targetShape
BaseShape
Returns
UnionCore(IEnumerable<BaseShape>)
protected virtual GeometryCollectionShape UnionCore(IEnumerable<BaseShape> targetShape)
Parameters
targetShape
IEnumerable<BaseShape>
Returns
ValidateCore(ShapeValidationMode)
protected override ShapeValidationResult ValidateCore(ShapeValidationMode validationMode)
Parameters
validationMode
ShapeValidationMode