====== ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape ====== {{section>upgrade_map_suite_to_10.0}} This class represents a rectangle, which is defined as an upper left point and a lower right point. ===== Inheritance Hierarchy ===== *System.Object **[[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape]] ***[[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape]] ****[[ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape]] ===== Members Summary ===== ==== Public Constructors ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | {{wiki:PublicMethod.gif|Public Method}}[[#RectangleShape()|RectangleShape]] | | | This constructor creates a RectangleShape. | | {{wiki:PublicMethod.gif|Public Method}}[[#RectangleShape(PointShape, PointShape)|RectangleShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]], [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | | This constructor creates a RectangleShape. | | {{wiki:PublicMethod.gif|Public Method}}[[#RectangleShape(Double, Double, Double, Double)|RectangleShape]] | Double, Double, Double, Double | | This constructor creates a RectangleShape. | | {{wiki:PublicMethod.gif|Public Method}}[[#RectangleShape(String)|RectangleShape]] | String | | This constructor creates a RectangleShape. | | {{wiki:PublicMethod.gif|Public Method}}[[#RectangleShape(Byte[])|RectangleShape]] | Byte[] | | This constructor creates a RectangleShape. | ==== Protected Constructors ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ ==== Public Methods ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | {{wiki:PublicMethod.gif|Public Method}}[[#Buffer(Double, GeographyUnit, DistanceUnit)|Buffer]] | Double, [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method computes the area containing all of the points within a given distance from this shape. | | {{wiki:PublicMethod.gif|Public Method}}[[#Buffer(Double, Int32, BufferCapType, GeographyUnit, DistanceUnit)|Buffer]] | Double, Int32, [[ThinkGeo.MapSuite.WindowsPhoneCore.BufferCapType|BufferCapType]], [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method computes the area containing all of the points within a given distance from this shape. | | {{wiki:PublicMethod.gif|Public Method}}[[#Buffer(Double, Int32, GeographyUnit, DistanceUnit)|Buffer]] | Double, Int32, [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method computes the area containing all of the points within a given distance from this shape. | | {{wiki:PublicMethod.gif|Public Method}}[[#CloneDeep()|CloneDeep]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a complete copy of the shape without any references in common. | | {{wiki:PublicMethod.gif|Public Method}}[[#Contains(Feature)|Contains]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the targetFeature lies within the interior of the current shape. | | {{wiki:PublicMethod.gif|Public Method}}[[#Contains(BaseShape)|Contains]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the targetShape lies within the interior of the current shape. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#CreateShapeFromWellKnownData(String)|CreateShapeFromWellKnownData]] | String | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method creates a BaseShape from a string of well-known text. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#CreateShapeFromWellKnownData(Byte[])|CreateShapeFromWellKnownData]] | Byte[] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method creates a BaseShape from a string of well-known binary. | | {{wiki:PublicMethod.gif|Public Method}}[[#Crosses(BaseShape)|Crosses]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetShape share some but not all interior points. | | {{wiki:PublicMethod.gif|Public Method}}[[#Crosses(Feature)|Crosses]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetFeature share some but not all interior points. | | {{wiki:PublicMethod.gif|Public Method}}[[#Equals(Object)|Equals]] | Object | Object | | | {{wiki:PublicMethod.gif|Public Method}}[[#ExpandToInclude(IEnumerable)|ExpandToInclude]] | IEnumerable<[[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]]> | | This method will expand the current RectangleShape to include the shapes in the targetShapes parameter. | | {{wiki:PublicMethod.gif|Public Method}}[[#ExpandToInclude(IEnumerable)|ExpandToInclude]] | IEnumerable<[[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]]> | | This method will expand the current RectangleShape to include the features in the targetFeatures parameter. | | {{wiki:PublicMethod.gif|Public Method}}[[#ExpandToInclude(Feature)|ExpandToInclude]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | | This method will expand the current RectangleShape to include the target feature parameter. | | {{wiki:PublicMethod.gif|Public Method}}[[#ExpandToInclude(BaseShape)|ExpandToInclude]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | | This method will expand the current RectangleShape to include the targetShape parameter. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetArea(GeographyUnit, AreaUnit)|GetArea]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaUnit|AreaUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the area of the shape, defined as the size of the region enclosed by the figure. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetBoundingBox()|GetBoundingBox]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method calculates the smallest RectangleShape that encompasses the entire geometry. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetCenterPoint()|GetCenterPoint]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns the center point of the current shape's bounding box. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetClosestPointTo(Feature, GeographyUnit)|GetClosestPointTo]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]], [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns the point of the current shape that is closest to the target feature. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetClosestPointTo(BaseShape, GeographyUnit)|GetClosestPointTo]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]], [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns the point of the current shape that is closest to the target shape. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetConvexHull()|GetConvexHull]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the convex hull of the shape, defined as the smallest convex ring that contains all of the points in the shape. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetCrossing(BaseShape)|GetCrossing]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns the crossing points between the current shape and the passed-in target shape. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetDifference(Feature)|GetDifference]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the difference between current shape and the specified feature, defined as the set of all points which lie in the current shape but not in the targetShape. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetDifference(AreaBaseShape)|GetDifference]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the difference between two shapes, defined as the set of all points which lie in the current shape but not in the targetShape. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetDistanceTo(Feature, GeographyUnit, DistanceUnit)|GetDistanceTo]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]], [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method computes the distance between the current shape and the targetFeature. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetDistanceTo(BaseShape, GeographyUnit, DistanceUnit)|GetDistanceTo]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]], [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method computes the distance between the current shape and the targetShape. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetFeature(IDictionary)|GetFeature]] | IDictionary | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|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. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetFeature()|GetFeature]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | Get a corresponding feature which has the same Id and BaseShape as the current shape. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetHashCode()|GetHashCode]] | | Object | | | {{wiki:PublicMethod.gif|Public Method}}[[#GetIntersection(RectangleShape)|GetIntersection]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape|RectangleShape]] | | This method returns the intersection of the current RectangleShape and the target shape, defined as the set of all points which lie in both the current shape and the target shape. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetIntersection(AreaBaseShape)|GetIntersection]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the intersection of the current shape and the target shape, defined as the set of all points which lie in both the current shape and the target shape. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetIntersection(Feature)|GetIntersection]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the intersection of the current shape and the target feature, defined as the set of all points which lie in both the current shape and the target feature. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetPerimeter(GeographyUnit, DistanceUnit)|GetPerimeter]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the perimeter of the shape, defined as the sum of the lengths of all its sides. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetShortestLineTo(BaseShape, GeographyUnit)|GetShortestLineTo]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]], [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns the shortest LineShape between this shape and the targetShape parameter. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetShortestLineTo(Feature, GeographyUnit)|GetShortestLineTo]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]], [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns the shortest LineShape between this shape and the targetFeature. parameter. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetSymmetricalDifference(Feature)|GetSymmetricalDifference]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the symmetrical difference between current shape and the specified feature, defined as the set of all points which lie in the current shape or the targetFeature but not both. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetSymmetricalDifference(AreaBaseShape)|GetSymmetricalDifference]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the symmetrical difference between two shapes, defined as the set of all points which lie in the current shape or the targetShape but not both. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetType()|GetType]] | | Object | | | {{wiki:PublicMethod.gif|Public Method}}[[#GetWellKnownBinary()|GetWellKnownBinary]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a byte array that represents the shape in well-known binary. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetWellKnownBinary(WkbByteOrder)|GetWellKnownBinary]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.WkbByteOrder|WkbByteOrder]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a byte array that represents the shape in well-known binary. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetWellKnownText()|GetWellKnownText]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns the well-known text representation of this shape. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetWellKnownType()|GetWellKnownType]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns the well-known type for the shape. | | {{wiki:PublicMethod.gif|Public Method}}[[#Intersects(Feature)|Intersects]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetFeature have at least one point in common. | | {{wiki:PublicMethod.gif|Public Method}}[[#Intersects(BaseShape)|Intersects]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetShape have at least one point in common. | | {{wiki:PublicMethod.gif|Public Method}}[[#IsDisjointed(Feature)|IsDisjointed]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetFeature have no points in common. | | {{wiki:PublicMethod.gif|Public Method}}[[#IsDisjointed(BaseShape)|IsDisjointed]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetShape have no points in common. | | {{wiki:PublicMethod.gif|Public Method}}[[#IsTopologicallyEqual(Feature)|IsTopologicallyEqual]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetFeature are topologically equal. | | {{wiki:PublicMethod.gif|Public Method}}[[#IsTopologicallyEqual(BaseShape)|IsTopologicallyEqual]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetShape are topologically equal. | | {{wiki:PublicMethod.gif|Public Method}}[[#IsWithin(BaseShape)|IsWithin]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape lies within the interior of the targetShape. | | {{wiki:PublicMethod.gif|Public Method}}[[#IsWithin(Feature)|IsWithin]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape lies within the interior of the targetFeature. | | {{wiki:PublicMethod.gif|Public Method}}[[#LoadFromWellKnownData(String)|LoadFromWellKnownData]] | String | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method hydrates the current shape with its data from well-known text. | | {{wiki:PublicMethod.gif|Public Method}}[[#LoadFromWellKnownData(Byte[])|LoadFromWellKnownData]] | Byte[] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method hydrates the current shape with its data from well-known binary. | | {{wiki:PublicMethod.gif|Public Method}}[[#Overlaps(BaseShape)|Overlaps]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetShape share some but not all points in common. | | {{wiki:PublicMethod.gif|Public Method}}[[#Overlaps(Feature)|Overlaps]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetFeature share some but not all points in common. | | {{wiki:PublicMethod.gif|Public Method}}[[#Register(Feature, Feature, DistanceUnit, GeographyUnit)|Register]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]], [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a BaseShape which has been registered from its original coordinate system to another based on two anchor PointShapes. | | {{wiki:PublicMethod.gif|Public Method}}[[#Register(PointShape, PointShape, DistanceUnit, GeographyUnit)|Register]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]], [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a BaseShape which has been registered from its original coordinate system to another based on two anchor PointShapes. | | {{wiki:PublicMethod.gif|Public Method}}[[#Rotate(PointShape, Single)|Rotate]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]], Single | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method rotates a shape a number of degrees based on a pivot point. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#Rotate(Feature, PointShape, Single)|Rotate]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]], [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]], Single | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a feature rotated by a number of degrees based on a pivot point. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#Rotate(BaseShape, PointShape, Single)|Rotate]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]], [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]], Single | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a shape rotated by a number of degrees based on a pivot point. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#ScaleDown(AreaBaseShape, Double)|ScaleDown]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]], Double | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns a new area shape that has been scaled down by the percentage given in the percentage parameter. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#ScaleDown(Feature, Double)|ScaleDown]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]], Double | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns a new area feature that has been scaled down by the percentage given in the percentage parameter. | | {{wiki:PublicMethod.gif|Public Method}}[[#ScaleDown(Double)|ScaleDown]] | Double | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method decreases the size of the area shape by the percentage given in the percentage parameter. | | {{wiki:PublicMethod.gif|Public Method}}[[#ScaleTo(Double)|ScaleTo]] | Double | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#ScaleTo(BaseShape, Double)|ScaleTo]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]], Double | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#ScaleUp(AreaBaseShape, Double)|ScaleUp]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]], Double | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns a new area shape that has been scaled up by the percentage given in the percentage parameter. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#ScaleUp(Feature, Double)|ScaleUp]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]], Double | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns a new area shape that has been scaled up by the percentage given in the percentage parameter. | | {{wiki:PublicMethod.gif|Public Method}}[[#ScaleUp(Double)|ScaleUp]] | Double | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method increases the size of the area shape by the percentage given in the percentage parameter. | | {{wiki:PublicMethod.gif|Public Method}}[[#Simplify(GeographyUnit, Double, DistanceUnit, SimplificationType)|Simplify]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], Double, [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.SimplificationType|SimplificationType]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method performed a simplification operation based on the parameters passed in. Simplify permanently alters the input geometry so that the geometry becomes topologically consistent. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#Simplify(AreaBaseShape, Double, SimplificationType)|Simplify]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]], Double, [[ThinkGeo.MapSuite.WindowsPhoneCore.SimplificationType|SimplificationType]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method performed a simplification operation based on the parameters passed in. Simplify permanently alters the input geometry so that the geometry becomes topologically consistent. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#Simplify(AreaBaseShape, GeographyUnit, Double, DistanceUnit, SimplificationType)|Simplify]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]], [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], Double, [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.SimplificationType|SimplificationType]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method performed a simplification operation based on the parameters passed in. Simplify permanently alters the input geometry so that the geometry becomes topologically consistent. | | {{wiki:PublicMethod.gif|Public Method}}[[#Simplify(Double, SimplificationType)|Simplify]] | Double, [[ThinkGeo.MapSuite.WindowsPhoneCore.SimplificationType|SimplificationType]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method performed a simplification operation based on the parameters passed in. Simplify permanently alters the input geometry so that the geometry becomes topologically consistent. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#Split(Feature, Feature)|Split]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]], [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns a collection of Features split by the specified parameters. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#Split(AreaBaseShape, AreaBaseShape)|Split]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]], [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns a collection of MultiPolygonShapes split by the specified parameters. | | {{wiki:PublicMethod.gif|Public Method}}[[#ToPolygon()|ToPolygon]] | | | This method returns the current shape as a PolygonShape. | | {{wiki:PublicMethod.gif|Public Method}}[[#ToString()|ToString]] | | Object(overriden) | This method returns a formatted representation of the UpperLeftPoint.X, UpperLeftPoint.Y, LowerRightPoint.X and LowerRightPoint.Y value. | | {{wiki:PublicMethod.gif|Public Method}}[[#Touches(BaseShape)|Touches]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetShape have at least one boundary point in common, but no interior points. | | {{wiki:PublicMethod.gif|Public Method}}[[#Touches(Feature)|Touches]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns of the current shape and the targetFeature have at least one boundary point in common, but no interior points. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#TranslateByDegree(Feature, Double, Double, GeographyUnit, DistanceUnit)|TranslateByDegree]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]], Double, Double, [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a feature repositioned from one location to another, based on a distance and a direction in degrees. | | {{wiki:PublicMethod.gif|Public Method}}[[#TranslateByDegree(Double, Double, GeographyUnit, DistanceUnit)|TranslateByDegree]] | Double, Double, [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method moves a base shape from one location to another based on a distance and a direction in degrees. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#TranslateByDegree(BaseShape, Double, Double, GeographyUnit, DistanceUnit)|TranslateByDegree]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]], Double, Double, [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a shape repositioned from one location to another based on a distance and a direction in degrees. | | {{wiki:PublicMethod.gif|Public Method}}[[#TranslateByDegree(Double, Double)|TranslateByDegree]] | Double, Double | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method moves a base shape from one location to another based on a distance and a direction in degrees. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#TranslateByOffset(BaseShape, Double, Double, GeographyUnit, DistanceUnit)|TranslateByOffset]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]], Double, Double, [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a shape repositioned from one location to another based on an X and Y offset distance. | | {{wiki:PublicMethod.gif|Public Method}}[[#TranslateByOffset(Double, Double)|TranslateByOffset]] | Double, Double | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#TranslateByOffset(Feature, Double, Double, GeographyUnit, DistanceUnit)|TranslateByOffset]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]], Double, Double, [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a feature repositioned from one location to another based on an X and Y offset distance. | | {{wiki:PublicMethod.gif|Public Method}}[[#TranslateByOffset(Double, Double, GeographyUnit, DistanceUnit)|TranslateByOffset]] | Double, Double, [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method moves a base shape from one location to another based on an X and Y offset distance. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#Union(IEnumerable)|Union]] | IEnumerable<[[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]]> | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the union of the specified area shapes. | | {{wiki:PublicMethod.gif|Public Method}}[[#Union(AreaBaseShape)|Union]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the union of the current shape and the target shape, defined as the set of all points in the current shape or the target shape. | | {{wiki:PublicMethod.gif|Public Method}}[[#Union(Feature)|Union]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the union of the current shape and the target feature, defined as the set of all points in the current shape or the target feature. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#Union(IEnumerable)|Union]] | IEnumerable<[[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]]> | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the union of the current shape and the target features, defined as the set of all points in the current shape or the target features. | | {{wiki:PublicMethod.gif|Public Method}}[[#Validate(ShapeValidationMode)|Validate]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.ShapeValidationMode|ShapeValidationMode]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a ShapeValidationResult based on a series of tests. | ==== Protected Methods ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | {{wiki:ProtectedMethod.gif|Protected Method}}[[#BufferCore(Double, Int32, BufferCapType, GeographyUnit, DistanceUnit)|BufferCore]] | Double, Int32, [[ThinkGeo.MapSuite.WindowsPhoneCore.BufferCapType|BufferCapType]], [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method computes the area containing all of the points within a given distance from this shape. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#CloneDeepCore()|CloneDeepCore]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method returns a complete copy of the shape without any references in common. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#ContainsCore(BaseShape)|ContainsCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the targetShape lies within the interior of the current shape. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#CrossesCore(BaseShape)|CrossesCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetShape share some but not all interior points. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#ExpandToIncludeCore(BaseShape)|ExpandToIncludeCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | | This method will expand the current RectangleShape to include the shape in the targetShape parameter. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#Finalize()|Finalize]] | | Object | | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetAreaCore(GeographyUnit, AreaUnit)|GetAreaCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaUnit|AreaUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]](overriden) | This method returns the area of the shape (defined as the size of the region enclosed by the figure). | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetBoundingBoxCore()|GetBoundingBoxCore]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method calculates the smallest RectangleShape that encompasses the entire geometry. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetCenterPointCore()|GetCenterPointCore]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method returns the center point of the current shape's bounding box. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetClosestPointToCore(BaseShape, GeographyUnit)|GetClosestPointToCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]], [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method returns the point of the current shape that is closest to the target shape. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetConvexHullCore()|GetConvexHullCore]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the convex hull of the shape, defined as the smallest convex ring that contains all of the points in the shape. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetCrossingCore(BaseShape)|GetCrossingCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method returns the crossing points between the current shape and the passed-in target shape. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetDifferenceCore(AreaBaseShape)|GetDifferenceCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the difference between two shapes, defined as the set of all points which lie in the current shape but not in the targetShape. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetDistanceToCore(BaseShape, GeographyUnit, DistanceUnit)|GetDistanceToCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]], [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method computes the distance between the current shape and the targetShape. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetIntersectionCore(AreaBaseShape)|GetIntersectionCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the intersection of the current shape and the target shape, defined as the set of all points which lie in both the current shape and the target shape. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetPerimeterCore(GeographyUnit, DistanceUnit)|GetPerimeterCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]](overriden) | This method returns the perimeter of the shape (defined as the sum of the lengths of all its sides). | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetShortestLineToCore(BaseShape, GeographyUnit)|GetShortestLineToCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]], [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns the shortest LineShape between this shape and the targetShape parameter. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetSymmetricalDifferenceCore(AreaBaseShape)|GetSymmetricalDifferenceCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the symmetrical difference between two shapes, defined as the set of all points which lie in the current shape or the targetShape but not both. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetWellKnownBinaryCore(WkbByteOrder)|GetWellKnownBinaryCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.WkbByteOrder|WkbByteOrder]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method returns a byte array that represents the shape in well-known binary. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetWellKnownTextCore()|GetWellKnownTextCore]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method returns the well-known text representation of this shape. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetWellKnownTypeCore()|GetWellKnownTypeCore]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method returns the well-known type for the shape. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#IntersectsCore(BaseShape)|IntersectsCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetShape have at least one point in common. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#IsDisjointedCore(BaseShape)|IsDisjointedCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method returns whether the current shape and the targetShape have no points in common. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#IsTopologicallyEqualCore(BaseShape)|IsTopologicallyEqualCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetShape are topologically equal. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#IsWithinCore(BaseShape)|IsWithinCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape lies within the interior of the targetShape. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#LoadFromWellKnownDataCore(Byte[])|LoadFromWellKnownDataCore]] | Byte[] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method hydrates the current shape with its data from well-known binary. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#LoadFromWellKnownDataCore(String)|LoadFromWellKnownDataCore]] | String | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method hydrates the current shape with its data from well-known text. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#MemberwiseClone()|MemberwiseClone]] | | Object | | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#OverlapsCore(BaseShape)|OverlapsCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetShape share some but not all points in common. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#RegisterCore(PointShape, PointShape, DistanceUnit, GeographyUnit)|RegisterCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]], [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method returns a MultipointShape which has been registered from its original coordinate system to another based on two anchor PointShapes. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#RotateCore(PointShape, Single)|RotateCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]], Single | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method rotates a shape a number of degrees based on a pivot point. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#ScaleDownCore(Double)|ScaleDownCore]] | Double | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]](overriden) | This method decreases the size of the area shape by the percentage given in the percentage parameter. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#ScaleToCore(Double)|ScaleToCore]] | Double | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#ScaleUpCore(Double)|ScaleUpCore]] | Double | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]](overriden) | This method increases the size of the area shape by the percentage given in the percentage parameter. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#SimplifyCore(Double, SimplificationType)|SimplifyCore]] | Double, [[ThinkGeo.MapSuite.WindowsPhoneCore.SimplificationType|SimplificationType]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method performed a simplification operation based on the parameters passed in. Simplify permanently alters the input geometry so that the geometry becomes topologically consistent. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#TouchesCore(BaseShape)|TouchesCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns if the current shape and the targetShape have at least one boundary point in common, but no interior points. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#TranslateByDegreeCore(Double, Double, GeographyUnit, DistanceUnit)|TranslateByDegreeCore]] | Double, Double, [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method moves the shape from one location to another, based on a direction in degrees and distance. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#TranslateByOffsetCore(Double, Double, GeographyUnit, DistanceUnit)|TranslateByOffsetCore]] | Double, Double, [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]], [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method moves the base shape from one location to another, based on an X and Y offset distance. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#UnionCore(AreaBaseShape)|UnionCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method returns the union of the current shape and the target shapes, defined as the set of all points in the current shape or the target shape. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#ValidateCore(ShapeValidationMode)|ValidateCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.ShapeValidationMode|ShapeValidationMode]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]](overriden) | This method returns a ShapeValidationResult based on a series of tests. | ==== Public Properties ==== ^ Name ^ Return ^ DeclaringType ^ Summary ^ | {{wiki:PublicProperty.gif|Public Property}}[[#CanRotate|CanRotate]] | Boolean | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This property specifies whether the shape can be rotated. | | {{wiki:PublicProperty.gif|Public Property}}[[#Height|Height]] | Double | | This property returns the height of the RectangleShape in the unit of the shape. | | {{wiki:PublicProperty.gif|Public Property}}[[#Id|Id]] | String | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The id of the shape. | | {{wiki:PublicProperty.gif|Public Property}}[[#LowerLeftPoint|LowerLeftPoint]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | | This property returns the PointShape that represents the lower left point of the RectangleShape. | | {{wiki:PublicProperty.gif|Public Property}}[[#LowerRightPoint|LowerRightPoint]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | | This property returns or sets the PointShape that represents the lower right point of the RectangleShape. | | {{wiki:PublicProperty.gif|Public Property}}[[#Tag|Tag]] | Object | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The tag of the shape. | | {{wiki:PublicProperty.gif|Public Property}}[[#UpperLeftPoint|UpperLeftPoint]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | | This property returns or sets the PointShape that represents the upper left point of the RectangleShape. | | {{wiki:PublicProperty.gif|Public Property}}[[#UpperRightPoint|UpperRightPoint]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | | This property returns the PointShape that represents the upper right point of the RectangleShape. | | {{wiki:PublicProperty.gif|Public Property}}[[#Width|Width]] | Double | | This property returns the width of the RectangleShape in the unit of the shape. | ==== Protected Properties ==== ^ Name ^ Return ^ DeclaringType ^ Summary ^ ==== Public Events ==== ^ Name ^ Event Arguments ^ DeclaringType ^ Summary ^ ===== Public Constructors ===== ==== RectangleShape() ==== This constructor creates a RectangleShape. === Overloads === This overload creates a RectangleShape with default values. === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Constructors|Go Back]] ==== RectangleShape(PointShape, PointShape) ==== This constructor creates a RectangleShape. === Overloads === This overload creates a RectangleShape by allowing you to specify the upperLeft and lowerRight points of the rectangle. === Parameters === ^ Name ^ Type ^ Description ^ | upperLeftPoint | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | This parameter specifies the upper left point of the rectangle. | | lowerRightPoint | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | This parameter specifies the lower right point of the rectangle. | [[#Public Constructors|Go Back]] ==== RectangleShape(Double, Double, Double, Double) ==== This constructor creates a RectangleShape. === Overloads === This overload creates a RectangleShape by allowing you to specify the maximum and minimum of the X & Y values. === Parameters === ^ Name ^ Type ^ Description ^ | minX | Double | This property specifies the minimum X value. This is also the upper left X. | | maxY | Double | This property specifies the maximum Y value. This is also the upper left Y. | | maxX | Double | This property specifies the maximum X value. This is also the lower right X. | | minY | Double | This property specifies the minimum Y value. This is also the lower right Y. | [[#Public Constructors|Go Back]] ==== RectangleShape(String) ==== This constructor creates a RectangleShape. === Overloads === This constructor allows you to build the shape from well-known text. === Parameters === ^ Name ^ Type ^ Description ^ | wellKnownText | String | This parameter is the well-known text used to build the shape. | [[#Public Constructors|Go Back]] ==== RectangleShape(Byte[]) ==== This constructor creates a RectangleShape. === Overloads === This constructor allows you to build the shape from well-known binary. === Parameters === ^ Name ^ Type ^ Description ^ | wellKnownBinary | Byte[] | This parameter is the well-known binary used to build the shape. | [[#Public Constructors|Go Back]] ===== Protected Constructors ===== ===== Public Methods ===== ==== 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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|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 | 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 | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the geographic unit of the shape you are performing the operation on. | | distanceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|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. | [[#Public Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|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 | 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 | 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 | [[ThinkGeo.MapSuite.WindowsPhoneCore.BufferCapType|BufferCapType]] | The bufferCapType determines how the caps of the buffered object look. They range from rounded to squared off. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the geographic unit of the shape you are performing the operation on. | | distanceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|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. | [[#Public Methods|Go Back]] ==== 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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|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 | 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 | 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 | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the geographic unit of the shape you are performing the operation on. | | distanceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|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. | [[#Public Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a complete copy of the shape without any references in common. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|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 | This method returns if the targetFeature lies within the interior of the current shape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The targetFeature that contains a shape you wish to compare the current one to. | [[#Public Methods|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 | This method returns if the targetShape lies within the interior of the current shape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Public Methods|Go Back]] ==== CreateShapeFromWellKnownData(String) ==== 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) POLYGON((2 2,6 2,6 6,2 6,2 2),(3 3,4 3,4 4,3 4,3 3)) MULTIPOINT(3.7 9.7,4.9 11.6) MULTILINESTRING((4 5,11 51,21 26),(-4 -7,-9 -7,-14 -3)) MULTIPOLYGON(((2 2,6 2,6 6,2 6,2 2),(3 3,4 3,4 4,3 4,3 3)),((4 4,7 3,7 5,4 4))) === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|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 | A string representing the geometry in well-known text format. | [[#Public Methods|Go Back]] ==== CreateShapeFromWellKnownData(Byte[]) ==== 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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|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[] | An array of bytes representing the geometry in well-known binary format. | [[#Public Methods|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 | This method returns if the current shape and the targetShape share some but not all interior points. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Public Methods|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 | This method returns if the current shape and the targetFeature share some but not all interior points. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The targetFeature that contains a shape you wish to compare the current one to. | [[#Public Methods|Go Back]] ==== Equals(Object) ==== === Return Value === ^ Return Type ^ Description ^ | Boolean | | === Parameters === ^ Name ^ Type ^ Description ^ | obj | Object | | [[#Public Methods|Go Back]] ==== ExpandToInclude(IEnumerable) ==== This method will expand the current RectangleShape to include the shapes in the targetShapes parameter. === Overloads === This overload takes a list of shapes. === Remarks === There is also an overload that can expand the RectangleShape using a single shape. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | targetShapes | IEnumerable<[[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]]> | This parameter is used to expand the current rectangle. | [[#Public Methods|Go Back]] ==== ExpandToInclude(IEnumerable) ==== This method will expand the current RectangleShape to include the features in the targetFeatures parameter. === Overloads === This overload takes a feature collection. === Remarks === There also is an overload that can expand the RectangleShape using a single feature. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeatures | IEnumerable<[[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]]> | This parameter is a group of features used to expand the current rectangle. | [[#Public Methods|Go Back]] ==== ExpandToInclude(Feature) ==== This method will expand the current RectangleShape to include the target feature parameter. === Overloads === This overload takes a single feature. === Remarks === There is also an overload that can expand the RectangleShape using a collection of features. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | This parameter is used to expand the current feature. | [[#Public Methods|Go Back]] ==== ExpandToInclude(BaseShape) ==== This method will expand the current RectangleShape to include the targetShape parameter. === Overloads === This overload takes a single shape. === Remarks === There is also an overload that can expand the RectangleShape using a list of multiple shapes. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This parameter is used to expand the current rectangle. | [[#Public Methods|Go Back]] ==== GetArea(GeographyUnit, AreaUnit) ==== This method returns the area of the shape, defined as the size of the region enclosed by the figure. === Remarks === You would use this method to find the area inside the shape. === Return Value === ^ Return Type ^ Description ^ | Double | The return unit is based on a AreaUnit you specify in the returningUnit parameter, regardless of the shape's GeographyUnit. | === Parameters === ^ Name ^ Type ^ Description ^ | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the GeographyUnit of the shape you are performing the operation on. | | returningUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaUnit|AreaUnit]] | This is the AreaUnit you would like to use as the return value. For example, if you select square miles as your returningUnit, then the distance will be returned in square miles. | [[#Public Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape|RectangleShape]] | The RectangleShape returned is the smallest RectangleShape that can encompass the entire geometry. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | A PointShape representing the center point of the current shape's bounding box. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | A PointShape representing the closest point of the current shape to the targetFeature. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The feature you are trying to find the closest point to. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | The geographic unit of the feature you are trying to find the closet point to. | [[#Public Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | A PointShape representing the closest point of the current shape to the targetShape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you are trying to find the closest point to. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | The geographic unit of the shape you are trying to find the closet point to. | [[#Public Methods|Go Back]] ==== GetConvexHull() ==== This method returns the convex hull of the shape, defined as the smallest convex ring that contains all of the points in the shape. === Remarks === This method is useful when you want to create a perimeter around the shape. For example, if you had a MultiPolygon that represented buildings on a campus, you could easily get the convex hull of the buildings and determine the perimeter of all of the buildings together. This also works with MultiPoint shapes, where each point may represent a certain type of person you are doing statistics on. With convex hull, you can get an idea of the regions those points are located in. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.RingShape|RingShape]] | This method returns the convex hull of the shape, defined as the smallest convex ring that contains all of the points in the shape. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipointShape|MultipointShape]] | This method returns the crossing points between the current shape and the passed-in target shape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The target shape you wish to get crossing points with. | [[#Public Methods|Go Back]] ==== GetDifference(Feature) ==== This method returns the difference between current shape and the specified feature, defined as the set of all points which lie in the current shape but not in the targetShape. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | The return type is a MultiPolygonShape that is the set of all points which lie in the current shape but not in the target feature. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The feture you are trying to find the difference with. | [[#Public Methods|Go Back]] ==== GetDifference(AreaBaseShape) ==== This method returns the difference between two shapes, defined as the set of all points which lie in the current shape but not in the targetShape. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | The return type is a MultiPolygonShape that is the set of all points which lie in the current shape but not in the targetShape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | The shape you are trying to find the difference with. | [[#Public Methods|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 | The return type is the distance between this shape and the targetFeature in the GeographyUnit of the shape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The feature you are trying to find the distance to. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This parameter is the unit of the shape which is contained in the targetFeature you are getting the distance to. | | distanceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | This parameter is the unit of the distance you want the return value to be in. | [[#Public Methods|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 | The return type is the distance between this shape and the targetShape in the GeographyUnit of the shape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you are trying to find the distance to. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This parameter is the unit of the shape you are getting the distance to. | | distanceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | This parameter is the unit of the distance you want the return value to be in. | [[#Public Methods|Go Back]] ==== GetFeature(IDictionary) ==== 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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|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 | The columnValues will be passed into returning feature. | [[#Public Methods|Go Back]] ==== GetFeature() ==== Get a corresponding feature which has the same Id and BaseShape as the current shape. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The feature with the same Id and BaseShape as the current BaseShape, and with empty columnValues in it. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|Go Back]] ==== GetHashCode() ==== === Return Value === ^ Return Type ^ Description ^ | Int32 | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|Go Back]] ==== GetIntersection(RectangleShape) ==== This method returns the intersection of the current RectangleShape and the target shape, defined as the set of all points which lie in both the current shape and the target shape. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape|RectangleShape]] | The return type is a RectangleShape that contains the set of all points which lie in both the current shape and the target shape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape|RectangleShape]] | The shape you are trying to find the intersection with. | [[#Public Methods|Go Back]] ==== GetIntersection(AreaBaseShape) ==== This method returns the intersection of the current shape and the target shape, defined as the set of all points which lie in both the current shape and the target shape. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | The return type is a MultiPolygonShape that contains the set of all points which lie in both the current shape and the target shape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | The shape you are trying to find the intersection with. | [[#Public Methods|Go Back]] ==== GetIntersection(Feature) ==== This method returns the intersection of the current shape and the target feature, defined as the set of all points which lie in both the current shape and the target feature. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | The return type is a MultiPolygonShape that contains the set of all points which lie in both the current shape and the target feature. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The feature you are trying to find the intersection with. | [[#Public Methods|Go Back]] ==== GetPerimeter(GeographyUnit, DistanceUnit) ==== This method returns the perimeter of the shape, defined as the sum of the lengths of all its sides. === Remarks === You would use this method to find the distance around the area shape. === Return Value === ^ Return Type ^ Description ^ | Double | The return unit is based on a LengthUnit you specify in the returningUnit parameter, regardless of the shape's GeographyUnit. | === Parameters === ^ Name ^ Type ^ Description ^ | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the GeographyUnit of the shape you are performing the operation on. | | returningUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | This is the DistanceUnit you would like to use as the return value. For example, if you select miles as your returningUnit, then the distance will be returned in miles. | [[#Public Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultilineShape|MultilineShape]] | A LineShape representing the shortest distance between the shape you're calling the method on and the targetShape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you are trying to find the distance to. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | The geographic unit of the Shape you are trying to find the distance to. | [[#Public Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultilineShape|MultilineShape]] | A MultiLineShape representing the shortest distance between the shape you're calling the method on and the targetFeature. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The feature you are trying to find the distance to. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | The geographic unit of the feature you are trying to find the distance to. | [[#Public Methods|Go Back]] ==== GetSymmetricalDifference(Feature) ==== This method returns the symmetrical difference between current shape and the specified feature, defined as the set of all points which lie in the current shape or the targetFeature but not both. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | The return type is a MultiPolygonShape that is the set of all points which lie in the current shape or the targetFeature but not both. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The feature you are trying to find the symmetrical difference with. | [[#Public Methods|Go Back]] ==== GetSymmetricalDifference(AreaBaseShape) ==== This method returns the symmetrical difference between two shapes, defined as the set of all points which lie in the current shape or the targetShape but not both. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | The return type is a MultiPolygonShape that is the set of all points which lie in the current shape or the targetShape but not both. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | The shape you are trying to find the symmetrical difference with. | [[#Public Methods|Go Back]] ==== GetType() ==== === Return Value === ^ Return Type ^ Description ^ | Type | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|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[] | This method returns a byte array that represents the shape in well-known binary. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|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[] | This method returns a byte array that represents the shape in well-known binary. | === Parameters === ^ Name ^ Type ^ Description ^ | byteOrder | [[ThinkGeo.MapSuite.WindowsPhoneCore.WkbByteOrder|WkbByteOrder]] | This parameter is the byte order used to encode the well-known binary. | [[#Public Methods|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) POLYGON((2 2,6 2,6 6,2 6,2 2),(3 3,4 3,4 4,3 4,3 3)) MULTIPOINT(3.7 9.7,4.9 11.6) MULTILINESTRING((4 5,11 51,21 26),(-4 -7,-9 -7,-14 -3)) MULTIPOLYGON(((2 2,6 2,6 6,2 6,2 2),(3 3,4 3,4 4,3 4,3 3)),((4 4,7 3,7 5,4 4))) 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 | This method returns a string that represents the shape in well-known text. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.WellKnownType|WellKnownType]] | This method returns the well-known type for the shape. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|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 | This method returns if the current shape and the targetFeature have at least one point in common. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The targetFeature you wish to compare the current one to. | [[#Public Methods|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 | This method returns if the current shape and the targetShape have at least one point in common. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Public Methods|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 | 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 | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The feature you wish to compare the current one to. | [[#Public Methods|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 | 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 | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Public Methods|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 | This method returns if the current shape and the targetFeature are topologically equal. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The targetFeature that contains a shape you wish to compare the current one to. | [[#Public Methods|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 | This method returns if the current shape and the targetShape are topologically equal. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Public Methods|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 | This method returns if the current shape lies within the interior of the targetShape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Public Methods|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 | This method returns if the current shape lies within the interior of the targetFeature. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The targetFeature that contains a shape you wish to compare the current one to. | [[#Public Methods|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 | | === Parameters === ^ Name ^ Type ^ Description ^ | wellKnownText | String | This parameter is the well-known text you will use to hydrate your object. | [[#Public Methods|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 | | === Parameters === ^ Name ^ Type ^ Description ^ | wellKnownBinary | Byte[] | This parameter is the well-known binary used to populate the shape. | [[#Public Methods|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 | This method returns if the current shape and the targetShape share some but not all points in common. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Public Methods|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 | This method returns if the current shape and the targetFeature share some but not all points in common. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The targetFeature that contains a shape you wish to compare the current one to. | [[#Public Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|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 | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | This parameter is the anchor PointFeature in the coordinate of origin. | | toPoint | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | This parameter is the anchor PointFeature in the coordinate of destination. | | fromUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | This parameter is the DistanceUnit of the coordinate of origin. | | toUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This parameter is the GeographyUnit of the coordinate of destination. | [[#Public Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|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 | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | This parameter is the anchor PointShape in the coordinate of origin. | | toPoint | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | This parameter is the anchor PointShape in the coordinate of destination. | | fromUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | This parameter is the DistanceUnit of the coordinate of origin. | | toUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This parameter is the GeographyUnit of the coordinate of destination. | [[#Public Methods|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 | | === Parameters === ^ Name ^ Type ^ Description ^ | pivotPoint | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | The pivotPoint represents the center of rotation. | | degreeAngle | Single | The number of degrees of rotation required, from 0 to 360. | [[#Public Methods|Go Back]] ==== Rotate(Feature, PointShape, Single) ==== 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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a shape rotated by a number of degrees based on a pivot point. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | This parameter is the basis for the rotation. | | pivotPoint | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | The pivotPoint represents the center of rotation. | | degreeAngle | Single | The number of degrees of rotation required, from 0 to 360. | [[#Public Methods|Go Back]] ==== Rotate(BaseShape, PointShape, Single) ==== 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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a shape rotated by a number of degrees based on a pivot point. | === Parameters === ^ Name ^ Type ^ Description ^ | sourceBaseShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This parameter is the basis for the rotation. | | pivotPoint | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | The pivotPoint represents the center of rotation. | | degreeAngle | Single | The number of degrees of rotation required, from 0 to 360. | [[#Public Methods|Go Back]] ==== ScaleDown(AreaBaseShape, Double) ==== This method returns a new area shape that has been scaled down by the percentage given in the percentage parameter. === Remarks === This method is useful when you would like to decrease the size of the shape. Note that a larger percentage will scale the shape down faster, since you apply the operation multiple times. There is a ScaleUp method that will enlarge the shape as well. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This method is useful when you would like to decrease the size of the shape. Note that a larger percentage will scale the shape down faster, since you apply the operation multiple times. There is a ScaleUp method that will enlarge the shape as well. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This parameter is the shape to use as the base for the scaling. | | percentage | Double | This is the percentage by which to decrease the shape's size. | [[#Public Methods|Go Back]] ==== ScaleDown(Feature, Double) ==== This method returns a new area feature that has been scaled down by the percentage given in the percentage parameter. === Remarks === This method is useful when you would like to decrease the size of the feature. Note that a larger percentage will scale the shape down faster, since you apply the operation multiple times. There is a ScaleUp method that will enlarge the shape as well. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | This method is useful when you would like to decrease the size of the feature. Note that a larger percentage will scale the shape down faster, since you apply the operation multiple times. There is a ScaleUp method that will enlarge the shape as well. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | This parameter is the shape to use as the base for the scaling. | | percentage | Double | This is the percentage by which to decrease the shape's size. | [[#Public Methods|Go Back]] ==== ScaleDown(Double) ==== This method decreases the size of the area shape by the percentage given in the percentage parameter. === Remarks === This method is useful when you would like to decrease the size of the shape. Note that a larger percentage will scale the shape down faster, since you apply the operation multiple times. There is a ScaleUp method that will enlarge the shape as well. === Return Value === ^ Return Type ^ Description ^ | Void | This method is useful when you would like to decrease the size of the shape. Note that a larger percentage will scale the shape down faster, since you apply the operation multiple times. There is a ScaleUp method that will enlarge the shape as well. | === Parameters === ^ Name ^ Type ^ Description ^ | percentage | Double | This is the percentage by which to decrease the shape's size. | [[#Public Methods|Go Back]] ==== ScaleTo(Double) ==== === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | scale | Double | | [[#Public Methods|Go Back]] ==== ScaleTo(BaseShape, Double) ==== === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | | === Parameters === ^ Name ^ Type ^ Description ^ | baseShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | | | scale | Double | | [[#Public Methods|Go Back]] ==== ScaleUp(AreaBaseShape, Double) ==== This method returns a new area shape that has been scaled up by the percentage given in the percentage parameter. === Remarks === This method is useful when you would like to increase the size of the shape. Note that a larger percentage will scale the shape up faster, since you apply the operation multiple times. There is a ScaleDown method that will shrink the shape as well. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This parameter is the shape to use as the base for the scaling. | | percentage | Double | This is the percentage by which to increase the shape's size. | [[#Public Methods|Go Back]] ==== ScaleUp(Feature, Double) ==== This method returns a new area shape that has been scaled up by the percentage given in the percentage parameter. === Remarks === This method is useful when you would like to increase the size of the shape. Note that a larger percentage will scale the shape up faster, since you apply the operation multiple times. There is a ScaleDown method that will shrink the shape as well. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | This parameter is the feature to use as the base for the scaling. | | percentage | Double | This is the percentage by which to increase the shape's size. | [[#Public Methods|Go Back]] ==== ScaleUp(Double) ==== This method increases the size of the area shape by the percentage given in the percentage parameter. === Remarks === This method is useful when you would like to increase the size of the shape. Note that a larger percentage will scale the shape up faster, since you apply the operation multiple times. There is a ScaleDown method that will shrink the shape. as well. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | percentage | Double | This is the percentage by which to increase the shape's size. | [[#Public Methods|Go Back]] ==== Simplify(GeographyUnit, Double, DistanceUnit, SimplificationType) ==== This method performed a simplification operation based on the parameters passed in. Simplify permanently alters the input geometry so that the geometry becomes topologically consistent. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | This method returns a simplification multipolgyon by the specified parameters. | === Parameters === ^ Name ^ Type ^ Description ^ | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This parameter specifies the geographic unit of this current shape you are performing the operation | | tolerance | Double | This parameter specifes the tolerance to be used when simplification. | | toleranceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | This parameter specifes the distance unit of the tolerance. | | simplificationType | [[ThinkGeo.MapSuite.WindowsPhoneCore.SimplificationType|SimplificationType]] | This prameter specifies the type of simplification operation. | [[#Public Methods|Go Back]] ==== Simplify(AreaBaseShape, Double, SimplificationType) ==== This method performed a simplification operation based on the parameters passed in. Simplify permanently alters the input geometry so that the geometry becomes topologically consistent. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | This method returns a simplification multipolgyon by the specified parameters. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This parameter specifies the area shape to be simplfied. | | tolerance | Double | This parameter specifes the tolerance to be used when simplification. | | simplificationType | [[ThinkGeo.MapSuite.WindowsPhoneCore.SimplificationType|SimplificationType]] | This prameter specifies the type of simplification operation. | [[#Public Methods|Go Back]] ==== Simplify(AreaBaseShape, GeographyUnit, Double, DistanceUnit, SimplificationType) ==== This method performed a simplification operation based on the parameters passed in. Simplify permanently alters the input geometry so that the geometry becomes topologically consistent. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | This method returns a simplification multipolgyon by the specified parameters. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This parameter specifies the area shape to be simplfied. | | targetShapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This parameter specifies the geographic unit of the shape you are performing the operation | | tolerance | Double | This parameter specifes the tolerance to be used when simplification. | | toleranceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | This parameter specifes the distance unit of the tolerance. | | simplificationType | [[ThinkGeo.MapSuite.WindowsPhoneCore.SimplificationType|SimplificationType]] | This prameter specifies the type of simplification operation. | [[#Public Methods|Go Back]] ==== Simplify(Double, SimplificationType) ==== This method performed a simplification operation based on the parameters passed in. Simplify permanently alters the input geometry so that the geometry becomes topologically consistent. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | This method returns a simplification multipolgyon by the specified parameters. | === Parameters === ^ Name ^ Type ^ Description ^ | tolerance | Double | This parameter specifes the tolerance to be used when simplification. | | simplificationType | [[ThinkGeo.MapSuite.WindowsPhoneCore.SimplificationType|SimplificationType]] | This prameter specifies the type of simplification operation. | [[#Public Methods|Go Back]] ==== Split(Feature, Feature) ==== This method returns a collection of Features split by the specified parameters. === Return Value === ^ Return Type ^ Description ^ | Collection<[[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]]> | This method returns a collection of Features split by the specified parameters. | === Parameters === ^ Name ^ Type ^ Description ^ | areaToSplit | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | This parameter represents the feature to be split. | | areaToSplitBy | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | This parameter represents the feature that will be used to perform the split. | [[#Public Methods|Go Back]] ==== Split(AreaBaseShape, AreaBaseShape) ==== This method returns a collection of MultiPolygonShapes split by the specified parameters. === Return Value === ^ Return Type ^ Description ^ | Collection<[[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]]> | This method returns a collection of MultiPolygonShape split by the specified parameters. | === Parameters === ^ Name ^ Type ^ Description ^ | areaToSplit | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This parameter represents the shape to be split. | | areaToSplitBy | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | This parameter represents the shape that will be used to perform the split. | [[#Public Methods|Go Back]] ==== ToPolygon() ==== This method returns the current shape as a PolygonShape. === Remarks === This method is mainly used to convert this GIS non-standard shape to a GIS standard shape. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.PolygonShape|PolygonShape]] | This method returns the current shape as a PolygonShape. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|Go Back]] ==== ToString() ==== This method returns a formatted representation of the UpperLeftPoint.X, UpperLeftPoint.Y, LowerRightPoint.X and LowerRightPoint.Y value. === Remarks === The value will be formatted in the standard string format: -180,90,180,-90" === Return Value === ^ Return Type ^ Description ^ | String | This method returns a formatted representation of the UpperLeftPoint.X, UpperLeftPoint.Y, LowerRightPoint.X and LowerRightPoint.Y value. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|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 | 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 | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Public Methods|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 | 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 | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The targetFeature which contains a shape that you wish to compare the current one to. | [[#Public Methods|Go Back]] ==== TranslateByDegree(Feature, Double, Double, GeographyUnit, DistanceUnit) ==== 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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|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 | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | This parameter is the basis of the move. | | distance | 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 | A number between 0 and 360 degrees that represents the direction you wish to move the feature, with 0 being up. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the geographic unit of the shape you are performing the operation on. | | distanceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|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. | [[#Public Methods|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 | | === Parameters === ^ Name ^ Type ^ Description ^ | distance | 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 | A number between 0 and 360 degrees that represents the direction you wish to move the shape, with 0 being up. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the geographic unit of the shape you are performing the operation on. | | distanceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|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. | [[#Public Methods|Go Back]] ==== TranslateByDegree(BaseShape, Double, Double, GeographyUnit, DistanceUnit) ==== 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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|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 | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This parameter is the basis of the move. | | distance | 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 | A number between 0 and 360 degrees that represents the direction you wish to move the shape, with 0 being up. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the geographic unit of the shape you are performing the operation on. | | distanceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|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. | [[#Public Methods|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 | | === Parameters === ^ Name ^ Type ^ Description ^ | distance | 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 | A number between 0 and 360 degrees that represents the direction you wish to move the shape, with 0 being up. | [[#Public Methods|Go Back]] ==== TranslateByOffset(BaseShape, Double, Double, GeographyUnit, DistanceUnit) ==== 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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|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 | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This parameter is the basis of the moved shape. | | xOffsetDistance | Double | This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter. | | yOffsetDistance | Double | This is the number of vertical units of movement in the distance unit specified in the distanceUnit parameter. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the geographic unit of the shape you are performing the operation on. | | distanceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|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. | [[#Public Methods|Go Back]] ==== TranslateByOffset(Double, Double) ==== === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | xOffsetDistance | Double | | | yOffsetDistance | Double | | [[#Public Methods|Go Back]] ==== TranslateByOffset(Feature, Double, Double, GeographyUnit, DistanceUnit) ==== 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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|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 | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | This parameter is the basis of the moved feature. | | xOffsetDistance | Double | This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter. | | yOffsetDistance | Double | This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the geographic unit of the shape you are performing the operation on. | | distanceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|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. | [[#Public Methods|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 | | === Parameters === ^ Name ^ Type ^ Description ^ | xOffsetDistance | Double | This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter. | | yOffsetDistance | Double | This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the geographic unit of the base shape you are performing the operation on. | | distanceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|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. | [[#Public Methods|Go Back]] ==== Union(IEnumerable) ==== This method returns the union of the specified area shapes. === Remarks === This is useful for adding area shapes together to form a larger area shape. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | The return type is a MultiPolygonShape that contains the set of all points that lie within the shapes you specified. | === Parameters === ^ Name ^ Type ^ Description ^ | areaShapes | IEnumerable<[[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]]> | The shapes you are trying to find the union with. | [[#Public Methods|Go Back]] ==== Union(AreaBaseShape) ==== This method returns the union of the current shape and the target shape, defined as the set of all points in the current shape or the target shape. === Remarks === This is useful for adding area shapes together to form a larger area shape. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | The return type is a MultiPolygonShape that contains the set of all points which lie in the current shape or the target shape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | The shape you are trying to find the union with. | [[#Public Methods|Go Back]] ==== Union(Feature) ==== This method returns the union of the current shape and the target feature, defined as the set of all points in the current shape or the target feature. === Remarks === This is useful for adding area shapes together to form a larger area shape. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | The return type is a MultiPolygonShape that contains the set of all points which lie in the current shape or the target feature. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | The feature you are trying to find the union with. | [[#Public Methods|Go Back]] ==== Union(IEnumerable) ==== This method returns the union of the current shape and the target features, defined as the set of all points in the current shape or the target features. === Remarks === This is useful for adding area shapes together to form a larger area shape. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | The return type is a MultiPolygonShape that contains the set of all points which lie in the current shape or the target features. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above. | === Parameters === ^ Name ^ Type ^ Description ^ | targetFeatures | IEnumerable<[[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]]> | The target features you are trying to find the union with. | [[#Public Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.ShapeValidationResult|ShapeValidationResult]] | This method returns a ShapeValidationResult based on a series of tests. | === Parameters === ^ Name ^ Type ^ Description ^ | validationMode | [[ThinkGeo.MapSuite.WindowsPhoneCore.ShapeValidationMode|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. | [[#Public Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|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 | 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 | The number of quadrantSegments used in the buffer logic. | | bufferCapType | [[ThinkGeo.MapSuite.WindowsPhoneCore.BufferCapType|BufferCapType]] | The bufferCapType used in the buffer logic. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the geographic unit of the shape you are performing the operation on. | | distanceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|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. | [[#Protected Methods|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 copy. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a complete copy of the shape without any references in common. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|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 | This method returns if the targetShape lies within the interior of the current shape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Protected Methods|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 | This method returns if the current shape and the targetShape share some but not all interior points. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Protected Methods|Go Back]] ==== ExpandToIncludeCore(BaseShape) ==== This method will expand the current RectangleShape to include the shape in the targetShape parameter. === Overloads === This overload takes a single shape. === Remarks === There is also an overload that can expand the RectangleShape using a list of shapes. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This parameter is used to expand the current rectangle. | [[#Protected Methods|Go Back]] ==== Finalize() ==== === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|Go Back]] ==== GetAreaCore(GeographyUnit, AreaUnit) ==== This method returns the area of the shape (defined as the size of the region enclosed by the figure). === Overloads === In this overload the return unit is based on the AreaUnit you specify in the returningUnit parameter, regardless of the shape's GeographyUnit. === Remarks === You would use this method to find the area inside the shape. === Return Value === ^ Return Type ^ Description ^ | Double | The return unit is based on the AreaUnit you specify in the returningUnit parameter, regardless of the shape's GeographyUnit. | === Parameters === ^ Name ^ Type ^ Description ^ | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the GeographyUnit of the shape you are performing the operation on. | | returningUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaUnit|AreaUnit]] | This is the AreaUnit you would like to use as the return value. For example, if you select square miles as your returningUnit, then the distance will be returned in square miles. | [[#Protected Methods|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. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape|RectangleShape]] | The RectangleShape returned is the smallest RectangleShape that can encompass the entire geometry. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | A PointShape representing the center point of the current shape's bounding box. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | A PointShape representing the closest point of the current shape to the targetShape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you are trying to find the closest point to. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the GeographicUnit of the shape you are performing the operation on. | [[#Protected Methods|Go Back]] ==== GetConvexHullCore() ==== This method returns the convex hull of the shape, defined as the smallest convex ring that contains all of the points in the shape. === Remarks === This method is useful when you want to create a perimeter around the shape. For example, if you had a MultiPolygon that represented buildings on a campus, you could easily get the convex hull of the buildings and determine the perimeter of all of the buildings together. This also works with MultiPoint shapes, where each point may represent a certain type of person you are doing statistics on. With convex hull, you can get an idea of the regions those points are located in. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.RingShape|RingShape]] | This method returns the convex hull of the shape, defined as the smallest convex ring that contains all of the points in the shape. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipointShape|MultipointShape]] | This method returns the crossing points between the current shape and the passed-in target shape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The target shape you wish to get crossing with. | [[#Protected Methods|Go Back]] ==== GetDifferenceCore(AreaBaseShape) ==== This method returns the difference between two shapes, defined as the set of all points which lie in the current shape but not in the targetShape. === Remarks === Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | The return type is a MultiPolygonShape that is the set of all points which lie in the current shape but not in the targetShape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | The shape you are trying to find the difference with. | [[#Protected Methods|Go Back]] ==== GetDistanceToCore(BaseShape, GeographyUnit, DistanceUnit) ==== This method computes the distance between the current shape and the targetShape. === Overloads === The distance returned will be in the unit of the shape. === Remarks === In this method, we compute the closest distance between the two shapes. The returned unit will be in the unit of distance specified. === Return Value === ^ Return Type ^ Description ^ | Double | The return type is the distance between this shape and the targetShape in the GeographyUnit of the shape. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you are trying to find the distance to. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | The GeographyUnit of the targetShape. | | distanceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | The DistanceUnit of the returned value. | [[#Protected Methods|Go Back]] ==== GetIntersectionCore(AreaBaseShape) ==== This method returns the intersection of the current shape and the target shape, defined as the set of all points which lie in both the current shape and the target shape. === Remarks === Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | The return type is a MultiPolygonShape that contains the set of all points which lie in both the current shape and the target shape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | The shape you are trying to find the intersection with. | [[#Protected Methods|Go Back]] ==== GetPerimeterCore(GeographyUnit, DistanceUnit) ==== This method returns the perimeter of the shape (defined as the sum of the lengths of all its sides). === Overloads === In this overload the return unit is based on the LengthUnit you specify in the returningLengthUnit parameter, regardless of the shape's GeographyUnit. === Remarks === You would use this method to find the distance around the area shape. === Return Value === ^ Return Type ^ Description ^ | Double | The return unit is based on the LengthUnit you specify in the returningUnit parameter, regardless of the shape's GeographyUnit. | === Parameters === ^ Name ^ Type ^ Description ^ | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the GeographyUnit of the shape you are performing the operation on. | | returningUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | This is the DistanceUnit you would like to use as the return value. For example, if you select miles as your returningUnit, then the distance will be returned in miles. | [[#Protected Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultilineShape|MultilineShape]] | A LineShape representing the shortest distance between the shape you're calling the method on and the targetShape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you are trying to find the distance to. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | The geographic unit of the shape you are trying to find the distance to. | [[#Protected Methods|Go Back]] ==== GetSymmetricalDifferenceCore(AreaBaseShape) ==== This method returns the symmetrical difference between two shapes, defined as the set of all points which lie in the current shape or the targetShape but not both. === Remarks === Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | The return type is a MultiPolygonShape that is the set of all points which lie in the current shape or the targetShape but not both. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | The shape you are trying to find the symmetrical difference with. | [[#Protected Methods|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[] | This method returns a byte array that represents the shape in well-known binary. | === Parameters === ^ Name ^ Type ^ Description ^ | byteOrder | [[ThinkGeo.MapSuite.WindowsPhoneCore.WkbByteOrder|WkbByteOrder]] | This parameter specifies whether the byte order is big- or little-endian. | [[#Protected Methods|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) POLYGON((2 2,6 2,6 6,2 6,2 2),(3 3,4 3,4 4,3 4,3 3)) MULTIPOINT(3.7 9.7,4.9 11.6) MULTILINESTRING((4 5,11 51,21 26),(-4 -7,-9 -7,-14 -3)) MULTIPOLYGON(((2 2,6 2,6 6,2 6,2 2),(3 3,4 3,4 4,3 4,3 3)),((4 4,7 3,7 5,4 4))) === Return Value === ^ Return Type ^ Description ^ | String | This method returns a string that represents the shape in well-known text. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|Go Back]] ==== GetWellKnownTypeCore() ==== This method returns the well-known type for the shape. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.WellKnownType|WellKnownType]] | This method returns the well-known type for the shape. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|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 | This method returns if the current shape and the targetShape have at least one point in common. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Protected Methods|Go Back]] ==== IsDisjointedCore(BaseShape) ==== This method returns whether 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 | This method returns whether the current shape and the targetShape have no points in common. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Protected Methods|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 | This method returns if the current shape and the targetShape are topologically equal. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Protected Methods|Go Back]] ==== IsWithinCore(BaseShape) ==== This method returns if the current shape lies within the interior of the targetShape. === Remarks === Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above. === Return Value === ^ Return Type ^ Description ^ | Boolean | This method returns if the current shape lies within the interior of the targetShape. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Protected Methods|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 | | === Parameters === ^ Name ^ Type ^ Description ^ | wellKnownBinary | Byte[] | This parameter is the well-known binary used to populate the shape. | [[#Protected Methods|Go Back]] ==== LoadFromWellKnownDataCore(String) ==== This method hydrates the current shape with its data from well-known text. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | wellKnownText | String | This parameter is the well-known text you will use to hydrate your object. | [[#Protected Methods|Go Back]] ==== MemberwiseClone() ==== === Return Value === ^ Return Type ^ Description ^ | Object | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|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 | This method returns if the current shape and the targetShape share some but not all points in common. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Protected Methods|Go Back]] ==== RegisterCore(PointShape, PointShape, DistanceUnit, GeographyUnit) ==== This method returns a MultipointShape which has been registered from its original coordinate system to another based on two anchor PointShapes. === Remarks === The register method is useful, for example, when a group of points represented by a MultipointShape has been generated in a non-geographic coordinate in meters, and you want to plot the points on a map that is in decimal degrees. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This method returns a MultipointShape which has been registered from its original coordinate system to another based on two anchor PointShapes. | === Parameters === ^ Name ^ Type ^ Description ^ | fromPoint | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | This parameter is the anchor PointShape in the coordinate of origin. | | toPoint | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | This parameter is the anchor PointShape in the coordinate of destination. | | fromUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|DistanceUnit]] | This parameter is the GeographyUnit of the coordinate of origin. | | toUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This parameter is the GeographyUnit of the coordinate of destination. | [[#Protected Methods|Go Back]] ==== RotateCore(PointShape, Single) ==== This method rotates a shape a number of degrees based on a pivot point. === Remarks === This method rotates a 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. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | pivotPoint | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | The pivotPoint represents the center of rotation. | | degreeAngle | Single | The number of degrees of rotation required, from 0 to 360. | [[#Protected Methods|Go Back]] ==== ScaleDownCore(Double) ==== This method decreases the size of the area shape by the percentage given in the percentage parameter. === Return Value === ^ Return Type ^ Description ^ | Void | This method is useful when you would like to decrease the size of the shape. Note that a larger percentage will scale the shape down faster, as you are applying the operation multiple times. There is also a ScaleUp method that will enlarge the shape. | === Parameters === ^ Name ^ Type ^ Description ^ | percentage | Double | This is the percentage by which to decrease the shape's size. | [[#Protected Methods|Go Back]] ==== ScaleToCore(Double) ==== === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | scale | Double | | [[#Protected Methods|Go Back]] ==== ScaleUpCore(Double) ==== This method increases the size of the area shape by the percentage given in the percentage parameter. === Remarks === This method is useful when you would like to increase the size of the shape. Note that a larger percentage will scale the shape up faster, as you are applying the operation multiple times. There is also a ScaleDown method that will shrink the shape. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | percentage | Double | This is the percentage by which to increase the shape's size. | [[#Protected Methods|Go Back]] ==== SimplifyCore(Double, SimplificationType) ==== This method performed a simplification operation based on the parameters passed in. Simplify permanently alters the input geometry so that the geometry becomes topologically consistent. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | This method returns a simplification multipolgyon by the specified parameters. | === Parameters === ^ Name ^ Type ^ Description ^ | tolerance | Double | This parameter specifes the tolerance to be used when simplification. | | simplificationType | [[ThinkGeo.MapSuite.WindowsPhoneCore.SimplificationType|SimplificationType]] | This prameter specifies the type of simplification operation. | [[#Protected Methods|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 | 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 | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | The shape you wish to compare the current one to. | [[#Protected Methods|Go Back]] ==== TranslateByDegreeCore(Double, Double, GeographyUnit, DistanceUnit) ==== This method moves the shape from one location to another, based on a direction in degrees and distance. === 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 | | === Parameters === ^ Name ^ Type ^ Description ^ | distance | 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 | A number between 0 and 360 degrees that represents the direction you wish to move the shape, with 0 being up. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the GeographicUnit of the shape you are performing the operation on. | | distanceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|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. | [[#Protected Methods|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 a 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 | | === Parameters === ^ Name ^ Type ^ Description ^ | xOffsetDistance | Double | This is the number of horizontal units of movement in the DistanceUnit specified as the distanceUnit. | | yOffsetDistance | Double | This is the number of horizontal units of movement in the DistanceUnit specified as the distanceUnit. | | shapeUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit|GeographyUnit]] | This is the GeographicUnit of the shape you are performing the operation on. | | distanceUnit | [[ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit|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. | [[#Protected Methods|Go Back]] ==== UnionCore(AreaBaseShape) ==== This method returns the union of the current shape and the target shapes, defined as the set of all points in the current shape or the target shape. === Remarks === This is useful for adding area shapes together to form a larger area shape. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.MultipolygonShape|MultipolygonShape]] | The return type is a MultiPolygonShape that contains the set of all points which lie in the current shape or the target shape. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above. | === Parameters === ^ Name ^ Type ^ Description ^ | targetShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.AreaBaseShape|AreaBaseShape]] | The shape you are trying to find the union with. | [[#Protected Methods|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.ShapeValidationResult|ShapeValidationResult]] | This method returns a ShapeValidationResult based on a series of tests. | === Parameters === ^ Name ^ Type ^ Description ^ | validationMode | [[ThinkGeo.MapSuite.WindowsPhoneCore.ShapeValidationMode|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. | [[#Protected Methods|Go Back]] ===== Public Properties ===== ==== CanRotate ==== This property specifies whether the shape can be rotated. === Remarks === If this property returns false and you attempt to call the rotate method, it will throw a NotImplementedException. === Return Value === ^ Return Type ^ | Boolean | [[#Public Properties|Go Back]] ==== Height ==== This property returns the height of the RectangleShape in the unit of the shape. === Return Value === ^ Return Type ^ | Double | [[#Public Properties|Go Back]] ==== Id ==== The id of the shape. === Return Value === ^ Return Type ^ | String | [[#Public Properties|Go Back]] ==== LowerLeftPoint ==== This property returns the PointShape that represents the lower left point of the RectangleShape. === Return Value === ^ Return Type ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | [[#Public Properties|Go Back]] ==== LowerRightPoint ==== This property returns or sets the PointShape that represents the lower right point of the RectangleShape. === Return Value === ^ Return Type ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | [[#Public Properties|Go Back]] ==== Tag ==== The tag of the shape. === Return Value === ^ Return Type ^ | Object | [[#Public Properties|Go Back]] ==== UpperLeftPoint ==== This property returns or sets the PointShape that represents the upper left point of the RectangleShape. === Return Value === ^ Return Type ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | [[#Public Properties|Go Back]] ==== UpperRightPoint ==== This property returns the PointShape that represents the upper right point of the RectangleShape. === Return Value === ^ Return Type ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.PointShape|PointShape]] | [[#Public Properties|Go Back]] ==== Width ==== This property returns the width of the RectangleShape in the unit of the shape. === Return Value === ^ Return Type ^ | Double | [[#Public Properties|Go Back]] ===== Protected Properties ===== ===== Public Events ===== __NOTOC__ [[Category:WindowsPhoneMapSuiteCore]] [[Category:ThinkGeo.MapSuite.WindowsPhoneCore]] [[Category:UpdateDocumentation]]