ThinkGeo.MapSuite.Shapes.MultilineShape
Inheritance Hierarchy
Members Summary
Public Constructors
MultilineShape()
Parameters
MultilineShape(IEnumerable<LineShape>)
Parameters
MultilineShape(String)
Parameters
MultilineShape(Byte[])
Parameters
Protected Constructors
Public Methods
Reorder(PointShape,Double)
An ordered Multiline means that we can walk though the MultiLine from the first point to the last point without any branches, and that each line's end points should be within the given tolerance. If using this overload, the unit of the Multiline and the tolerance are both defaulted to meters. Please use the other overload if you want to specify the units yourself.
Return Value
Parameters
Reorder(PointShape,Double,GeographyUnit,DistanceUnit)
An ordered Multiline means that we can walk though the MultiLine from the first point to the last point without any branches, and that each line's end points should be within the given tolerance. When using this overload, you can specify the unit for the Multiline as well as the unit for the tolerance.
Return Value
Parameters
GetPointOnALine(StartingPoint,Single)
Return Value
Parameters
GetPointOnALine(StartingPoint,Double,GeographyUnit,DistanceUnit)
Return Value
Parameters
GetLineOnALine(StartingPoint,Single,Single)
Return Value
Parameters
GetLineOnALine(StartingPoint,Single)
Return Value
Parameters
GetLineOnALine(StartingPoint,Double,Double,GeographyUnit,DistanceUnit)
Return Value
Parameters
startingDistance
Type:Double
Description:The starting distance from where you will start getting the line. For example, if the line is 3 units long and you have a starting distance of 1 unit, the result will be the last two units of the line. Valid values must be greater than 0. The starting distance will be in the GeographyUnit of the shape.
GetLineOnALine(StartingPoint,PointShape)
Return Value
Parameters
GetLineOnALine(PointShape,PointShape)
Return Value
Parameters
RemoveVertex(Vertex)
Return Value
Parameters
ToMultiPolygonShape()
Return Value
Parameters
GetLength(GeographyUnit,DistanceUnit)
Return Value
Type:Double
Description:N/A
Parameters
ScaleUp(Double)
Return Value
Type:Void
Description:N/A
Parameters
percentage
Type:Double
Description:N/A
ScaleDown(Double)
Return Value
Type:Void
Description:N/A
Parameters
percentage
Type:Double
Description:N/A
GetAccurateLength(Int32,DistanceUnit,DistanceCalculationMode)
Return Value
Type:Double
Description:N/A
Parameters
shapeSrid
Type:Int32
Description:N/A
GetAccurateLength(String,DistanceUnit,DistanceCalculationMode)
Return Value
Type:Double
Description:N/A
Parameters
ConvexHull()
Return Value
Parameters
Simplify(GeographyUnit,Double,DistanceUnit,SimplificationType)
Return Value
Parameters
tolerance
Type:Double
Description:N/A
Simplify(Double,SimplificationType)
Return Value
Parameters
tolerance
Type:Double
Description:N/A
Union(LineBaseShape)
Return Value
Parameters
Union(Feature)
Return Value
Parameters
GetIntersection(Feature)
Return Value
Parameters
GetIntersection(AreaBaseShape)
Return Value
Parameters
LoadFromWellKnownData(String)
Return Value
Type:Void
Description:N/A
Parameters
wellKnownText
Type:String
Description:N/A
GetWellKnownText()
Return Value
Type:String
Description:N/A
Parameters
GetGeoJson()
Return Value
Type:String
Description:N/A
Parameters
GetWellKnownText(RingOrder)
Return Value
Type:String
Description:N/A
Parameters
LoadFromWellKnownData(Byte[])
Return Value
Type:Void
Description:N/A
Parameters
wellKnownBinary
Type:Byte[]
Description:N/A
GetWellKnownBinary()
Return Value
Type:Byte[]
Description:N/A
Parameters
GetWellKnownBinary(WkbByteOrder)
Return Value
Type:Byte[]
Description:N/A
Parameters
GetWellKnownBinary(RingOrder)
Return Value
Type:Byte[]
Description:N/A
Parameters
GetWellKnownBinary(RingOrder,WkbByteOrder)
Return Value
Type:Byte[]
Description:N/A
Parameters
GetBoundingBox()
Return Value
Parameters
GetWellKnownType()
Return Value
Parameters
CloneDeep()
Return Value
Parameters
TranslateByOffset(Double,Double,GeographyUnit,DistanceUnit)
Return Value
Type:Void
Description:N/A
Parameters
xOffsetDistance
Type:Double
Description:N/A
yOffsetDistance
Type:Double
Description:N/A
TranslateByOffset(Double,Double)
Return Value
Type:Void
Description:N/A
Parameters
xOffsetDistance
Type:Double
Description:N/A
yOffsetDistance
Type:Double
Description:N/A
TranslateByDegree(Double,Double,GeographyUnit,DistanceUnit)
Return Value
Type:Void
Description:N/A
Parameters
distance
Type:Double
Description:N/A
angleInDegrees
Type:Double
Description:N/A
TranslateByDegree(Double,Double)
Return Value
Type:Void
Description:N/A
Parameters
distance
Type:Double
Description:N/A
angleInDegrees
Type:Double
Description:N/A
Rotate(PointShape,Single)
Return Value
Type:Void
Description:N/A
Parameters
degreeAngle
Type:Single
Description:N/A
GetShortestLineTo(BaseShape,GeographyUnit)
Return Value
Parameters
GetShortestLineTo(Feature,GeographyUnit)
Return Value
Parameters
GetClosestPointTo(BaseShape,GeographyUnit)
Return Value
Parameters
GetClosestPointTo(Feature,GeographyUnit)
Return Value
Parameters
GetCenterPoint()
Return Value
Parameters
Buffer(Double,GeographyUnit,DistanceUnit)
Return Value
Parameters
distance
Type:Double
Description:N/A
Buffer(Double,Int32,GeographyUnit,DistanceUnit)
Return Value
Parameters
distance
Type:Double
Description:N/A
quadrantSegments
Type:Int32
Description:N/A
Buffer(Double,Int32,BufferCapType,GeographyUnit,DistanceUnit)
Return Value
Parameters
distance
Type:Double
Description:N/A
quadrantSegments
Type:Int32
Description:N/A
GetDistanceTo(BaseShape,GeographyUnit,DistanceUnit)
Return Value
Type:Double
Description:N/A
Parameters
GetDistanceTo(Feature,GeographyUnit,DistanceUnit)
Return Value
Type:Double
Description:N/A
Parameters
Register(PointShape,PointShape,DistanceUnit,GeographyUnit)
Return Value
Parameters
Register(Feature,Feature,DistanceUnit,GeographyUnit)
Return Value
Parameters
Validate(ShapeValidationMode)
Return Value
Parameters
IsDisjointed(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
IsDisjointed(Feature)
Return Value
Type:Boolean
Description:N/A
Parameters
Intersects(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
Intersects(Feature)
Return Value
Type:Boolean
Description:N/A
Parameters
Touches(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
Touches(Feature)
Return Value
Type:Boolean
Description:N/A
Parameters
Crosses(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
Crosses(Feature)
Return Value
Type:Boolean
Description:N/A
Parameters
IsWithin(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
IsWithin(Feature)
Return Value
Type:Boolean
Description:N/A
Parameters
Contains(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
Contains(Feature)
Return Value
Type:Boolean
Description:N/A
Parameters
Overlaps(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
Overlaps(Feature)
Return Value
Type:Boolean
Description:N/A
Parameters
IsTopologicallyEqual(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
IsTopologicallyEqual(Feature)
Return Value
Type:Boolean
Description:N/A
Parameters
GetFeature()
Return Value
Parameters
GetFeature(IDictionary<String,String>)
Return Value
Parameters
GetCrossing(BaseShape)
Return Value
Parameters
ScaleTo(Double)
Return Value
Type:Void
Description:N/A
Parameters
scale
Type:Double
Description:N/A
ToString()
Return Value
Type:String
Description:N/A
Parameters
Equals(Object)
Return Value
Type:Boolean
Description:N/A
Parameters
obj
Type:Object
Description:N/A
GetHashCode()
Return Value
Type:Int32
Description:N/A
Parameters
GetType()
Return Value
Type:Type
Description:N/A
Parameters
RemoveVertex(Vertex,MultilineShape)
Return Value
Parameters
Protected Methods
GetBoundingBoxCore()
The GetBoundingBox method calculates the smallest RectangleShape that can encompass the entire geometry by examining each point in the geometry. Depending on the number of PointShapes and complexity of the geometry, this operation can take longer for larger objects. If the shape is a PointShape, then the bounding box's upper left and lower right points will be equal. This will create a RectangleShape with no area. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.
Return Value
Parameters
CloneDeepCore()
Return Value
Parameters
GetCenterPointCore()
Return Value
Parameters
ReorderCore(PointShape,Double,GeographyUnit,DistanceUnit)
An ordered Multiline means that we can walk though the MultiLine from the first point to the last point without any branches, and that each line's end points should be within the given tolerance. When using this overload, you can specify the unit for the Multiline as well as the unit for the tolerance.
Return Value
Parameters
GetLengthCore(GeographyUnit,DistanceUnit)
Return Value
Parameters
GetPointOnALineCore(StartingPoint,Double,GeographyUnit,DistanceUnit)
Return Value
Parameters
GetLineOnALineCore(StartingPoint,Double,Double,GeographyUnit,DistanceUnit)
Return Value
Parameters
startingDistance
Type:Double
Description:The starting distance from where you will start getting the line. For example, if the line is 3 units long and you have a starting distance of 1 unit, the result will be the last two units of the line. Valid values must be greater than 0. The starting distance will be in the GeographyUnit of the shape.
ScaleUpCore(Double)
Return Value
Type:Void
Description:N/A
Parameters
ScaleDownCore(Double)
Return Value
Type:Void
Description:N/A
Parameters
RegisterCore(PointShape,PointShape,DistanceUnit,GeographyUnit)
Registering allows you to take a geometric shape generated in a planar system and attach it to the ground in a Geographic Unit.A common scenario is integrating geometric shapes from external programs (such as CAD software or a modeling system) and placing them onto a map. You may have the schematics of a building in a CAD system and the relationship between all the points of the building are in feet. You want to then take the CAD image and attach it to where it really exists on a map. You would use the register method to do this.Registering is also useful for scientific modeling, where software models things such as a plume of hazardous materials or the fallout from a volcano. The modeling software typically generates these models in a fictitious planar system. You would then use the register to take the abstract model and attach it to a map with real coordinates.
Return Value
Parameters
TranslateByOffsetCore(Double,Double,GeographyUnit,DistanceUnit)
Return Value
Parameters
TranslateByDegreeCore(Double,Double,GeographyUnit,DistanceUnit)
This method moves the base shape from one location to another, based on an angleInDegrees and distance parameter. With this overload, it is important to note that the distance units are the same GeographicUnit as the shape. For example, if your shape is in decimal degrees and you call this method with a distance of 1, you're going to move this shape 1 decimal degree in direction of the angleInDegrees. In many cases it is more useful to specify the DistanceUnit of movement, such as in miles or yards, so for these scenarios there is another overload you may want to use instead.If you pass a distance of 0, then the operation is ignored.
Return Value
Type:Void
Description:N/A
Parameters
RotateCore(PointShape,Single)
This method rotates the shape by a number of degrees based on a pivot point. By placing the pivot point in the center of the shape, you can achieve in-place rotation. By moving the pivot point outside of the center of the shape, you can translate the shape in a circular motion. Moving the pivot point further outside of the center will make the circular area larger.
Return Value
Type:Void
Description:N/A
Parameters
GetClosestPointToCore(BaseShape,GeographyUnit)
This method returns the point of the current shape that is closest to the target shape. It is often the case that the point returned is not a point of the object itself. An example would be a line with two points that are far apart from each other. If you set the targetShape to be a point midway between the points but a short distance away from the line, the method would return a point that is on the line but not either of the two points that make up the line.
Return Value
Parameters
GetDistanceToCore(BaseShape,GeographyUnit,DistanceUnit)
Return Value
Parameters
GetWellKnownTextCore(RingOrder)
This method returns a string that represents the shape in well-known text. Well-known text allows you to describe a geometry as a string of text. Well-known text is useful when you want to save a geometry in a format such as a text file, or when you simply want to cut and paste the text between other applications. An alternative to well-known text is well-known binary, which is a binary representation of a geometry object. We have methods that work with well-known binary as well. Below are some samples of what well-known text might look like for various kinds of geometric shapes.POINT(5 17)LINESTRING(4 5,10 50,25 80)POLYGON1)MULTIPOINT(3.7 9.7,4.9 11.6)MULTILINESTRING2)MULTIPOLYGON3),4))
Return Value
Parameters
GetWellKnownTypeCore()
Return Value
Parameters
LoadFromWellKnownDataCore(String)
Return Value
Type:Void
Description:None
Parameters
LoadFromWellKnownDataCore(Byte[])
Return Value
Type:Void
Description:None
Parameters
ValidateCore(ShapeValidationMode)
We use this method, with the simple enumeration, internally before doing any kind of other methods on the shape. In this way, we are able to verify the integrity of the shape itself. If you wish to test things such as whether a polygon self-intersects, we invite you to call this method with the advanced ShapeValidationMode. One thing to consider is that for complex polygon shapes this operation could take some time, which is why we only run the basic, faster test. If you are dealing with polygon shapes that are suspect, we suggest you run the advanced test.
Return Value
Parameters
GetCrossingCore(BaseShape)
As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.
Return Value
Parameters
Scale(Double)
Return Value
Type:Void
Description:N/A
Parameters
factor
Type:Double
Description:N/A
GetAccurateLengthCore(String,DistanceUnit,DistanceCalculationMode)
Return Value
Type:Double
Description:N/A
Parameters
ConvexHullCore()
Return Value
Parameters
SimplifyCore(Double,SimplificationType)
Return Value
Parameters
tolerance
Type:Double
Description:N/A
UnionCore(IEnumerable<LineBaseShape>)
Return Value
Parameters
GetIntersectionCore(AreaBaseShape)
Return Value
Parameters
GetGeoJsonCore()
Return Value
Type:String
Description:N/A
Parameters
GetWellKnownBinaryCore(RingOrder,WkbByteOrder)
Return Value
Type:Byte[]
Description:N/A
Parameters
GetShortestLineToCore(BaseShape,GeographyUnit)
Return Value
Parameters
BufferCore(Double,Int32,BufferCapType,GeographyUnit,DistanceUnit)
Return Value
Parameters
distance
Type:Double
Description:N/A
quadrantSegments
Type:Int32
Description:N/A
IsDisjointedCore(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
IntersectsCore(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
TouchesCore(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
CrossesCore(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
IsWithinCore(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
ContainsCore(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
OverlapsCore(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
IsTopologicallyEqualCore(BaseShape)
Return Value
Type:Boolean
Description:N/A
Parameters
ScaleToCore(Double)
Return Value
Type:Void
Description:N/A
Parameters
scale
Type:Double
Description:N/A
Finalize()
Return Value
Type:Void
Description:N/A
Parameters
MemberwiseClone()
Return Value
Type:Object
Description:N/A
Parameters
Public Properties
Lines
Return Value
CanRotate
Return Value
Id
Return Value
Tag
Return Value
Protected Properties
Public Events