User Tools

Site Tools


thinkgeo.mapsuite.windowsphonecore.pointshape

Table of Contents

ThinkGeo.MapSuite.WindowsPhoneCore.PointShape

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

<!– Class –> This class represents a single point.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodPointShape This constructor creates a PointShape.
Public MethodPointShape Double, Double This constructor create a PointShape.
Public MethodPointShape Double, Double, Double This constructor create a PointShape.
Public MethodPointShape Vertex This overload creates a PointShape by specifying the vertex.
Public MethodPointShape String This constructor creates the PointShape.
Public MethodPointShape Byte[] This constructor creates the PointShape.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodBuffer Double, Int32, GeographyUnit, DistanceUnit BaseShape This method computes the area containing all of the points within a given distance from this shape.
Public MethodBuffer Double, GeographyUnit, DistanceUnit BaseShape This method computes the area containing all of the points within a given distance from this shape.
Public MethodBuffer Double, Int32, BufferCapType, GeographyUnit, DistanceUnit BaseShape This method computes the area containing all of the points within a given distance from this shape.
Public MethodCloneDeep BaseShape This method returns a complete copy of the shape without any references in common.
Public MethodContains Feature BaseShape This method returns if the targetFeature lies within the interior of the current shape.
Public MethodContains BaseShape BaseShape This method returns if the targetShape lies within the interior of the current shape.
Public MethodStatic MemberCreateShapeFromWellKnownData Byte[] BaseShape This method creates a BaseShape from a string of well-known binary.
Public MethodStatic MemberCreateShapeFromWellKnownData String BaseShape This method creates a BaseShape from a string of well-known text.
Public MethodCrosses Feature BaseShape This method returns if the current shape and the targetFeature share some but not all interior points.
Public MethodCrosses BaseShape BaseShape This method returns if the current shape and the targetShape share some but not all interior points.
Public MethodEqual2D PointShape Compare the current PointShape with the target PointShape.
Public MethodEqual2D Feature Compare the current PointShape with the target Point Feature.
Public MethodEquals Object Object
Public MethodGetBoundingBox BaseShape This method calculates the smallest RectangleShape that encompasses the entire geometry.
Public MethodGetCenterPoint BaseShape This method returns the center point of the current shape's bounding box.
Public MethodGetClosestPointTo Feature, GeographyUnit BaseShape This method returns the point of the current shape that is closest to the target feature.
Public MethodGetClosestPointTo BaseShape, GeographyUnit BaseShape This method returns the point of the current shape that is closest to the target shape.
Public MethodGetCrossing BaseShape BaseShape This method returns the crossing points between the current shape and the passed-in target shape.
Public MethodGetDistanceTo BaseShape, GeographyUnit, DistanceUnit BaseShape This method computes the distance between the current shape and the targetShape.
Public MethodGetDistanceTo Feature, GeographyUnit, DistanceUnit BaseShape This method computes the distance between the current shape and the targetFeature.
Public MethodGetFeature IDictionary<String, String> BaseShape Get a corresponding feature which has the same Id and BaseShape as the current shape. Additionally, pass the specified columnValues into the returned feature.
Public MethodGetFeature BaseShape Get a corresponding feature which has the same Id and BaseShape as the current shape.
Public MethodGetHashCode Object
Public MethodGetShortestLineTo BaseShape, GeographyUnit BaseShape This method returns the shortest LineShape between this shape and the targetShape parameter.
Public MethodGetShortestLineTo Feature, GeographyUnit BaseShape This method returns the shortest LineShape between this shape and the targetFeature. parameter.
Public MethodGetType Object
Public MethodGetWellKnownBinary BaseShape This method returns a byte array that represents the shape in well-known binary.
Public MethodGetWellKnownBinary WkbByteOrder BaseShape This method returns a byte array that represents the shape in well-known binary.
Public MethodGetWellKnownText BaseShape This method returns the well-known text representation of this shape.
Public MethodGetWellKnownType BaseShape This method returns the well-known type for the shape.
Public MethodGreatCircle Feature This method returns a MultilineShape which represents the shortest line between the current point and the specified feature on the globe.
Public MethodGreatCircle PointShape This method returns a MultilineShape that represents the shortest line between two points on the globe.
Public MethodIntersects BaseShape BaseShape This method returns if the current shape and the targetShape have at least one point in common.
Public MethodIntersects Feature BaseShape This method returns if the current shape and the targetFeature have at least one point in common.
Public MethodIsDisjointed Feature BaseShape This method returns if the current shape and the targetFeature have no points in common.
Public MethodIsDisjointed BaseShape BaseShape This method returns if the current shape and the targetShape have no points in common.
Public MethodIsTopologicallyEqual BaseShape BaseShape This method returns if the current shape and the targetShape are topologically equal.
Public MethodIsTopologicallyEqual Feature BaseShape This method returns if the current shape and the targetFeature are topologically equal.
Public MethodIsWithin BaseShape BaseShape This method returns if the current shape lies within the interior of the targetShape.
Public MethodIsWithin Feature BaseShape This method returns if the current shape lies within the interior of the targetFeature.
Public MethodLoadFromWellKnownData String BaseShape This method hydrates the current shape with its data from well-known text.
Public MethodLoadFromWellKnownData Byte[] BaseShape This method hydrates the current shape with its data from well-known binary.
Public MethodOverlaps Feature BaseShape This method returns if the current shape and the targetFeature share some but not all points in common.
Public MethodOverlaps BaseShape BaseShape This method returns if the current shape and the targetShape share some but not all points in common.
Public MethodRegister Feature, Feature, DistanceUnit, GeographyUnit BaseShape This method returns a BaseShape which has been registered from its original coordinate system to another based on two anchor PointShapes.
Public MethodRegister PointShape, PointShape, DistanceUnit, GeographyUnit BaseShape This method returns a BaseShape which has been registered from its original coordinate system to another based on two anchor PointShapes.
Public MethodRotate PointShape, Single BaseShape This method rotates a shape a number of degrees based on a pivot point.
Public MethodStatic MemberRotate BaseShape, PointShape, Single BaseShape This method returns a shape rotated by a number of degrees based on a pivot point.
Public MethodStatic MemberRotate Feature, PointShape, Single BaseShape This method returns a feature rotated by a number of degrees based on a pivot point.
Public MethodScaleTo Double BaseShape
Public MethodStatic MemberScaleTo BaseShape, Double BaseShape
Public MethodToString Object(overriden) Override the ToString() API by returning the X, Y , Z
Public MethodTouches Feature BaseShape This method returns of the current shape and the targetFeature have at least one boundary point in common, but no interior points.
Public MethodTouches BaseShape BaseShape This method returns if the current shape and the targetShape have at least one boundary point in common, but no interior points.
Public MethodTranslateByDegree Double, Double BaseShape This method moves a base shape from one location to another based on a distance and a direction in degrees.
Public MethodStatic MemberTranslateByDegree BaseShape, Double, Double, GeographyUnit, DistanceUnit BaseShape This method returns a shape repositioned from one location to another based on a distance and a direction in degrees.
Public MethodStatic MemberTranslateByDegree Feature, Double, Double, GeographyUnit, DistanceUnit BaseShape This method returns a feature repositioned from one location to another, based on a distance and a direction in degrees.
Public MethodTranslateByDegree Double, Double, GeographyUnit, DistanceUnit BaseShape This method moves a base shape from one location to another based on a distance and a direction in degrees.
Public MethodStatic MemberTranslateByOffset Feature, Double, Double, GeographyUnit, DistanceUnit BaseShape This method returns a feature repositioned from one location to another based on an X and Y offset distance.
Public MethodTranslateByOffset Double, Double, GeographyUnit, DistanceUnit BaseShape This method moves a base shape from one location to another based on an X and Y offset distance.
Public MethodTranslateByOffset Double, Double BaseShape
Public MethodStatic MemberTranslateByOffset BaseShape, Double, Double, GeographyUnit, DistanceUnit BaseShape This method returns a shape repositioned from one location to another based on an X and Y offset distance.
Public MethodValidate ShapeValidationMode BaseShape This method returns a ShapeValidationResult based on a series of tests.

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodBufferCore Double, Int32, BufferCapType, GeographyUnit, DistanceUnit BaseShape This method computes the area containing all of the points within a given distance from this shape.
Protected MethodCloneDeepCore BaseShape(overriden) This method returns a complete copy of the shape without any references in common.
Protected MethodContainsCore BaseShape BaseShape This method returns if the targetShape lies within the interior of the current shape.
Protected MethodCrossesCore BaseShape BaseShape This method returns if the current shape and the targetShape share some but not all interior points.
Protected MethodFinalize Object
Protected MethodGetBoundingBoxCore BaseShape This method calculates the smallest RectangleShape that encompasses the entire geometry.
Protected MethodGetCenterPointCore BaseShape This method returns the center point of the current shape's bounding box.
Protected MethodGetClosestPointToCore BaseShape, GeographyUnit BaseShape(overriden) This method returns the point of the current shape that is closest to the target shape.
Protected MethodGetCrossingCore BaseShape BaseShape(overriden) This method returns the crossing points between the current shape and the passed-in target shape.
Protected MethodGetDistanceToCore BaseShape, GeographyUnit, DistanceUnit BaseShape(overriden) This method computes the distance between the current shape and the targetShape.
Protected MethodGetShortestLineToCore BaseShape, GeographyUnit BaseShape This method returns the shortest LineShape between this shape and the targetShape parameter.
Protected MethodGetWellKnownBinaryCore WkbByteOrder BaseShape(overriden) This method returns a byte array that represents the shape in well-known binary.
Protected MethodGetWellKnownTextCore BaseShape(overriden) This method returns the well-known text representation of this shape.
Protected MethodGetWellKnownTypeCore BaseShape(overriden) This method returns the well-known type for the shape.
Protected MethodIntersectsCore BaseShape BaseShape This method returns if the current shape and the targetShape have at least one point in common.
Protected MethodIsDisjointedCore BaseShape BaseShape This method returns if the current shape and the targetShape have no points in common.
Protected MethodIsTopologicallyEqualCore BaseShape BaseShape This method returns if the current shape and the targetShape are topologically equal.
Protected MethodIsWithinCore BaseShape BaseShape(overriden)
Protected MethodLoadFromWellKnownDataCore Byte[] BaseShape(overriden) This method hydrates the current shape with its data from well-known binary.
Protected MethodLoadFromWellKnownDataCore String BaseShape(overriden) This method hydrates the current shape with its data from well-known text.
Protected MethodMemberwiseClone Object
Protected MethodOverlapsCore BaseShape BaseShape This method returns if the current shape and the targetShape share some but not all points in common.
Protected MethodRegisterCore PointShape, PointShape, DistanceUnit, GeographyUnit BaseShape(overriden) This method returns a BaseShape which has been registered from its original coordinate system to another based on two anchor PointShapes.
Protected MethodRotateCore PointShape, Single BaseShape(overriden) This method rotates the shape a number of degrees based on a pivot point.
Protected MethodScaleToCore Double BaseShape
Protected MethodTouchesCore BaseShape BaseShape This method returns if the current shape and the targetShape have at least one boundary point in common, but no interior points.
Protected MethodTranslateByDegreeCore Double, Double, GeographyUnit, DistanceUnit BaseShape(overriden) This method moves the base shape from one location to another, based on a distance and a direction in degrees.
Protected MethodTranslateByOffsetCore Double, Double, GeographyUnit, DistanceUnit BaseShape(overriden) This method moves the base shape from one location to another based on an X and Y offset distance.
Protected MethodValidateCore ShapeValidationMode BaseShape(overriden) This method returns a ShapeValidationResult based on a series of tests.

Public Properties

Name Return DeclaringType Summary
Public PropertyCanRotate Boolean BaseShape(overriden) This property specifies whether the shape can be rotated.
Public PropertyId String BaseShape The id of the shape.
Public PropertyTag Object BaseShape The tag of the shape.
Public PropertyX Double This property represents the X (horizontal) axis.
Public PropertyY Double This property represents the Y (vertical) axis.
Public PropertyZ Double This property represents the Z (depth) axis.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

PointShape()

This constructor creates a PointShape.

Overloads

This overload creates the PointShape with its default values.

Parameters

Name Type Description

Go Back

PointShape(Double, Double)

This constructor create a PointShape.

Overloads

This overload creates a PointShape by specifying the X and Y values.

Parameters

Name Type Description
x Double<!– System.Double –> This parameter represents the X (horizontal) axis.
y Double<!– System.Double –> This parameter represents the Y (vertical) axis.

Go Back

PointShape(Double, Double, Double)

This constructor create a PointShape.

Overloads

This overload creates a PointShape by specifying the X,Y, and Z values.

Parameters

Name Type Description
x Double<!– System.Double –> This parameter represents the X (horizontal) axis.
y Double<!– System.Double –> This parameter represents the Y (vertical) axis.
z Double<!– System.Double –> This parameter represents the Z (depth) axis.

Go Back

PointShape(Vertex)

This overload creates a PointShape by specifying the vertex.

Parameters

Name Type Description
vertex Vertex<!– ThinkGeo.MapSuite.WindowsPhoneCore.Vertex –> This parameter represents the vertex that will be used to construct the PointShape.

Go Back

PointShape(String)

This constructor creates the PointShape.

Overloads

This constructor allows you to build the shape from well-known text.

Parameters

Name Type Description
wellKnownText String<!– System.String –> This parameter is the well-known text used to build the shape.

Go Back

PointShape(Byte[])

This constructor creates the PointShape.

Overloads

This constructor allows you to build the shape from well-known binary.

Parameters

Name Type Description
wellKnownBinary Byte[]<!– System.Bytethinkgeo.mapsuite.windowsphonecore.pointshape –> This parameter is the well-known binary used to build the shape.

Go Back

Protected Constructors

Public Methods

Buffer(Double, Int32, GeographyUnit, DistanceUnit)

This method computes the area containing all of the points within a given distance from this shape.

Remarks

This method computes the area containing all of the points within a given distance from this shape. In this case, you will be using the rounded RoundedBufferCapStyle. The distance unit is determined by the distanceUnit argument.

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

Return Type Description
MultipolygonShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape –> The return type is a MultiPolygonShape that represents all of the points within a given distance from the shape.

Parameters

Name Type Description
distance Double<!– System.Double –> The distance is the number of units to buffer the current shape. The distance unit will be the one specified in the distanceUnit paramater. The distance must be greater than 0.
quadrantSegments Int32<!– System.Int32 –> The quadrant segments are the number of points in each quarter circle. A good default is 8, but if you want smoother edges you can increase this number. The valid range for this number is from 3 to 100.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the geographic unit of the shape you are performing the operation on.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This is the distance unit you would like to use as the distance. For example, if you select miles as your distanceUnit, then the distance will be calculated in miles for the operation.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Buffer(Double, GeographyUnit, DistanceUnit)

This method computes the area containing all of the points within a given distance from this shape.

Remarks

This method computes the area containing all of the points within a given distance from this shape. In this case, you will be using the rounded RoundedBufferCapStyle and the default 8 quadrant segments. The distance unit is determined by the distanceUnit argument.

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

Return Type Description
MultipolygonShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape –> The return type is a MultiPolygonShape that represents all of the points within a given distance from the shape.

Parameters

Name Type Description
distance Double<!– System.Double –> The distance is the number of units to buffer the current shape. The distance unit will be the one specified in the distanceUnit parameter. The distance must be greater than 0.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the geographic unit of the shape you are performing the operation on.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This is the distance unit you would like to use as the distance. For example, if you select miles as your distanceUnit, then the distance will be calculated in miles for the operation.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Buffer(Double, Int32, BufferCapType, GeographyUnit, DistanceUnit)

This method computes the area containing all of the points within a given distance from this shape.

Remarks

This method computes the area containing all of the points within a given distance from this 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.

Return Value

Return Type Description
MultipolygonShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape –> The return type is a MultiPolygonShape that represents all of the points within a given distance from the shape.

Parameters

Name Type Description
distance Double<!– System.Double –> The distance is the number of units to buffer the current shape. The distance unit will be the one specified in the distanceUnit paramater. The distance must be greater than 0.
quadrantSegments Int32<!– System.Int32 –> The quadrant segments are the number of points in each quarter circle. A good default is 8, but if you want smoother edges you can increase this number. The valid range for this number is from 3 to 100.
bufferCapType BufferCapType<!– ThinkGeo.MapSuite.WindowsPhoneCore.BufferCapType –> The bufferCapType determines how the caps of the buffered object look. They range from rounded to squared off.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the geographic unit of the shape you are performing the operation on.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This is the distance unit you would like to use as the distance. For example, if you select miles as your distanceUnit, then the distance will be calculated in miles for the operation.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

CloneDeep()

This method returns a complete copy of the shape without any references in common.

Remarks

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

Return Type Description
BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> This method returns a complete copy of the shape without any references in common.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Contains(Feature)

This method returns if the targetFeature lies within the interior of the current shape.

Remarks

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

Return Type Description
Boolean<!– System.Boolean –> This method returns if the targetFeature lies within the interior of the current shape.

Parameters

Name Type Description
targetFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> The targetFeature that contains a shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Contains(BaseShape)

This method returns if the targetShape lies within the interior of the current shape.

Remarks

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

Return Type Description
Boolean<!– System.Boolean –> This method returns if the targetShape lies within the interior of the current shape.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

CreateShapeFromWellKnownData(Byte[])

<!– static –> This method creates a BaseShape from a string of well-known binary.

Remarks

This method creates a BaseShape from a string of well-known binary. Well-known binary allows you to describe geometries as a binary array. Well-known binary is useful when you want to save a geometry in an efficient format using as little space as possible. An alternative to well-known binary is well-known text, which is a textual representation of a geometry object. We have methods that work with well-known text as well.

Return Value

Return Type Description
BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The return type is a higher level shape constructed from the well-known binary you passed into the method. Though the object is a higher level shape, such as a PolygonShape or MultiPointShape, you will need to cast it to that shape in order to use its unique properties.

Parameters

Name Type Description
wellKnownBinary Byte[]<!– System.Bytethinkgeo.mapsuite.windowsphonecore.pointshape –> An array of bytes representing the geometry in well-known binary format.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

CreateShapeFromWellKnownData(String)

<!– static –> This method creates a BaseShape from a string of well-known text.

Remarks

This method creates a BaseShape from a string of well-known text. Well-known text allows you to describe geometries 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 geometries.

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

Return Type Description
BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The return type is a higher level shape constructed from the well-known text you passed into the method. Though the object is a higher level shape, such as a PolygonShape or MultiPointShape, you will need to cast it to that shape in order to use its unique properties.

Parameters

Name Type Description
wellKnownText String<!– System.String –> A string representing the geometry in well-known text format.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Crosses(Feature)

This method returns if the current shape and the targetFeature share some but not all interior points.

Remarks

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

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetFeature share some but not all interior points.

Parameters

Name Type Description
targetFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> The targetFeature that contains a shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Crosses(BaseShape)

This method returns if the current shape and the targetShape share some but not all interior points.

Remarks

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

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetShape share some but not all interior points.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Equal2D(PointShape)

Compare the current PointShape with the target PointShape.

Return Value

Return Type Description
Boolean<!– System.Boolean –> True if both X and Y coordinates of the current shape are equal to those of the target shape.

Parameters

Name Type Description
targetShape PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> The targetPointShape to be compared with.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> Go Back

Equal2D(Feature)

Compare the current PointShape with the target Point Feature.

Return Value

Return Type Description
Boolean<!– System.Boolean –> True if both X and Y coordinates of the current shape are equal to those of the PointShape contained in the target PointFeature.

Parameters

Name Type Description
targetPointFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> The targetPointFeature to be compared with.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> Go Back

Equals(Object)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetBoundingBox()

This method calculates the smallest RectangleShape that encompasses the entire geometry.

Remarks

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.

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

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> The RectangleShape returned is the smallest RectangleShape that can encompass the entire geometry.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetCenterPoint()

This method returns the center point of the current shape's bounding box.

Remarks

This method returns the center point of the current shape's bounding box. It is important to note that this is the center point of the bounding box. There are numerous ways to calculate the “center” of a geometry, such as its weighted center, etc. You can find other centers by examining the various methods of the shape itself.

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

Return Type Description
PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> A PointShape representing the center point of the current shape's bounding box.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetClosestPointTo(Feature, GeographyUnit)

This method returns the point of the current shape that is closest to the target feature.

Remarks

This method returns the point of the current shape that is closest to the target feature. 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 targetFeature 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.

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

Return Type Description
PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> A PointShape representing the closest point of the current shape to the targetFeature.

Parameters

Name Type Description
targetFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> The feature you are trying to find the closest point to.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> The geographic unit of the feature you are trying to find the closet point to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetClosestPointTo(BaseShape, GeographyUnit)

This method returns the point of the current shape that is closest to the target shape.

Remarks

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.

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

Return Type Description
PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> A PointShape representing the closest point of the current shape to the targetShape.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you are trying to find the closest point to.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> The geographic unit of the shape you are trying to find the closet point to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetCrossing(BaseShape)

This method returns the crossing points between the current shape and the passed-in target shape.

Remarks

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

Return Type Description
MultipointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.MultipointShape –> This method returns the crossing points between the current shape and the passed-in target shape.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The target shape you wish to get crossing points with.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetDistanceTo(BaseShape, GeographyUnit, DistanceUnit)

This method computes the distance between the current shape and the targetShape.

Remarks

In this method we compute the closest distance between the two shapes. The returned unit will be in the unit of distance specified.

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

Return Type Description
Double<!– System.Double –> The return type is the distance between this shape and the targetShape in the GeographyUnit of the shape.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you are trying to find the distance to.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This parameter is the unit of the shape you are getting the distance to.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This parameter is the unit of the distance you want the return value to be in.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetDistanceTo(Feature, GeographyUnit, DistanceUnit)

This method computes the distance between the current shape and the targetFeature.

Remarks

In this method we compute the closest distance between a shape and a feature. The returned unit will be in the unit of distance specified.

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

Return Type Description
Double<!– System.Double –> The return type is the distance between this shape and the targetFeature in the GeographyUnit of the shape.

Parameters

Name Type Description
targetFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> The feature you are trying to find the distance to.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This parameter is the unit of the shape which is contained in the targetFeature you are getting the distance to.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This parameter is the unit of the distance you want the return value to be in.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetFeature(IDictionary<String, String>)

Get a corresponding feature which has the same Id and BaseShape as the current shape. Additionally, pass the specified columnValues into the returned feature.

Return Value

Return Type Description
Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> The feature with the same Id and BaseShape as the current BaseShape and with empty columnValues in it, substituted with the passed-in columnValues.

Parameters

Name Type Description
columnValues IDictionary<String,String><!– System.Collections.Generic.IDictionary{System.String,System.String} –> The columnValues will be passed into returning feature.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetFeature()

Get a corresponding feature which has the same Id and BaseShape as the current shape.

Return Value

Return Type Description
Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> The feature with the same Id and BaseShape as the current BaseShape, and with empty columnValues in it.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetHashCode()

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetShortestLineTo(BaseShape, GeographyUnit)

This method returns the shortest LineShape between this shape and the targetShape parameter.

Remarks

This method returns a LineShape representing the shortest distance between the shape you're calling the method on and the targetShape. In some instances, based on the GeographicType or Projection, the line may not be straight. This effect is similar to what you might see on an international flight when the displayed flight path is curved.

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

Return Type Description
MultilineShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.MultilineShape –> A LineShape representing the shortest distance between the shape you're calling the method on and the targetShape.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you are trying to find the distance to.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> The geographic unit of the Shape you are trying to find the distance to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetShortestLineTo(Feature, GeographyUnit)

This method returns the shortest LineShape between this shape and the targetFeature. parameter.

Remarks

This method returns a MultiLineShape representing the shortest distance between the shape you're calling the method on and the targetShape. In some instances, based on the GeographicType or Projection, the line may not be straight. This is effect is similar to what you might see on an international flight when the displayed flight path is curved.

Overriding:

Please ensure that you validate the parameters being passed in and raise the exceptions defined above.

Return Value

Return Type Description
MultilineShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.MultilineShape –> A MultiLineShape representing the shortest distance between the shape you're calling the method on and the targetFeature.

Parameters

Name Type Description
targetFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> The feature you are trying to find the distance to.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> The geographic unit of the feature you are trying to find the distance to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetWellKnownBinary()

This method returns a byte array that represents the shape in well-known binary.

Remarks

This method returns a byte array that represents the shape in well-known binary. Well-known binary allows you to describe geometries as a binary array. Well-known binary is useful when you want to save a geometry in an efficient format using as little space as possible. An alternative to well-known binary is well-known text, which is a textual representation of a geometry object. We have methods that work with well known text as well.

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

Return Type Description
Byte[]<!– System.Bytethinkgeo.mapsuite.windowsphonecore.pointshape –> This method returns a byte array that represents the shape in well-known binary.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetWellKnownBinary(WkbByteOrder)

This method returns a byte array that represents the shape in well-known binary.

Remarks

This method returns a byte array that represents the shape in well-known binary. Well-known binary allows you to describe geometries as a binary array. Well-known binary is useful when you want to save a geometry in an efficient format using as little space as possible. An alternative to well-known binary is well-known text, which is a textual representation of a geometry object. We have methods that work with well known text as well.

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

Return Type Description
Byte[]<!– System.Bytethinkgeo.mapsuite.windowsphonecore.pointshape –> This method returns a byte array that represents the shape in well-known binary.

Parameters

Name Type Description
byteOrder WkbByteOrder<!– ThinkGeo.MapSuite.WindowsPhoneCore.WkbByteOrder –> This parameter is the byte order used to encode the well-known binary.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetWellKnownText()

This method returns the well-known text representation of this shape.

Remarks

This method returns a string that represents the shape in well-known text. Well-known text allows you to describe geometries 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 geometries.

POINT(5 17)

LINESTRING(4 5,10 50,25 80)

POLYGON5)

MULTIPOINT(3.7 9.7,4.9 11.6)

MULTILINESTRING6)

MULTIPOLYGON7),8))

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

Return Type Description
String<!– System.String –> This method returns a string that represents the shape in well-known text.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetWellKnownType()

This method returns the well-known type for the shape.

Remarks

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

Return Type Description
WellKnownType<!– ThinkGeo.MapSuite.WindowsPhoneCore.WellKnownType –> This method returns the well-known type for the shape.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GreatCircle(Feature)

This method returns a MultilineShape which represents the shortest line between the current point and the specified feature on the globe.

Remarks

This method is useful when you want to display on the map the shortest line between two points in decimal degrees. The line will be curved, and possibly disconnected if it is close to travel from the end of the map.

Return Value

Return Type Description
MultilineShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.MultilineShape –> This method returns a MultilineShape which represents the shortest line between the current point and the specified feature on the globe.

Parameters

Name Type Description
pointFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> This parameter is the target feature to be measured to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> Go Back

GreatCircle(PointShape)

This method returns a MultilineShape that represents the shortest line between two points on the globe.

Remarks

This method is useful when you want to display on the map the shortest line between two points in decimal degrees. The line will be curved, and possibly disconnected if it is close to travel from the end of the map.

Return Value

Return Type Description
MultilineShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.MultilineShape –> This method returns a MultilineShape that represents the shortest line between two points on the globe.

Parameters

Name Type Description
pointShape PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> This parameter is the target point to be measured to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> Go Back

Intersects(BaseShape)

This method returns if the current shape and the targetShape have at least one point in common.

Remarks

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

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetShape have at least one point in common.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Intersects(Feature)

This method returns if the current shape and the targetFeature have at least one point in common.

Remarks

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

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetFeature have at least one point in common.

Parameters

Name Type Description
targetFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> The targetFeature you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

IsDisjointed(Feature)

This method returns if the current shape and the targetFeature have no points in common.

Return Value

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetFeature have no points in common. 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.

Parameters

Name Type Description
targetFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> The feature you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

IsDisjointed(BaseShape)

This method returns if the current shape and the targetShape have no points in common.

Return Value

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetShape have no points in common. 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.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

IsTopologicallyEqual(BaseShape)

This method returns if the current shape and the targetShape are topologically equal.

Remarks

Topologically equal means that the shapes are essentially the same. For example, let's say you have a line with two points, point A and point B. You also have another line that is made up of point A, point B and point C. Point A of line one shares the same vertex as point A of line two, and point B of line one shares the same vertex as point C of line two. They are both straight lines, so point B of line two would lie on the first line. Essentially the two lines are the same, with line 2 having just one extra point. Topologically they are the same line, so this method would return true.

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

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetShape are topologically equal.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

IsTopologicallyEqual(Feature)

This method returns if the current shape and the targetFeature are topologically equal.

Remarks

Topologically equal means that the shapes are essentially the same. For example, let's say you have a line with two points, point A and point B. You also have another line that is made up of point A, point B and point C. Point A of line one shares the same vertex as point A of line two, and point B of line one shares the same vertex as point C of line two. They are both straight lines, so point B of line two would lie on the first line. Essentially the two lines are the same, with line 2 having just one extra point. Topologically they are the same line, so this method would return true.

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

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetFeature are topologically equal.

Parameters

Name Type Description
targetFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> The targetFeature that contains a shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

IsWithin(BaseShape)

This method returns if the current shape lies within the interior of the targetShape.

Remarks

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

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape lies within the interior of the targetShape.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

IsWithin(Feature)

This method returns if the current shape lies within the interior of the targetFeature.

Remarks

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

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape lies within the interior of the targetFeature.

Parameters

Name Type Description
targetFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> The targetFeature that contains a shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

LoadFromWellKnownData(String)

This method hydrates the current shape with its data from well-known text.

Remarks

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

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
wellKnownText String<!– System.String –> This parameter is the well-known text you will use to hydrate your object.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

LoadFromWellKnownData(Byte[])

This method hydrates the current shape with its data from well-known binary.

Remarks

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.

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

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
wellKnownBinary Byte[]<!– System.Bytethinkgeo.mapsuite.windowsphonecore.pointshape –> This parameter is the well-known binary used to populate the shape.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Overlaps(Feature)

This method returns if the current shape and the targetFeature share some but not all points in common.

Remarks

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

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetFeature share some but not all points in common.

Parameters

Name Type Description
targetFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> The targetFeature that contains a shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Overlaps(BaseShape)

This method returns if the current shape and the targetShape share some but not all points in common.

Remarks

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

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetShape share some but not all points in common.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Register(Feature, Feature, DistanceUnit, GeographyUnit)

This method returns a BaseShape which has been registered from its original coordinate system to another based on two anchor PointShapes.

Remarks

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.

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

Return Type Description
BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> This method returns a BaseShape which has been registered from its original coordinate system to another based on two anchor PointShapes.

Parameters

Name Type Description
fromPoint Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> This parameter is the anchor PointFeature in the coordinate of origin.
toPoint Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> This parameter is the anchor PointFeature in the coordinate of destination.
fromUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This parameter is the DistanceUnit of the coordinate of origin.
toUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This parameter is the GeographyUnit of the coordinate of destination.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Register(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.

Remarks

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.

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

Return Type Description
BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> This method returns a BaseShape which has been registered from its original coordinate system to another based on two anchor PointShapes.

Parameters

Name Type Description
fromPoint PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> This parameter is the anchor PointShape in the coordinate of origin.
toPoint PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> This parameter is the anchor PointShape in the coordinate of destination.
fromUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This parameter is the DistanceUnit of the coordinate of origin.
toUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This parameter is the GeographyUnit of the coordinate of destination.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Rotate(PointShape, Single)

This method rotates a shape a number of degrees based on a pivot point.

Remarks

This method returns a shape rotated 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.

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

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
pivotPoint PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> The pivotPoint represents the center of rotation.
degreeAngle Single<!– System.Single –> The number of degrees of rotation required, from 0 to 360.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Rotate(BaseShape, PointShape, Single)

<!– static –> This method returns a shape rotated by a number of degrees based on a pivot point.

Remarks

This method returns a shape rotated 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.

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

Return Type Description
BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> This method returns a shape rotated by a number of degrees based on a pivot point.

Parameters

Name Type Description
sourceBaseShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> This parameter is the basis for the rotation.
pivotPoint PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> The pivotPoint represents the center of rotation.
degreeAngle Single<!– System.Single –> The number of degrees of rotation required, from 0 to 360.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Rotate(Feature, PointShape, Single)

<!– static –> This method returns a feature rotated by a number of degrees based on a pivot point.

Remarks

This method returns a feature rotated by a number of degrees based on a pivot point. By placing the pivot point in the center of the feature you can achieve in-place rotation. By moving the pivot point outside of the center of the feature you can translate the feature in a circular motion. Moving the pivot point further outside of the center will make the circular area larger.

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

Return Type Description
BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> This method returns a shape rotated by a number of degrees based on a pivot point.

Parameters

Name Type Description
targetFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> This parameter is the basis for the rotation.
pivotPoint PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> The pivotPoint represents the center of rotation.
degreeAngle Single<!– System.Single –> The number of degrees of rotation required, from 0 to 360.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

ScaleTo(Double)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
scale Double<!– System.Double –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

ScaleTo(BaseShape, Double)

<!– static –>

Return Value

Return Type Description
BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –>

Parameters

Name Type Description
baseShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –>
scale Double<!– System.Double –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

ToString()

Override the ToString() API by returning the X, Y , Z

Return Value

Return Type Description
String<!– System.String –> The returned string shows the X, Y , Z values.

Parameters

Name Type Description

<!– System.Object(overriden) –> Go Back

Touches(Feature)

This method returns of the current shape and the targetFeature have at least one boundary point in common, but no interior points.

Remarks

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

Return Type Description
Boolean<!– System.Boolean –> This method returns of the current shape and the targetFeature have at least one boundary point in common, but no interior points.

Parameters

Name Type Description
targetFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> The targetFeature which contains a shape that you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Touches(BaseShape)

This method returns if the current shape and the targetShape have at least one boundary point in common, but no interior points.

Remarks

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

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetShape have at least one boundary point in common, but no interior points.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

TranslateByDegree(Double, Double)

This method moves a base shape from one location to another based on a distance and a direction in degrees.

Remarks

This method moves a base shape 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.

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

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
distance Double<!– System.Double –> The distance is the number of units to move the shape using the angle specified. The distance unit will be the DistanceUnit specified in the distanceUnit parameter. The distance must be greater than or equal to 0.
angleInDegrees Double<!– System.Double –> A number between 0 and 360 degrees that represents the direction you wish to move the shape, with 0 being up.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

TranslateByDegree(BaseShape, Double, Double, GeographyUnit, DistanceUnit)

<!– static –> This method returns a shape repositioned from one location to another based on a distance and a direction in degrees.

Remarks

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.

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

Return Type Description
BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> This method returns a shape repositioned from one location to another based on a distance and a direction in degrees.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> This parameter is the basis of the move.
distance Double<!– System.Double –> The distance is the number of units to move the shape using the angle specified. The distance unit will be the one specified in the distanceUnit parameter. The distance must be greater than or equal to 0.
angleInDegrees Double<!– System.Double –> A number between 0 and 360 degrees that represents the direction you wish to move the shape, with 0 being up.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the geographic unit of the shape you are performing the operation on.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This is the distance unit you would like to use as the measure for the move. For example, if you select miles as your distance unit, then the distance will be calculated in miles.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

TranslateByDegree(Feature, Double, Double, GeographyUnit, DistanceUnit)

<!– static –> This method returns a feature repositioned from one location to another, based on a distance and a direction in degrees.

Remarks

This method returns a feature 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 feature 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.

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

Return Type Description
BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> This method returns a feature repositioned from one location to another, based on a distance and a direction in degrees.

Parameters

Name Type Description
targetFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> This parameter is the basis of the move.
distance Double<!– System.Double –> The distance is the number of units to move the shape using the angle specified. The distance unit will be the DistanceUnit specified in the distanceUnit parameter. The distance must be greater than or equal to 0.
angleInDegrees Double<!– System.Double –> A number between 0 and 360 degrees that represents the direction you wish to move the feature, with 0 being up.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the geographic unit of the shape you are performing the operation on.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This is the distance unit you would like to use as the measure for the move. For example, if you select miles as your distance unit, then the distance will be calculated in miles.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

TranslateByDegree(Double, Double, GeographyUnit, DistanceUnit)

This method moves a base shape from one location to another based on a distance and a direction in degrees.

Remarks

This method moves a base shape 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.

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

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
distance Double<!– System.Double –> The distance is the number of units to move the shape using the angle specified. The distance unit will be the DistanceUnit specified in the distanceUnit parameter. The distance must be greater than or equal to 0.
angleInDegrees Double<!– System.Double –> A number between 0 and 360 degrees that represents the direction you wish to move the shape, with 0 being up.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the geographic unit of the shape you are performing the operation on.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This is the DistanceUnit you would like to use as the measure of the translate. For example if you select miles as your distanceUnit then the distance will be calculated in miles.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

TranslateByOffset(Feature, Double, Double, GeographyUnit, DistanceUnit)

<!– static –> This method returns a feature repositioned from one location to another based on an X and Y offset distance.

Remarks

This method returns a feature 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.

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

Return Type Description
Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> This method returns a feature repositioned from one location to another based on an X and Y offset distance.

Parameters

Name Type Description
targetFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> This parameter is the basis of the moved feature.
xOffsetDistance Double<!– System.Double –> This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter.
yOffsetDistance Double<!– System.Double –> This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the geographic unit of the shape you are performing the operation on.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This is the distance unit you would like to use as the measure for the move. For example, if you select miles as your distance unit, then the xOffsetDistance and yOffsetDistance will be calculated in miles.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

TranslateByOffset(Double, Double, GeographyUnit, DistanceUnit)

This method moves a base shape from one location to another based on an X and Y offset distance.

Remarks

This method moves a base shape 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.

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

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
xOffsetDistance Double<!– System.Double –> This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter.
yOffsetDistance Double<!– System.Double –> This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the geographic unit of the base shape you are performing the operation on.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This is the distance unit you would like to use as the measure for the move. For example, if you select miles as your distance unit, then the xOffsetDistance and yOffsetDistance will be calculated in miles.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

TranslateByOffset(Double, Double)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
xOffsetDistance Double<!– System.Double –>
yOffsetDistance Double<!– System.Double –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

TranslateByOffset(BaseShape, Double, Double, GeographyUnit, DistanceUnit)

<!– static –> This method returns a shape repositioned from one location to another based on an X and Y offset distance.

Remarks

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.

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

Return Type Description
BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> This method returns a shape repositioned from one location to another based on an X and Y offset distance.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> This parameter is the basis of the moved shape.
xOffsetDistance Double<!– System.Double –> This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter.
yOffsetDistance Double<!– System.Double –> This is the number of vertical units of movement in the distance unit specified in the distanceUnit parameter.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the geographic unit of the shape you are performing the operation on.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This is the distance unit you would like to use as the measure for the move. For example, if you select miles as your distance unit, then the xOffsetDistance and yOffsetDistance will be calculated in miles.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Validate(ShapeValidationMode)

This method returns a ShapeValidationResult based on a series of tests.

Remarks

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.

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

Return Type Description
ShapeValidationResult<!– ThinkGeo.MapSuite.WindowsPhoneCore.ShapeValidationResult –> This method returns a ShapeValidationResult based on a series of tests.

Parameters

Name Type Description
validationMode ShapeValidationMode<!– ThinkGeo.MapSuite.WindowsPhoneCore.ShapeValidationMode –> This parameter determines whether the test is simple or advanced. In some cases, the advanced tests can take some time. The simple test is designed to always be fast.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Protected Methods

BufferCore(Double, Int32, BufferCapType, GeographyUnit, DistanceUnit)

This method computes the area containing all of the points within a given distance from this shape.

Remarks

This method computes the area containing all of the points within a given distance from this shape. In this case, you will be using the rounded RoundedBufferCapStyle and the default 8 quadrant segments. The distance unit is determined by the distanceUnit argument.

Overriding:

Please ensure that you validate the parameters being passed in and raise the exceptions defined above.

Return Value

Return Type Description
MultipolygonShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape –> The return type is a MultiPolygonShape that represents all of the points within a given distance from the shape.

Parameters

Name Type Description
distance Double<!– System.Double –> The distance is the number of units to buffer the current shape. The distance unit will be the one specified in the distanceUnit paramater. The distance must be greater than 0.
quadrantSegments Int32<!– System.Int32 –> The number of quadrantSegments used in the buffer logic.
bufferCapType BufferCapType<!– ThinkGeo.MapSuite.WindowsPhoneCore.BufferCapType –> The bufferCapType used in the buffer logic.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the geographic unit of the shape you are performing the operation on.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This is the distance unit you would like to use as the distance. For example, if you select miles as your distanceUnit, then the distance will be calculated in miles for the operation.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

CloneDeepCore()

This method returns a complete copy of the shape without any references in common.

Remarks

When you override this method, you need to ensure that there are no references in common between the original and the copy.

Return Value

Return Type Description
BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> This method returns a complete copy of the shape without any references in common.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

ContainsCore(BaseShape)

This method returns if the targetShape lies within the interior of the current shape.

Remarks

Overriding:

Please ensure that you validate the parameters being passed in and raise the exceptions defined above.

Return Value

Return Type Description
Boolean<!– System.Boolean –> This method returns if the targetShape lies within the interior of the current shape.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

CrossesCore(BaseShape)

This method returns if the current shape and the targetShape share some but not all interior points.

Remarks

Overriding:

Please ensure that you validate the parameters being passed in and raise the exceptions defined above.

Return Value

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetShape share some but not all interior points.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetBoundingBoxCore()

This method calculates the smallest RectangleShape that encompasses the entire geometry.

Remarks

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

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> The RectangleShape returned is the smallest RectangleShape that can encompass the entire geometry.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetCenterPointCore()

This method returns the center point of the current shape's bounding box.

Remarks

This method returns the center point of the current shape's bounding box. It is important to note that this is the center point of the bounding box. There are numerous ways to calculate the “center” of a geometry, such as its weighted center, etc. You can find other centers by examining the various methods of the shape itself.

Overriding:

Please ensure that you validate the parameters being passed in and raise the exceptions defined above.

Return Value

Return Type Description
PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> A PointShape representing the center point of the current shape's bounding box.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetClosestPointToCore(BaseShape, GeographyUnit)

This method returns the point of the current shape that is closest to the target shape.

Remarks

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

Return Type Description
PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> A PointShape representing the closest point of the current shape to the targetShape.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you are trying to find the closest point to.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the GeographicUnit of the shape you are performing the operation on.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

GetCrossingCore(BaseShape)

This method returns the crossing points between the current shape and the passed-in target shape.

Remarks

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

Return Type Description
MultipointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.MultipointShape –> This method returns the crossing points between the current shape and the passed-in target shape.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The target shape you wish to get crossing with.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

GetDistanceToCore(BaseShape, GeographyUnit, DistanceUnit)

This method computes the distance between the current shape and the targetShape.

Return Value

Return Type Description
Double<!– System.Double –> This method returns the distance between the current shape and the targetShape.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you are trying to find the distance to.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the GeographyUnit of the shape you are performing the operation on.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This is the DistanceUnit you would like to use for the distance parameter. For example, if you select miles as your distanceUnit, then the distance will be measured in miles.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

GetShortestLineToCore(BaseShape, GeographyUnit)

This method returns the shortest LineShape between this shape and the targetShape parameter.

Remarks

This method returns a LineShape representing the shortest distance between the shape you're calling the method on and the targetShape. In some instances, based on the GeographicType or Projection, the line may not be straight. This is effect is similar to what you might see on an international flight when the displayed flight path is curved.

Overriding:

Please ensure that you validate the parameters being passed in and raise the exceptions defined above.

Return Value

Return Type Description
MultilineShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.MultilineShape –> A LineShape representing the shortest distance between the shape you're calling the method on and the targetShape.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you are trying to find the distance to.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> The geographic unit of the shape you are trying to find the distance to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

GetWellKnownBinaryCore(WkbByteOrder)

This method returns a byte array that represents the shape in well-known binary.

Remarks

This method returns a byte array that represents the shape in well-known binary. Well-known binary allows you to describe a geometry as a binary array. Well-known binary is useful when you want to save a geometry in an efficient format using as little space as possible. An alternative to well-known binary is well-known text, which is a textual representation of a geometry object. We have methods that work with well-known text as well.

Return Value

Return Type Description
Byte[]<!– System.Bytethinkgeo.mapsuite.windowsphonecore.pointshape –> This method returns a byte array that represents the shape in well-known binary.

Parameters

Name Type Description
byteOrder WkbByteOrder<!– ThinkGeo.MapSuite.WindowsPhoneCore.WkbByteOrder –> This parameter specifies whether the byte order is big- or little-endian.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

GetWellKnownTextCore()

This method returns the well-known text representation of this shape.

Remarks

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)

POLYGON9)

MULTIPOINT(3.7 9.7,4.9 11.6)

MULTILINESTRING10)

MULTIPOLYGON11),12))

Return Value

Return Type Description
String<!– System.String –> This method returns a string that represents the shape in well-known text.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

GetWellKnownTypeCore()

This method returns the well-known type for the shape.

Return Value

Return Type Description
WellKnownType<!– ThinkGeo.MapSuite.WindowsPhoneCore.WellKnownType –> This method returns the well-known type for the shape.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

IntersectsCore(BaseShape)

This method returns if the current shape and the targetShape have at least one point in common.

Remarks

Overriding:

Please ensure that you validate the parameters being passed in and raise the exceptions defined above.

Return Value

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetShape have at least one point in common.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

IsDisjointedCore(BaseShape)

This method returns if the current shape and the targetShape have no points in common.

Remarks

Overriding:

Please ensure that you validate the parameters being passed in and raise the exceptions defined above.

Return Value

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetShape have no points in common.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

IsTopologicallyEqualCore(BaseShape)

This method returns if the current shape and the targetShape are topologically equal.

Remarks

Topologically equal means that the shapes are essentially the same. For example, let's say you have a line with two points, point A and point B. You also have another line that is made up of point A, point B and point C. Point A of line one shares the same vertex as point A of line two, and point B of line one shares the same vertex as point C of line two. They are both straight lines, so point B of line two would lie on the first line. Essentially the two lines are the same, with line 2 having just one extra point. Topologically they are the same line, so this method would return true.

Overriding:

Please ensure that you validate the parameters being passed in and raise the exceptions defined above.

Return Value

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetShape are topologically equal.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

IsWithinCore(BaseShape)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

LoadFromWellKnownDataCore(Byte[])

This method hydrates the current shape with its data from well-known binary.

Remarks

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.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
wellKnownBinary Byte[]<!– System.Bytethinkgeo.mapsuite.windowsphonecore.pointshape –> This parameter is the well-known binary used to populate the shape.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

LoadFromWellKnownDataCore(String)

This method hydrates the current shape with its data from well-known text.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
wellKnownText String<!– System.String –> This parameter is the well-known text you will use to hydrate your object.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

OverlapsCore(BaseShape)

This method returns if the current shape and the targetShape share some but not all points in common.

Remarks

Overriding:

Please ensure that you validate the parameters being passed in and raise the exceptions defined above.

Return Value

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetShape share some but not all points in common.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

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.

Remarks

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

Return Type Description
BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> This method returns a BaseShape which has been registered from its original coordinate system to another based on two anchor PointShapes.

Parameters

Name Type Description
fromPoint PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> This parameter is the anchor PointShape in the coordinate of origin.
toPoint PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> This parameter is the anchor PointShape in the coordinate of destination.
fromUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This parameter is the DistanceUnit of the coordinate of origin.
toUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This parameter is the GeographyUnit of the coordinate of destination.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

RotateCore(PointShape, Single)

This method rotates the shape a number of degrees based on a pivot point.

Remarks

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

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
pivotPoint PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> The pivotPoint represents the center of rotation.
degreeAngle Single<!– System.Single –> The number of degrees of rotation required from 0 to 360.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

ScaleToCore(Double)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
scale Double<!– System.Double –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

TouchesCore(BaseShape)

This method returns if the current shape and the targetShape have at least one boundary point in common, but no interior points.

Remarks

Overriding:

Please ensure that you validate the parameters being passed in and raise the exceptions defined above.

Return Value

Return Type Description
Boolean<!– System.Boolean –> This method returns if the current shape and the targetShape have at least one boundary point in common, but no interior points.

Parameters

Name Type Description
targetShape BaseShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> The shape you wish to compare the current one to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

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.

Overloads

In this overload, the distance is in the same GeographicUnit as the shape.

Remarks

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

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
distance Double<!– System.Double –> The distance is the number of units to move the shape in the angle specified. The distance unit will be the same as the GeographyUnit for the shape. The distance must be greater than or equal to 0.
angleInDegrees Double<!– System.Double –> A number between 0 and 360 degrees that represents the direction you wish to move the shape, with 0 being up.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the GeographicUnit of the shape you are performing the operation on.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This is the DistanceUnit you would like to use for the distance parameter. For example, if you select miles as your distanceUnit, then the distance will be measured in miles.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

TranslateByOffsetCore(Double, Double, GeographyUnit, DistanceUnit)

This method moves the base shape from one location to another based on an X and Y offset distance.

Overloads

In this overload, the X and Y offset are based on the DistanceUnit you specify, regardless of the shape's GeographicUnit.

Remarks

This method moves the base shape 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 1 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 to on the X axis and 3 miles on the Y axis.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
xOffsetDistance Double<!– System.Double –> This is the number of horizontal units of movement in the DistanceUnit specified as the distanceUnit.
yOffsetDistance Double<!– System.Double –> This is the number of horizontal units of movement in the DistanceUnit specified as the distanceUnit.
shapeUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the GeographicUnit of the shape you are performing the operation on.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This is the DistanceUnit you would like to use as the measure for the move. For example, if you select miles as your distanceUnit, then the xOffsetDistance and yOffsetDistance will be calculated in miles.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

ValidateCore(ShapeValidationMode)

This method returns a ShapeValidationResult based on a series of tests.

Remarks

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

Return Type Description
ShapeValidationResult<!– ThinkGeo.MapSuite.WindowsPhoneCore.ShapeValidationResult –> This method returns a ShapeValidationResult based on a series of tests.

Parameters

Name Type Description
validationMode ShapeValidationMode<!– ThinkGeo.MapSuite.WindowsPhoneCore.ShapeValidationMode –> This parameter determines whether the test is simple or advanced. In some cases, the advanced tests can take some time. The simple test is designed to always be fast.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

Public Properties

CanRotate

This property specifies whether the shape can be rotated.

Remarks

If this property returns false and you attempt call the rotate method, it will throw a NotImplementedException.

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape(overriden) –> Go Back

Id

The id of the shape.

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

Tag

The tag of the shape.

Return Value

Return Type
Object<!– System.Object –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape –> Go Back

X

This property represents the X (horizontal) axis.

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> Go Back

Y

This property represents the Y (vertical) axis.

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> Go Back

Z

This property represents the Z (depth) axis.

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> Go Back

Protected Properties

Public Events

1) , 5) , 9) 2 2,6 2,6 6,2 6,2 2),(3 3,4 3,4 4,3 4,3 3
2) , 6) , 10) 4 5,11 51,21 26),(-4 -7,-9 -7,-14 -3
3) , 7) , 11) (2 2,6 2,6 6,2 6,2 2),(3 3,4 3,4 4,3 4,3 3
4) , 8) , 12) 4 4,7 3,7 5,4 4
thinkgeo.mapsuite.windowsphonecore.pointshape.txt · Last modified: 2017/03/16 21:59 (external edit)