Products
Professional Services
Demos and Downloads
Help and Support
Products
Professional Services
Demos and Downloads
Help and Support
This is an old revision of the document!
This class represents a LineShape, which is defined as a single line with two or more points.
None
None
This constructor creates the LineShape.
None
This constructor creates the LineShape.
None
None
This method determines whether the line is closed, meaning that the last point and first point are the same.
None
GetPointOnALine(StartingPoint,Single)
This method returns a PointShape on the line, based on a percentage of the length of the line from the first or last vertex defined in the startingPoint parameter.
If you pass 100 or 0 as the percentage of the line, it will return either the first or last vertex, depending on the value of the startingPoint argument.
GetPointOnALine(StartingPoint,Double,GeographyUnit,DistanceUnit)
This method returns a PointShape on the line, based on a distance on the line from the first or last vertex defined in the startingPoint parameter.
Passing in a 0 distance will return either the first or last point on the line, depending upon the value of the startingPoint parameter.
GetLineOnALine(StartingPoint,Single,Single)
This method returns a BaseLineShape, based on a starting position and other factors.
None
GetLineOnALine(StartingPoint,Single)
This method returns a BaseLineShape, based on a starting position and other factors.
None
GetLineOnALine(StartingPoint,Double,Double,GeographyUnit,DistanceUnit)
This method returns a BaseLineShape, based on a starting position and other factors.
None
GetLineOnALine(StartingPoint,PointShape)
This method returns a BaseLineShape, based on a starting position and other factors.
None
GetLineOnALine(PointShape,PointShape)
This method returns a BaseLineShape, based on a starting position and other factors.
None
This method removes the selected vertex from line shape.
N/A
This method generates a PolygonShape based the vertexes of the line.
N/A
N/A
GetAccurateLength(String,DistanceUnit,DistanceCalculationMode)
N/A
N/A
GetLength(GeographyUnit,DistanceUnit)
N/A
N/A
N/A
N/A
N/A
N/A
Simplify(Double,SimplificationType)
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
TranslateByOffset(Double,Double)
N/A
N/A
TranslateByDegree(Double,Double,GeographyUnit,DistanceUnit)
N/A
N/A
TranslateByDegree(Double,Double)
N/A
N/A
N/A
N/A
GetShortestLineTo(BaseShape,GeographyUnit)
N/A
N/A
GetShortestLineTo(Feature,GeographyUnit)
N/A
N/A
GetClosestPointTo(BaseShape,GeographyUnit)
N/A
N/A
GetClosestPointTo(Feature,GeographyUnit)
N/A
N/A
N/A
N/A
Buffer(Double,Int32,GeographyUnit,DistanceUnit)
N/A
N/A
Buffer(Double,Int32,BufferCapType,GeographyUnit,DistanceUnit)
N/A
N/A
GetDistanceTo(BaseShape,GeographyUnit,DistanceUnit)
N/A
N/A
GetDistanceTo(Feature,GeographyUnit,DistanceUnit)
N/A
N/A
Register(PointShape,PointShape,DistanceUnit,GeographyUnit)
N/A
N/A
Register(Feature,Feature,DistanceUnit,GeographyUnit)
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
None
When you override this method, you need to ensure that there are no references in common between the original and the copy.
This method determines whether the line is closed, meaning that the last point and first point are the same.
None
This is a useful method when you want to know the total length of a line-based shape. If the shape is a MultiLineShape, then the length is the sum of all of its lines.
GetPointOnALineCore(StartingPoint,Double,GeographyUnit,DistanceUnit)
This method returns a PointShape on the line, based on a distance on the line from the first or last vertex defined in the startingPoint parameter.
Passing in a 0 distance will return either the first or last point on the line, depending on the value of the startingPoint parameter.
GetLineOnALineCore(StartingPoint,Double,Double,GeographyUnit,DistanceUnit)
This method returns a BaseLineShape, based on a starting position and other factors.
None
GetDistanceToCore(BaseShape,GeographyUnit,DistanceUnit)
This method computes the distance between the current shape and the targetShape.
In this method, we compute the closest distance between the two shapes. The returned unit will be in the unit of distance specified.Overriding:Please ensure that you validate the parameters being passed in and raise the exceptions defined above.
This method increases the size of the LineShape by the percentage given in the percentage parameter.
This method is useful when you would like to increase the size of the shape. Note that a larger percentage will scale the shape up faster, as you are applying the operation multiple times. There is also a ScaleDown method that will shrink the shape.
This method decreases the size of the LineShape by the percentage given in the percentage parameter.
This method is useful when you would like to decrease the size of the shape. Note that a larger percentage will scale the shape down faster, as you are applying the operation multiple times. There is also a ScaleUp method that will enlarge the shape.
RegisterCore(PointShape,PointShape,DistanceUnit,GeographyUnit)
This method returns a BaseShape which has been registered from its original coordinate system to another, based on two anchor PointShapes.
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.
TranslateByOffsetCore(Double,Double,GeographyUnit,DistanceUnit)
This method moves the base shape from one location to another based on an X and Y offset distance.
This method returns a shape repositioned from one location to another based on an X and Y offset distance. With this overload, it is important to note that the X and Y offset units are based on the distanceUnit parameter. For example, if your shape is in decimal degrees and you call this method with an X offset of 1 and a Y offset of 1, you're going to move this shape one unit of the distanceUnit in the horizontal direction and one unit of the distanceUnit in the vertical direction. In this way, you can easily move a shape in decimal degrees five miles on the X axis and 3 miles on the Y axis.
TranslateByDegreeCore(Double,Double,GeographyUnit,DistanceUnit)
This method moves the base shape from one location to another based on a distance and a direction in degrees.
This method returns a shape repositioned from one location to another based on angleInDegrees and distance parameter. With this overload, it is important to note that the distance is based on the supplied distanceUnit parameter. For example, if your shape is in decimal degrees and you call this method with a distanceUnit of miles, you're going to move this shape a number of miles based on the distance value and the angleInDegrees. In this way, you can easily move a shape in decimal degrees five miles to the north.If you pass a distance of 0, then the operation is ignored.
This method rotates the shape a number of degrees based on a pivot point.
This method rotates the shape 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.
This method calculates the smallest RectangleShape that encompasses the entire geometry.
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, than 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.
GetClosestPointToCore(BaseShape,GeographyUnit)
This method returns the point of the current shape that is closest to the target shape.
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.
GetWellKnownTextCore(RingOrder)
This method returns the well-known text representation of this shape.
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 figures.POINT(5 17)LINESTRING(4 5,10 50,25 80)POLYGON1)MULTIPOINT(3.7 9.7,4.9 11.6)MULTILINESTRING2)MULTIPOLYGON3),4))
This method returns the well-known type for the shape.
None
N/A
LoadFromWellKnownDataCore(String)
This method hydrates the current shape with its data from well-known text.
None
LoadFromWellKnownDataCore(Byte[])
This method hydrates the current shape with its data from well-known binary.
This is used when you want to hydrate a shape based on well-known binary. You can create the shape and then load the well-known binary using this method.
ValidateCore(ShapeValidationMode)
This method returns a ShapeValidationResult based on a series of tests.
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.
This method returns the crossing points between the current shape and the passed-in target shape.
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.
N/A
N/A
GetAccurateLengthCore(String,DistanceUnit,DistanceCalculationMode)
N/A
N/A
N/A
N/A
N/A
UnionCore(IEnumerable<LineBaseShape>)
N/A
N/A
GetIntersectionCore(AreaBaseShape)
N/A
N/A
N/A
N/A
GetShortestLineToCore(BaseShape,GeographyUnit)
N/A
N/A
BufferCore(Double,Int32,BufferCapType,GeographyUnit,DistanceUnit)
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
None
If this property returns false and you attempt call the rotate method, it will throw a NotImplementedException.
N/A
N/A
8501 Wade Blvd Ste 550
Frisco, TX 75034
United States
sales@thinkgeo.com
1-785-727-4133
Online Store
- Desktop
WPF
WinForms
- Web
WebAPI HTML5/JavaScript
ASP.NET MVC
WebForms with AJAX
- Mobile
iOS
Android™
World Street
World Imagery
Routing
Geocoding
Reverse Geocoding
Elevation
Quick Start Guides
Documentation
Blogs
Discussion Forums
Customer Portal
About Us
News & Announcemets
Privacy Policy
Copyright 2003-2017 ThinkGeo LLC.
All rights reserved.