====== ThinkGeo.MapSuite.Shapes.BaseShape ====== ===== Inheritance Hierarchy ===== *System.Object ***ThinkGeo.MapSuite.Shapes.BaseShape** *[[ThinkGeo.MapSuite.Shapes.AreaBaseShape]] *[[ThinkGeo.MapSuite.Shapes.LineBaseShape]] *[[ThinkGeo.MapSuite.Shapes.PointBaseShape]] *[[ThinkGeo.MapSuite.Shapes.GeometryCollectionShape]] ===== Members Summary ===== ==== Public Constructors ==== ==== Protected Constructors ==== ** {{wiki:ProtectedMethod.gif|}} BaseShape() ** * //This is the default constructor for BaseShape.// == Remarks == * //N/A// == Parameters ==
==== Public Methods ==== ** {{wiki:PublicMethod.gif|}} LoadFromWellKnownData(String) ** * //N/A// == 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 == * Type:Void * Description:None == Parameters == * //wellKnownText// * Type:String * Description:This parameter is the well-known text you will use to hydrate your object.
** {{wiki:PublicMethod.gif|}} GetWellKnownText() ** * //N/A// == 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 == * Type:String * Description:This method returns a string that represents the shape in well-known text. == Parameters ==
** {{wiki:PublicMethod.gif|}} GetGeoJson() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:String * Description:N/A == Parameters ==
** {{wiki:PublicMethod.gif|}} GetWellKnownText(RingOrder) ** * //N/A// == Remarks == * //This method returns a stringthat 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))) Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.// == Return Value == * Type:String * Description:This method returns a string that represents the shape in well-known text. == Parameters == * //outerRingOrder// * Type:[[ThinkGeo.MapSuite.Shapes.RingOrder|RingOrder]] * Description:N/A
** {{wiki:PublicMethod.gif|}} LoadFromWellKnownData(Byte[]) ** * //N/A// == 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 == * Type:Void * Description:None == Parameters == * //wellKnownBinary// * Type:Byte[] * Description:This parameter is the well-known binary used to populate the shape.
** {{wiki:PublicMethod.gif|}} GetWellKnownBinary() ** * //N/A// == 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 == * Type:Byte[] * Description:This method returns a byte array that represents the shape in well-known binary. == Parameters ==
** {{wiki:PublicMethod.gif|}} GetWellKnownBinary(WkbByteOrder) ** * //N/A// == 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 == * Type:Byte[] * Description:This method returns a byte array that represents the shape in well-known binary. == Parameters == * //byteOrder// * Type:[[ThinkGeo.MapSuite.Shapes.WkbByteOrder|WkbByteOrder]] * Description:This parameter is the byte order used to encode the well-known binary.
** {{wiki:PublicMethod.gif|}} GetWellKnownBinary(RingOrder) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Byte[] * Description:N/A == Parameters == * //outerRingOrder// * Type:[[ThinkGeo.MapSuite.Shapes.RingOrder|RingOrder]] * Description:N/A
** {{wiki:PublicMethod.gif|}} GetWellKnownBinary(RingOrder,WkbByteOrder) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Byte[] * Description:N/A == Parameters == * //outerRingOrder// * Type:[[ThinkGeo.MapSuite.Shapes.RingOrder|RingOrder]] * Description:N/A * //byteOrder// * Type:[[ThinkGeo.MapSuite.Shapes.WkbByteOrder|WkbByteOrder]] * Description:N/A
** {{wiki:PublicMethod.gif|}} GetBoundingBox() ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.RectangleShape|RectangleShape]] * Description:The RectangleShape returned is the smallest RectangleShape that can encompass the entire geometry. == Parameters ==
** {{wiki:PublicMethod.gif|}} GetWellKnownType() ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.WellKnownType|WellKnownType]] * Description:This method returns the well-known type for the shape. == Parameters ==
** {{wiki:PublicMethod.gif|}} CloneDeep() ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:This method returns a complete copy of the shape without any references in common. == Parameters ==
** {{wiki:PublicMethod.gif|}} TranslateByOffset(Double,Double,GeographyUnit,DistanceUnit) ** * //N/A// == 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 == * Type:Void * Description:N/A == Parameters == * //xOffsetDistance// * Type:Double * Description:This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter. * //yOffsetDistance// * Type:Double * Description:This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This is the geographic unit of the base shape you are performing the operation on. * //distanceUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description: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.
** {{wiki:PublicMethod.gif|}} TranslateByOffset(Double,Double) ** * //N/A// == 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 == * Type:Void * Description:N/A == Parameters == * //xOffsetDistance// * Type:Double * Description:This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter. * //yOffsetDistance// * Type:Double * Description:This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter.
** {{wiki:PublicMethod.gif|}} TranslateByDegree(Double,Double,GeographyUnit,DistanceUnit) ** * //N/A// == 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 == * Type:Void * Description:N/A == Parameters == * //distance// * Type:Double * Description: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// * Type:Double * Description:A number between 0 and 360 degrees that represents the direction you wish to move the shape, with 0 being up. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This is the geographic unit of the shape you are performing the operation on. * //distanceUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description: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.
** {{wiki:PublicMethod.gif|}} TranslateByDegree(Double,Double) ** * //N/A// == 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 == * Type:Void * Description:N/A == Parameters == * //distance// * Type:Double * Description: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// * Type:Double * Description:A number between 0 and 360 degrees that represents the direction you wish to move the shape, with 0 being up.
** {{wiki:PublicMethod.gif|}} Rotate(PointShape,Single) ** * //N/A// == 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 == * Type:Void * Description:N/A == Parameters == * //pivotPoint// * Type:[[ThinkGeo.MapSuite.Shapes.PointShape|PointShape]] * Description:The pivotPoint represents the center of rotation. * //degreeAngle// * Type:Single * Description:The number of degrees of rotation required, from 0 to 360.
** {{wiki:PublicMethod.gif|}} GetShortestLineTo(BaseShape,GeographyUnit) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.MultilineShape|MultilineShape]] * Description:A LineShape representing the shortest distance between the shape you're calling the method on and the targetShape. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you are trying to find the distance to. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:The geographic unit of the Shape you are trying to find the distance to.
** {{wiki:PublicMethod.gif|}} GetShortestLineTo(Feature,GeographyUnit) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.MultilineShape|MultilineShape]] * Description:A MultiLineShape representing the shortest distance between the shape you're calling the method on and the targetFeature. == Parameters == * //targetFeature// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:The feature you are trying to find the distance to. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:The geographic unit of the feature you are trying to find the distance to.
** {{wiki:PublicMethod.gif|}} GetClosestPointTo(BaseShape,GeographyUnit) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.PointShape|PointShape]] * Description:A PointShape representing the closest point of the current shape to the targetShape. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you are trying to find the closest point to. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:The geographic unit of the shape you are trying to find the closet point to.
** {{wiki:PublicMethod.gif|}} GetClosestPointTo(Feature,GeographyUnit) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.PointShape|PointShape]] * Description:A PointShape representing the closest point of the current shape to the targetFeature. == Parameters == * //targetFeature// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:The feature you are trying to find the closest point to. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:The geographic unit of the feature you are trying to find the closet point to.
** {{wiki:PublicMethod.gif|}} GetCenterPoint() ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.PointShape|PointShape]] * Description:A PointShape representing the center point of the current shape's bounding box. == Parameters ==
** {{wiki:PublicMethod.gif|}} Buffer(Double,GeographyUnit,DistanceUnit) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.MultipolygonShape|MultipolygonShape]] * Description:The return type is a MultiPolygonShape that represents all of the points within a given distance from the shape. == Parameters == * //distance// * Type:Double * Description:The distance is the number of units to buffer the current shape. The distance unit will be the one specified in the distanceUnit parameter. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This is the geographic unit of the shape you are performing the operation on. * //distanceUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description: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.
** {{wiki:PublicMethod.gif|}} Buffer(Double,Int32,GeographyUnit,DistanceUnit) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.MultipolygonShape|MultipolygonShape]] * Description:The return type is a MultiPolygonShape that represents all of the points within a given distance from the shape. == Parameters == * //distance// * Type:Double * Description:The distance is the number of units to buffer the current shape. The distance unit will be the one specified in the distanceUnit parameter. * //quadrantSegments// * Type:Int32 * Description: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// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This is the geographic unit of the shape you are performing the operation on. * //distanceUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description: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.
** {{wiki:PublicMethod.gif|}} Buffer(Double,Int32,BufferCapType,GeographyUnit,DistanceUnit) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.MultipolygonShape|MultipolygonShape]] * Description:The return type is a MultiPolygonShape that represents all of the points within a given distance from the shape. == Parameters == * //distance// * Type:Double * Description:The distance is the number of units to buffer the current shape. The distance unit will be the one specified in the distanceUnit parameter. * //quadrantSegments// * Type:Int32 * Description: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// * Type:[[ThinkGeo.MapSuite.Shapes.BufferCapType|BufferCapType]] * Description:The bufferCapType determines how the caps of the buffered object look. They range from rounded to squared off. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This is the geographic unit of the shape you are performing the operation on. * //distanceUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description: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.
** {{wiki:PublicMethod.gif|}} GetDistanceTo(BaseShape,GeographyUnit,DistanceUnit) ** * //N/A// == 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 == * Type:Double * Description:The return type is the distance between this shape and the targetShape in the GeographyUnit of the shape. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you are trying to find the distance to. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This parameter is the unit of the shape you are getting the distance to. * //distanceUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description:This parameter is the unit of the distance you want the return value to be in.
** {{wiki:PublicMethod.gif|}} GetDistanceTo(Feature,GeographyUnit,DistanceUnit) ** * //N/A// == 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 == * Type:Double * Description:The return type is the distance between this shape and the targetFeature in the GeographyUnit of the shape. == Parameters == * //targetFeature// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:The feature you are trying to find the distance to. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This parameter is the unit of the shape which is contained in the targetFeature you are getting the distance to. * //distanceUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description:This parameter is the unit of the distance you want the return value to be in.
** {{wiki:PublicMethod.gif|}} Register(PointShape,PointShape,DistanceUnit,GeographyUnit) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:This method returns a BaseShape which has been registered from its original coordinate system to another based on two anchor PointShapes. == Parameters == * //fromPoint// * Type:[[ThinkGeo.MapSuite.Shapes.PointShape|PointShape]] * Description:This parameter is the anchor PointShape in the coordinate of origin. * //toPoint// * Type:[[ThinkGeo.MapSuite.Shapes.PointShape|PointShape]] * Description:This parameter is the anchor PointShape in the coordinate of destination. * //fromUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description:This parameter is the DistanceUnit of the coordinate of origin. * //toUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This parameter is the GeographyUnit of the coordinate of destination.
** {{wiki:PublicMethod.gif|}} Register(Feature,Feature,DistanceUnit,GeographyUnit) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:This method returns a BaseShape which has been registered from its original coordinate system to another based on two anchor PointShapes. == Parameters == * //fromPoint// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:This parameter is the anchor PointFeature in the coordinate of origin. * //toPoint// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:This parameter is the anchor PointFeature in the coordinate of destination. * //fromUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description:This parameter is the DistanceUnit of the coordinate of origin. * //toUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This parameter is the GeographyUnit of the coordinate of destination.
** {{wiki:PublicMethod.gif|}} Validate(ShapeValidationMode) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.ShapeValidationResult|ShapeValidationResult]] * Description:This method returns a ShapeValidationResult based on a series of tests. == Parameters == * //validationMode// * Type:[[ThinkGeo.MapSuite.Shapes.ShapeValidationMode|ShapeValidationMode]] * Description: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.
** {{wiki:PublicMethod.gif|}} IsDisjointed(BaseShape) ** * //N/A// == Remarks == * //None// == Return Value == * Type:Boolean * Description: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 == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} IsDisjointed(Feature) ** * //N/A// == Remarks == * //None// == Return Value == * Type:Boolean * Description: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 == * //targetFeature// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:The feature you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} Intersects(BaseShape) ** * //N/A// == 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 == * Type:Boolean * Description:This method returns if the current shape and the targetShape have at least one point in common. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} Intersects(Feature) ** * //N/A// == 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 == * Type:Boolean * Description:This method returns if the current shape and the targetFeature have at least one point in common. == Parameters == * //targetFeature// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:The targetFeature you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} Touches(BaseShape) ** * //N/A// == 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 == * Type:Boolean * Description:This method returns if the current shape and the targetShape have at least one boundary point in common, but no interior points. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} Touches(Feature) ** * //N/A// == 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 == * Type:Boolean * Description:This method returns of the current shape and the targetFeature have at least one boundary point in common, but no interior points. == Parameters == * //targetFeature// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:The targetFeature which contains a shape that you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} Crosses(BaseShape) ** * //N/A// == 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 == * Type:Boolean * Description:This method returns if the current shape and the targetShape share some but not all interior points. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} Crosses(Feature) ** * //N/A// == 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 == * Type:Boolean * Description:This method returns if the current shape and the targetFeature share some but not all interior points. == Parameters == * //targetFeature// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:The targetFeature that contains a shape you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} IsWithin(BaseShape) ** * //N/A// == 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 == * Type:Boolean * Description:This method returns if the current shape lies within the interior of the targetShape. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} IsWithin(Feature) ** * //N/A// == 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 == * Type:Boolean * Description:This method returns if the current shape lies within the interior of the targetFeature. == Parameters == * //targetFeature// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:The targetFeature that contains a shape you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} Contains(BaseShape) ** * //N/A// == 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 == * Type:Boolean * Description:This method returns if the targetShape lies within the interior of the current shape. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} Contains(Feature) ** * //N/A// == 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 == * Type:Boolean * Description:This method returns if the targetFeature lies within the interior of the current shape. == Parameters == * //targetFeature// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:The targetFeature that contains a shape you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} Overlaps(BaseShape) ** * //N/A// == 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 == * Type:Boolean * Description:This method returns if the current shape and the targetShape share some but not all points in common. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} Overlaps(Feature) ** * //N/A// == 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 == * Type:Boolean * Description:This method returns if the current shape and the targetFeature share some but not all points in common. == Parameters == * //targetFeature// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:The targetFeature that contains a shape you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} IsTopologicallyEqual(BaseShape) ** * //N/A// == 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 == * Type:Boolean * Description:This method returns if the current shape and the targetShape are topologically equal. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} IsTopologicallyEqual(Feature) ** * //N/A// == 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 == * Type:Boolean * Description:This method returns if the current shape and the targetFeature are topologically equal. == Parameters == * //targetFeature// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:The targetFeature that contains a shape you wish to compare the current one to.
** {{wiki:PublicMethod.gif|}} GetFeature() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:The feature with the same Id and BaseShape as the current BaseShape, and with empty columnValues in it. == Parameters ==
** {{wiki:PublicMethod.gif|}} GetFeature(IDictionary) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:N/A == Parameters == * //columnValues// * Type:IDictionary * Description:N/A
** {{wiki:PublicMethod.gif|}} GetCrossing(BaseShape) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.MultipointShape|MultipointShape]] * Description:This method returns the crossing points between the current shape and the passed-in target shape. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The target shape you wish to get crossing points with.
** {{wiki:PublicMethod.gif|}} ScaleTo(Double) ** * //N/A// == 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 == * Type:Void * Description:This method is useful when you would like to increase or decrease the size of the shape. == Parameters == * //scale// * Type:Double * Description:Pepresents a value which scaleFactor to
** {{wiki:PublicMethod.gif|}} ToString() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:String * Description:N/A == Parameters ==
** {{wiki:PublicMethod.gif|}} Equals(Object) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Boolean * Description:N/A == Parameters == * //obj// * Type:Object * Description:N/A
** {{wiki:PublicMethod.gif|}} GetHashCode() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Int32 * Description:N/A == Parameters ==
** {{wiki:PublicMethod.gif|}} GetType() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Type * Description:N/A == Parameters ==
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} CreateShapeFromWellKnownData(String) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description: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 == * //wellKnownText// * Type:String * Description:A string representing the geometry in well-known text format.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} CreateShapeFromWellKnownData(Byte[]) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description: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 == * //wellKnownBinary// * Type:Byte[] * Description:An array of bytes representing the geometry in well-known binary format.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} CreateShapeFromGeoJson(String) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:N/A == Parameters == * //geoJson// * Type:String * Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} TranslateByOffset(BaseShape,Double,Double,GeographyUnit,DistanceUnit) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:This method returns a shape repositioned from one location to another based on an X and Y offset distance. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:This parameter is the basis of the moved shape. * //xOffsetDistance// * Type:Double * Description:This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter. * //yOffsetDistance// * Type:Double * Description:This is the number of vertical units of movement in the distance unit specified in the distanceUnit parameter. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This is the geographic unit of the shape you are performing the operation on. * //distanceUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description: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.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} TranslateByOffset(Feature,Double,Double,GeographyUnit,DistanceUnit) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:This method returns a feature repositioned from one location to another based on an X and Y offset distance. == Parameters == * //targetFeature// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:This parameter is the basis of the moved feature. * //xOffsetDistance// * Type:Double * Description:This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter. * //yOffsetDistance// * Type:Double * Description:This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This is the geographic unit of the shape you are performing the operation on. * //distanceUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description: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.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} TranslateByDegree(BaseShape,Double,Double,GeographyUnit,DistanceUnit) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:This method returns a shape repositioned from one location to another based on a distance and a direction in degrees. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:This parameter is the basis of the move. * //distance// * Type:Double * Description: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// * Type:Double * Description:A number between 0 and 360 degrees that represents the direction you wish to move the shape, with 0 being up. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This is the geographic unit of the shape you are performing the operation on. * //distanceUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description: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.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} TranslateByDegree(Feature,Double,Double,GeographyUnit,DistanceUnit) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:This method returns a feature repositioned from one location to another, based on a distance and a direction in degrees. == Parameters == * //targetFeature// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:This parameter is the basis of the move. * //distance// * Type:Double * Description: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// * Type:Double * Description:A number between 0 and 360 degrees that represents the direction you wish to move the feature, with 0 being up. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This is the geographic unit of the shape you are performing the operation on. * //distanceUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description: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.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} Rotate(BaseShape,PointShape,Single) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:This method returns a shape rotated by a number of degrees based on a pivot point. == Parameters == * //sourceBaseShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:This parameter is the basis for the rotation. * //pivotPoint// * Type:[[ThinkGeo.MapSuite.Shapes.PointShape|PointShape]] * Description:The pivotPoint represents the center of rotation. * //degreeAngle// * Type:Single * Description:The number of degrees of rotation required, from 0 to 360.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} Rotate(Feature,PointShape,Single) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:This method returns a shape rotated by a number of degrees based on a pivot point. == Parameters == * //targetFeature// * Type:[[ThinkGeo.MapSuite.Shapes.Feature|Feature]] * Description:This parameter is the basis for the rotation. * //pivotPoint// * Type:[[ThinkGeo.MapSuite.Shapes.PointShape|PointShape]] * Description:The pivotPoint represents the center of rotation. * //degreeAngle// * Type:Single * Description:The number of degrees of rotation required, from 0 to 360.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ScaleTo(BaseShape,Double) ** * //N/A// == Remarks == * //It will call the instanced method ScaleTo internally.// == Return Value == * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:This method is useful when you would like to increase or decrease the size of the shape. == Parameters == * //baseShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:Represents a shape which you want to resize * //scale// * Type:Double * Description:Pepresents a value which scaleFactor to.
===== Protected Methods ===== ** {{wiki:ProtectedMethod.gif|}} LoadFromWellKnownDataCore(String) ** * //N/A// == Remarks == * //None// == Return Value == * Type:Void * Description:None == Parameters == * //wellKnownText// * Type:String * Description:This parameter is the well-known text you will use to hydrate your object.
** {{wiki:ProtectedMethod.gif|}} GetGeoJsonCore() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:String * Description:N/A == Parameters ==
** {{wiki:ProtectedMethod.gif|}} GetWellKnownTextCore(RingOrder) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:String * Description:N/A == Parameters == * //outerRingOrder// * Type:[[ThinkGeo.MapSuite.Shapes.RingOrder|RingOrder]] * Description:N/A
** {{wiki:ProtectedMethod.gif|}} LoadFromWellKnownDataCore(Byte[]) ** * //N/A// == 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 == * Type:Void * Description:None == Parameters == * //wellKnownBinary// * Type:Byte[] * Description:This parameter is the well-known binary used to populate the shape.
** {{wiki:ProtectedMethod.gif|}} GetWellKnownBinaryCore(RingOrder,WkbByteOrder) ** * //N/A// == 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. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.// == Return Value == * Type:Byte[] * Description:This method returns a byte array that represents the shape in well-known binary. == Parameters == * //outerRingOrder// * Type:[[ThinkGeo.MapSuite.Shapes.RingOrder|RingOrder]] * Description:N/A * //byteOrder// * Type:[[ThinkGeo.MapSuite.Shapes.WkbByteOrder|WkbByteOrder]] * Description:This parameter specifies if the byte order is big- or little-endian.
** {{wiki:ProtectedMethod.gif|}} GetBoundingBoxCore() ** * //N/A// == Remarks == * //The GetBoundingBox method calculates the smallest RectangleShape that can encompass the entire geometry by examining each point in the geometry. Depending on the number of PointShapes and complexity of the geometry, this operation can take longer for larger objects. If the shape is a PointShape, then the bounding box's upper left and lower right points will be equal. This will create a RectangleShape with no area. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.// == Return Value == * Type:[[ThinkGeo.MapSuite.Shapes.RectangleShape|RectangleShape]] * Description:The RectangleShape returned is the smallest RectangleShape that can encompass the entire geometry. == Parameters ==
** {{wiki:ProtectedMethod.gif|}} GetWellKnownTypeCore() ** * //N/A// == Remarks == * //None// == Return Value == * Type:[[ThinkGeo.MapSuite.Shapes.WellKnownType|WellKnownType]] * Description:This method returns the well-known type for the shape. == Parameters ==
** {{wiki:ProtectedMethod.gif|}} CloneDeepCore() ** * //N/A// == Remarks == * //When you override this method, you need to ensure that there are no references in common between the original and copy.// == Return Value == * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:This method returns a complete copy of the shape without any references in common. == Parameters ==
** {{wiki:ProtectedMethod.gif|}} TranslateByOffsetCore(Double,Double,GeographyUnit,DistanceUnit) ** * //N/A// == 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. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.// == Return Value == * Type:Void * Description:N/A == Parameters == * //xOffsetDistance// * Type:Double * Description:This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter. * //yOffsetDistance// * Type:Double * Description:This is the number of horizontal units of movement in the distance unit specified in the distanceUnit parameter. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This is the geographic unit of the base shape you are performing the operation on. * //distanceUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description: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.
** {{wiki:ProtectedMethod.gif|}} TranslateByDegreeCore(Double,Double,GeographyUnit,DistanceUnit) ** * //N/A// == 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. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.// == Return Value == * Type:Void * Description:N/A == Parameters == * //distance// * Type:Double * Description: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// * Type:Double * Description:A number between 0 and 360 degrees that represents the direction you wish to move the shape, with 0 being up. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This is the geographic unit of the shape you are performing the operation on. * //distanceUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description: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.
** {{wiki:ProtectedMethod.gif|}} RotateCore(PointShape,Single) ** * //N/A// == 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 == * Type:Void * Description:N/A == Parameters == * //pivotPoint// * Type:[[ThinkGeo.MapSuite.Shapes.PointShape|PointShape]] * Description:The pivotPoint represents the center of rotation. * //degreeAngle// * Type:Single * Description:The number of degrees of rotation required, from 0 to 360.
** {{wiki:ProtectedMethod.gif|}} GetShortestLineToCore(BaseShape,GeographyUnit) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.MultilineShape|MultilineShape]] * Description:A LineShape representing the shortest distance between the shape you're calling the method on and the targetShape. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you are trying to find the distance to. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:The geographic unit of the shape you are trying to find the distance to.
** {{wiki:ProtectedMethod.gif|}} GetClosestPointToCore(BaseShape,GeographyUnit) ** * //N/A// == 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. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.// == Return Value == * Type:[[ThinkGeo.MapSuite.Shapes.PointShape|PointShape]] * Description:A PointShape representing the closest point of the current shape to the targetShape. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you are trying to find the closest point to. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:The geographic unit of the shape you are trying to find the closet point to.
** {{wiki:ProtectedMethod.gif|}} GetCenterPointCore() ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.PointShape|PointShape]] * Description:A PointShape representing the center point of the current shape's bounding box. == Parameters ==
** {{wiki:ProtectedMethod.gif|}} BufferCore(Double,Int32,BufferCapType,GeographyUnit,DistanceUnit) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.MultipolygonShape|MultipolygonShape]] * Description:The return type is a MultiPolygonShape that represents all of the points within a given distance from the shape. == Parameters == * //distance// * Type:Double * Description:The distance is the number of units to buffer the current shape. The distance unit will be the one specified in the distanceUnit parameter. * //quadrantSegments// * Type:Int32 * Description:The number of quadrantSegments used in the buffer logic. * //bufferCapType// * Type:[[ThinkGeo.MapSuite.Shapes.BufferCapType|BufferCapType]] * Description:The bufferCapType used in the buffer logic. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This is the geographic unit of the shape you are performing the operation on. * //distanceUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description: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.
** {{wiki:ProtectedMethod.gif|}} GetDistanceToCore(BaseShape,GeographyUnit,DistanceUnit) ** * //N/A// == 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 == * Type:Double * Description: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 == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you are trying to find the distance to. * //shapeUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:the geographic unit of the targetShape. * //distanceUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description:The returning distance unit.
** {{wiki:ProtectedMethod.gif|}} RegisterCore(PointShape,PointShape,DistanceUnit,GeographyUnit) ** * //N/A// == 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. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.// == Return Value == * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:This method returns a BaseShape which has been registered from its original coordinate system to another based on two anchor PointShapes. == Parameters == * //fromPoint// * Type:[[ThinkGeo.MapSuite.Shapes.PointShape|PointShape]] * Description:This parameter is the anchor PointShape in the coordinate of origin. * //toPoint// * Type:[[ThinkGeo.MapSuite.Shapes.PointShape|PointShape]] * Description:This parameter is the anchor PointShape in the coordinate of destination. * //fromUnit// * Type:[[ThinkGeo.MapSuite.Shapes.DistanceUnit|DistanceUnit]] * Description:This parameter is the DistanceUnit of the coordinate of origin. * //toUnit// * Type:[[ThinkGeo.MapSuite.GeographyUnit|GeographyUnit]] * Description:This parameter is the GeographyUnit of the coordinate of destination.
** {{wiki:ProtectedMethod.gif|}} ValidateCore(ShapeValidationMode) ** * //N/A// == 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. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.// == Return Value == * Type:[[ThinkGeo.MapSuite.Shapes.ShapeValidationResult|ShapeValidationResult]] * Description:This method returns a ShapeValidationResult based on a series of tests. == Parameters == * //validationMode// * Type:[[ThinkGeo.MapSuite.Shapes.ShapeValidationMode|ShapeValidationMode]] * Description: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.
** {{wiki:ProtectedMethod.gif|}} IsDisjointedCore(BaseShape) ** * //N/A// == Remarks == * //Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.// == Return Value == * Type:Boolean * Description:This method returns if the current shape and the targetShape have no points in common. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:ProtectedMethod.gif|}} IntersectsCore(BaseShape) ** * //N/A// == Remarks == * //Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.// == Return Value == * Type:Boolean * Description:This method returns if the current shape and the targetShape have at least one point in common. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:ProtectedMethod.gif|}} TouchesCore(BaseShape) ** * //N/A// == Remarks == * //Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.// == Return Value == * Type:Boolean * Description:This method returns if the current shape and the targetShape have at least one boundary point in common, but no interior points. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:ProtectedMethod.gif|}} CrossesCore(BaseShape) ** * //N/A// == Remarks == * //Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.// == Return Value == * Type:Boolean * Description:This method returns if the current shape and the targetShape share some but not all interior points. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:ProtectedMethod.gif|}} IsWithinCore(BaseShape) ** * //N/A// == Remarks == * //Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.// == Return Value == * Type:Boolean * Description:This method returns if the current shape lies within the interior of the targetShape. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:ProtectedMethod.gif|}} ContainsCore(BaseShape) ** * //N/A// == Remarks == * //Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.// == Return Value == * Type:Boolean * Description:This method returns if the targetShape lies within the interior of the current shape. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:ProtectedMethod.gif|}} OverlapsCore(BaseShape) ** * //N/A// == Remarks == * //Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.// == Return Value == * Type:Boolean * Description:This method returns if the current shape and the targetShape share some but not all points in common. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:ProtectedMethod.gif|}} IsTopologicallyEqualCore(BaseShape) ** * //N/A// == 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 == * Type:Boolean * Description:This method returns if the current shape and the targetShape are topologically equal. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The shape you wish to compare the current one to.
** {{wiki:ProtectedMethod.gif|}} GetCrossingCore(BaseShape) ** * //N/A// == 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 == * Type:[[ThinkGeo.MapSuite.Shapes.MultipointShape|MultipointShape]] * Description:This method returns the crossing points between the current shape and the passed-in target shape. == Parameters == * //targetShape// * Type:[[ThinkGeo.MapSuite.Shapes.BaseShape|BaseShape]] * Description:The target shape you wish to get crossing with.
** {{wiki:ProtectedMethod.gif|}} ScaleToCore(Double) ** * //N/A// == Remarks == * //This protected virtual method is called from the concrete public method ScaleTo. It does not take into account any transaction activity, as this is the responsibility of the concrete public method ScaleTo. This way, as a developer, if you choose to override this method you do not have to consider transactions at all.// == Return Value == * Type:Void * Description:This method is useful when you would like to increase or decrease the size of the shape. == Parameters == * //scale// * Type:Double * Description:Pepresents a value which scaleFactor to
** {{wiki:ProtectedMethod.gif|}} Finalize() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters ==
** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Object * Description:N/A == Parameters ==
==== Public Properties ==== ** {{wiki:PublicProperty.gif|}} Id ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:String ** {{wiki:PublicProperty.gif|}} Tag ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Object ** {{wiki:PublicProperty.gif|}} CanRotate ** * //N/A// == Remarks == * //If this property returns false and you attempt to call the rotate method, it will throw a NotImplementedException.// == Return Value == * Type:Boolean ==== Protected Properties ==== ==== Public Events ====