User Tools

Site Tools


api:thinkgeo.mapsuite.shapes.rectangleshape

ThinkGeo.MapSuite.Shapes.RectangleShape

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.Shapes.BaseShape
      • ThinkGeo.MapSuite.Shapes.AreaBaseShape
        • ThinkGeo.MapSuite.Shapes.RectangleShape

Members Summary

Public Constructors

RectangleShape()

  • This constructor creates a RectangleShape.
Remarks
  • None
Parameters

RectangleShape(PointShape,PointShape)

  • This constructor creates a RectangleShape.
Remarks
  • None
Parameters
  • upperLeftPoint
    • Description:This parameter specifies the upper left point of the rectangle.
  • lowerRightPoint
    • Description:This parameter specifies the lower right point of the rectangle.

RectangleShape(Double,Double,Double,Double)

  • This constructor creates a RectangleShape.
Remarks
  • None
Parameters
  • minX
    • Type:Double
    • Description:This property specifies the minimum X value. This is also the upper left X.
  • maxY
    • Type:Double
    • Description:This property specifies the maximum Y value. This is also the upper left Y.
  • maxX
    • Type:Double
    • Description:This property specifies the maximum X value. This is also the lower right X.
  • minY
    • Type:Double
    • Description:This property specifies the minimum Y value. This is also the lower right Y.

RectangleShape(String)

  • This constructor creates a RectangleShape.
Remarks
  • None
Parameters
  • wellKnownText
    • Type:String
    • Description:This parameter is the well-known text used to build the shape.

RectangleShape(Byte[])

  • This constructor creates a RectangleShape.
Remarks
  • None
Parameters
  • wellKnownBinary
    • Type:Byte[]
    • Description:This parameter is the well-known binary used to build the shape.

Protected Constructors

Public Methods

GetIntersection(RectangleShape)

  • N/A
Remarks
  • None
Return Value
  • Description:The return type is a RectangleShape that contains the set of all points which lie in both the current shape and the target shape.
Parameters
  • targetShape
    • Description:The shape you are trying to find the intersection with.

ToPolygon()

  • N/A
Remarks
  • This method is mainly used to convert this GIS non-standard shape to a GIS standard shape.
Return Value
  • Description:This method returns the current shape as a PolygonShape.
Parameters

ExpandToInclude(BaseShape)

  • N/A
Remarks
  • There is also an overload that can expand the RectangleShape using a list of multiple shapes.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • targetShape
    • Type:BaseShape
    • Description:This parameter is used to expand the current rectangle.

ExpandToInclude(Feature)

  • N/A
Remarks
  • There is also an overload that can expand the RectangleShape using a collection of features.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • targetFeature
    • Type:Feature
    • Description:This parameter is used to expand the current feature.

ExpandToInclude(IEnumerable<BaseShape>)

  • N/A
Remarks
  • There is also an overload that can expand the RectangleShape using a single shape.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • targetShapes
    • Type:IEnumerable<BaseShape>
    • Description:This parameter is used to expand the current rectangle.

ExpandToInclude(IEnumerable<Feature>)

  • N/A
Remarks
  • There also is an overload that can expand the RectangleShape using a single feature.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • targetFeatures
    • Type:IEnumerable<Feature>
    • Description:This parameter is a group of features used to expand the current rectangle.

ToString()

  • N/A
Remarks
  • The value will be formatted in the standard string format: -180,90,180,-90“
Return Value
  • Type:String
  • Description:This method returns a formatted representation of the UpperLeftPoint.X, UpperLeftPoint.Y, LowerRightPoint.X and LowerRightPoint.Y value.
Parameters

GetPerimeter(GeographyUnit,DistanceUnit)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Double
  • Description:N/A
Parameters

GetArea(GeographyUnit,AreaUnit)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Double
  • Description:N/A
Parameters
  • returningUnit

ScaleUp(Double)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • percentage
    • Type:Double
    • Description:N/A

GetAccuratePerimeter(Int32,DistanceUnit,DistanceCalculationMode)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Double
  • Description:N/A
Parameters
  • shapeSrid
    • Type:Int32
    • Description:N/A

GetAccuratePerimeter(String,DistanceUnit,DistanceCalculationMode)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Double
  • Description:N/A
Parameters
  • shapeProj4ProjectionParameters
    • Type:String
    • Description:N/A

GetAccurateArea(Int32,AreaUnit,DistanceCalculationMode)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Double
  • Description:N/A
Parameters
  • shapeSrid
    • Type:Int32
    • Description:N/A
  • returningUnit

GetAccurateArea(String,AreaUnit,DistanceCalculationMode)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Double
  • Description:N/A
Parameters
  • shapeProj4ProjectionParameters
    • Type:String
    • Description:N/A
  • returningUnit

ScaleDown(Double)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • percentage
    • Type:Double
    • Description:N/A

GetConvexHull()

  • N/A
Remarks
  • N/A
Return Value
Parameters

GetIntersection(AreaBaseShape)

  • N/A
Remarks
  • N/A
Return Value
Parameters

GetIntersection(Feature)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • targetFeature

Union(AreaBaseShape)

  • N/A
Remarks
  • N/A
Return Value
Parameters

Union(Feature)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • targetFeature

GetDifference(AreaBaseShape)

  • N/A
Remarks
  • N/A
Return Value
Parameters

GetDifference(Feature)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • targetFeature

GetSymmetricalDifference(AreaBaseShape)

  • N/A
Remarks
  • N/A
Return Value
Parameters

GetSymmetricalDifference(Feature)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • targetFeature

Simplify(GeographyUnit,Double,DistanceUnit,SimplificationType)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • tolerance
    • Type:Double
    • Description:N/A

Simplify(Double,SimplificationType)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • tolerance
    • Type:Double
    • Description:N/A

LoadFromWellKnownData(String)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • wellKnownText
    • Type:String
    • Description:N/A

GetWellKnownText()

  • N/A
Remarks
  • N/A
Return Value
  • Type:String
  • Description:N/A
Parameters

GetGeoJson()

  • N/A
Remarks
  • N/A
Return Value
  • Type:String
  • Description:N/A
Parameters

GetWellKnownText(RingOrder)

  • N/A
Remarks
  • N/A
Return Value
  • Type:String
  • Description:N/A
Parameters
  • outerRingOrder

LoadFromWellKnownData(Byte[])

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • wellKnownBinary
    • Type:Byte[]
    • Description:N/A

GetWellKnownBinary()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Byte[]
  • Description:N/A
Parameters

GetWellKnownBinary(WkbByteOrder)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Byte[]
  • Description:N/A
Parameters

GetWellKnownBinary(RingOrder)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Byte[]
  • Description:N/A
Parameters
  • outerRingOrder

GetWellKnownBinary(RingOrder,WkbByteOrder)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Byte[]
  • Description:N/A
Parameters
  • outerRingOrder

GetBoundingBox()

  • N/A
Remarks
  • N/A
Return Value
Parameters

GetWellKnownType()

  • N/A
Remarks
  • N/A
Return Value
Parameters

CloneDeep()

  • N/A
Remarks
  • N/A
Return Value
Parameters

TranslateByOffset(Double,Double,GeographyUnit,DistanceUnit)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • xOffsetDistance
    • Type:Double
    • Description:N/A
  • yOffsetDistance
    • Type:Double
    • Description:N/A

TranslateByOffset(Double,Double)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • xOffsetDistance
    • Type:Double
    • Description:N/A
  • yOffsetDistance
    • Type:Double
    • Description:N/A

TranslateByDegree(Double,Double,GeographyUnit,DistanceUnit)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • distance
    • Type:Double
    • Description:N/A
  • angleInDegrees
    • Type:Double
    • Description:N/A

TranslateByDegree(Double,Double)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • distance
    • Type:Double
    • Description:N/A
  • angleInDegrees
    • Type:Double
    • Description:N/A

Rotate(PointShape,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • degreeAngle
    • Type:Single
    • Description:N/A

GetShortestLineTo(BaseShape,GeographyUnit)

  • N/A
Remarks
  • N/A
Return Value
Parameters

GetShortestLineTo(Feature,GeographyUnit)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • targetFeature

GetClosestPointTo(BaseShape,GeographyUnit)

  • N/A
Remarks
  • N/A
Return Value
Parameters

GetClosestPointTo(Feature,GeographyUnit)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • targetFeature

GetCenterPoint()

  • N/A
Remarks
  • N/A
Return Value
Parameters

Buffer(Double,GeographyUnit,DistanceUnit)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • distance
    • Type:Double
    • Description:N/A

Buffer(Double,Int32,GeographyUnit,DistanceUnit)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • distance
    • Type:Double
    • Description:N/A
  • quadrantSegments
    • Type:Int32
    • Description:N/A

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

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • distance
    • Type:Double
    • Description:N/A
  • quadrantSegments
    • Type:Int32
    • Description:N/A

GetDistanceTo(BaseShape,GeographyUnit,DistanceUnit)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Double
  • Description:N/A
Parameters

GetDistanceTo(Feature,GeographyUnit,DistanceUnit)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Double
  • Description:N/A
Parameters
  • targetFeature

Register(PointShape,PointShape,DistanceUnit,GeographyUnit)

  • N/A
Remarks
  • N/A
Return Value
Parameters

Register(Feature,Feature,DistanceUnit,GeographyUnit)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • fromPoint
  • toPoint

Validate(ShapeValidationMode)

  • N/A
Remarks
  • N/A
Return Value
Parameters

IsDisjointed(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters

IsDisjointed(Feature)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • targetFeature

Intersects(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters

Intersects(Feature)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • targetFeature

Touches(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters

Touches(Feature)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • targetFeature

Crosses(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters

Crosses(Feature)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • targetFeature

IsWithin(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters

IsWithin(Feature)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • targetFeature

Contains(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters

Contains(Feature)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • targetFeature

Overlaps(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters

Overlaps(Feature)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • targetFeature

IsTopologicallyEqual(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters

IsTopologicallyEqual(Feature)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • targetFeature

GetFeature()

  • N/A
Remarks
  • N/A
Return Value
Parameters

GetFeature(IDictionary<String,String>)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • columnValues
    • Type:IDictionary<String,String>
    • Description:N/A

GetCrossing(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
Parameters

ScaleTo(Double)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • scale
    • Type:Double
    • Description:N/A

Equals(Object)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Int32
  • Description:N/A
Parameters

GetType()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Type
  • Description:N/A
Parameters

Protected Methods

GetWellKnownTypeCore()

  • N/A
Remarks
  • None
Return Value
  • Description:This method returns the well-known type for the shape.
Parameters

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:BaseShape
  • Description:This method returns a complete copy of the shape without any references in common.
Parameters

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
  • Description:A PointShape representing the center point of the current shape's bounding box.
Parameters

ExpandToIncludeCore(BaseShape)

  • N/A
Remarks
  • There is also an overload that can expand the RectangleShape using a list of shapes.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • targetShape
    • Type:BaseShape
    • Description:This parameter is used to expand the current rectangle.

GetPerimeterCore(GeographyUnit,DistanceUnit)

  • N/A
Remarks
  • You would use this method to find the distance around the area shape.
Return Value
  • Type:Double
  • Description:The return unit is based on the LengthUnit you specify in the returningUnit parameter, regardless of the shape's GeographyUnit.
Parameters
  • shapeUnit
    • Description:This is the GeographyUnit of the shape you are performing the operation on.
  • returningUnit
    • Description:This is the DistanceUnit you would like to use as the return value. For example, if you select miles as your returningUnit, then the distance will be returned in miles.

GetAreaCore(GeographyUnit,AreaUnit)

  • N/A
Remarks
  • You would use this method to find the area inside the shape.
Return Value
  • Type:Double
  • Description:The return unit is based on the AreaUnit you specify in the returningUnit parameter, regardless of the shape's GeographyUnit.
Parameters
  • shapeUnit
    • Description:This is the GeographyUnit of the shape you are performing the operation on.
  • returningUnit
    • Type:AreaUnit
    • Description:This is the AreaUnit you would like to use as the return value. For example, if you select square miles as your returningUnit, then the distance will be returned in square miles.

ScaleUpCore(Double)

  • N/A
Remarks
  • This method is useful when you would like to increase the size of the shape. Note that a larger percentage will scale the shape up faster, as you are applying the operation multiple times. There is also a ScaleDown method that will shrink the shape.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • percentage
    • Type:Double
    • Description:This is the percentage by which to increase the shape's size.

ScaleDownCore(Double)

  • N/A
Remarks
  • None
Return Value
  • Type:Void
  • Description:This method is useful when you would like to decrease the size of the shape. Note that a larger percentage will scale the shape down faster, as you are applying the operation multiple times. There is also a ScaleUp method that will enlarge the shape.
Parameters
  • percentage
    • Type:Double
    • Description:This is the percentage by which to decrease the shape's size.

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.
Return Value
  • Description:The RectangleShape returned is the smallest RectangleShape that can encompass the entire geometry.
Parameters

RegisterCore(PointShape,PointShape,DistanceUnit,GeographyUnit)

  • N/A
Remarks
  • The register method is useful, for example, when a group of points represented by a MultipointShape has been generated in a non-geographic coordinate in meters, and you want to plot the points on a map that is in decimal degrees.
Return Value
  • Type:BaseShape
  • Description:This method returns a MultipointShape which has been registered from its original coordinate system to another based on two anchor PointShapes.
Parameters
  • fromPoint
    • Description:This parameter is the anchor PointShape in the coordinate of origin.
  • toPoint
    • Description:This parameter is the anchor PointShape in the coordinate of destination.
  • fromUnit
    • Description:This parameter is the GeographyUnit of the coordinate of origin.
  • toUnit
    • Description:This parameter is the GeographyUnit of the coordinate of destination.

TranslateByOffsetCore(Double,Double,GeographyUnit,DistanceUnit)

  • N/A
Remarks
  • This method moves the base shape from one location to another, based on an X and Y offset distance. With this overload, it is important to note that the X and Y offset units are based on the distanceUnit parameter. For example, if your shape is in decimal degrees and you call this method with an X offset of 1 and a Y offset of 1, you're going to move this shape 1 unit of the distanceUnit in the horizontal direction and one unit of the distanceUnit in the vertical direction. In this way, you can easily move a shape in decimal degrees five miles to on the X axis and 3 miles on the Y axis.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • xOffsetDistance
    • Type:Double
    • Description:This is the number of horizontal units of movement in the DistanceUnit specified as the distanceUnit.
  • yOffsetDistance
    • Type:Double
    • Description:This is the number of horizontal units of movement in the DistanceUnit specified as the distanceUnit.
  • shapeUnit
    • Description:This is the GeographicUnit of the shape you are performing the operation on.
  • distanceUnit
    • Description:This is the DistanceUnit you would like to use as the measure for the move. For example, if you select miles as your distanceUnit, then the xOffsetDistance and yOffsetDistance will be calculated in miles.

TranslateByDegreeCore(Double,Double,GeographyUnit,DistanceUnit)

  • N/A
Remarks
  • This method moves the base shape from one location to another, based on an angleInDegrees and distance parameter. With this overload, it is important to note that the distance units are the same GeographicUnit as the shape. For example, if your shape is in decimal degrees and you call this method with a distance of 1, you're going to move this shape 1 decimal degree in direction of the angleInDegrees. In many cases it is more useful to specify the DistanceUnit of movement, such as in miles or yards, so for these scenarios there is another overload you may want to use instead.If you pass a distance of 0, then the operation is ignored.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • distance
    • Type:Double
    • Description:The distance is the number of units to move the shape in the angle specified. The distance unit will be the same as the GeographyUnit for the shape. The distance must be greater than or equal to 0.
  • angleInDegrees
    • 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
    • Description:This is the GeographicUnit of the shape you are performing the operation on.
  • distanceUnit
    • Description:This is the DistanceUnit you would like to use as the measure for the move. For example, if you select miles as your distanceUnit, then the xOffsetDistance and yOffsetDistance will be calculated in miles.

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.
Return Value
  • Description:A PointShape representing the closest point of the current shape to the targetShape.
Parameters
  • targetShape
    • Type:BaseShape
    • Description:The shape you are trying to find the closest point to.
  • shapeUnit
    • Description:This is the GeographicUnit of the shape you are performing the operation on.

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:BaseShape
    • Description:The shape you are trying to find the distance to.
  • shapeUnit
    • Description:The GeographyUnit of the targetShape.
  • distanceUnit
    • Description:The DistanceUnit of the returned value.

GetWellKnownTextCore(RingOrder)

  • N/A
Remarks
  • This method returns a string that represents the shape in well-known text. Well-known text allows you to describe a geometry as a string of text. Well-known text is useful when you want to save a geometry in a format such as a text file, or when you simply want to cut and paste the text between other applications. An alternative to well-known text is well-known binary, which is a binary representation of a geometry object. We have methods that work with well-known binary as well. Below are some samples of what well-known text might look like for various kinds of geometric shapes.POINT(5 17)LINESTRING(4 5,10 50,25 80)POLYGON1)MULTIPOINT(3.7 9.7,4.9 11.6)MULTILINESTRING2)MULTIPOLYGON3),4))
Return Value
  • Type:String
  • Description:This method returns a string that represents the shape in well-known text.
Parameters
  • outerRingOrder

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 a geometry as a binary array. Well-known binary is useful when you want to save a geometry in an efficient format using as little space as possible. An alternative to well-known binary is well-known text, which is a textual representation of a geometry object. We have methods that work with well-known text as well.
Return Value
  • Type:Byte[]
  • Description:This method returns a byte array that represents the shape in well-known binary.
Parameters
  • outerRingOrder
  • byteOrder
    • Description:This parameter specifies whether the byte order is big- or little-endian.

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.

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.

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 whether the current shape and the targetShape have no points in common.
Parameters
  • targetShape
    • Type:BaseShape
    • Description:The shape you wish to compare the current one to.

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.
Return Value
  • Description:This method returns a ShapeValidationResult based on a series of tests.
Parameters
  • validationMode
    • 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.

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
  • Description:This method returns the crossing points between the current shape and the passed-in target shape.
Parameters
  • targetShape
    • Type:BaseShape
    • Description:The target shape you wish to get crossing with.

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:BaseShape
    • Description:The shape you wish to compare the current one to.

GetAccurateAreaCore(String,AreaUnit,DistanceCalculationMode)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Double
  • Description:N/A
Parameters
  • shapeProj4ProjectionParameters
    • Type:String
    • Description:N/A
  • returningUnit

GetAccuratePerimeterCore(String,DistanceUnit,DistanceCalculationMode)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Double
  • Description:N/A
Parameters
  • shapeProj4ProjectionParameters
    • Type:String
    • Description:N/A

GetConvexHullCore()

  • N/A
Remarks
  • N/A
Return Value
Parameters

GetIntersectionCore(AreaBaseShape)

  • N/A
Remarks
  • N/A
Return Value
Parameters

UnionCore(AreaBaseShape)

  • N/A
Remarks
  • N/A
Return Value
Parameters

GetDifferenceCore(AreaBaseShape)

  • N/A
Remarks
  • N/A
Return Value
Parameters

GetSymmetricalDifferenceCore(AreaBaseShape)

  • N/A
Remarks
  • N/A
Return Value
Parameters

SimplifyCore(Double,SimplificationType)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • tolerance
    • Type:Double
    • Description:N/A

GetGeoJsonCore()

  • N/A
Remarks
  • N/A
Return Value
  • Type:String
  • Description:N/A
Parameters

RotateCore(PointShape,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • degreeAngle
    • Type:Single
    • Description:N/A

GetShortestLineToCore(BaseShape,GeographyUnit)

  • N/A
Remarks
  • N/A
Return Value
Parameters

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

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • distance
    • Type:Double
    • Description:N/A
  • quadrantSegments
    • Type:Int32
    • Description:N/A

IntersectsCore(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters

TouchesCore(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters

CrossesCore(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters

IsWithinCore(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters

OverlapsCore(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters

IsTopologicallyEqualCore(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters

ScaleToCore(Double)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • scale
    • Type:Double
    • Description:N/A

Finalize()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

MemberwiseClone()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Object
  • Description:N/A
Parameters

Public Properties

UpperLeftPoint

  • N/A
Remarks
  • None
Return Value

UpperRightPoint

  • N/A
Remarks
  • None
Return Value

LowerRightPoint

  • N/A
Remarks
  • None
Return Value

LowerLeftPoint

  • N/A
Remarks
  • None
Return Value

Height

  • N/A
Remarks
  • None
Return Value
  • Type:Double

Width

  • N/A
Remarks
  • None
Return Value
  • Type:Double

Id

  • N/A
Remarks
  • N/A
Return Value
  • Type:String

Tag

  • N/A
Remarks
  • N/A
Return Value
  • Type:Object

CanRotate

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean

Protected Properties

Public Events

1) 2 2,6 2,6 6,2 6,2 2),(3 3,4 3,4 4,3 4,3 3
2) 4 5,11 51,21 26),(-4 -7,-9 -7,-14 -3
3) (2 2,6 2,6 6,2 6,2 2),(3 3,4 3,4 4,3 4,3 3
4) 4 4,7 3,7 5,4 4
api/thinkgeo.mapsuite.shapes.rectangleshape.txt · Last modified: 2017/01/11 06:50 (external edit)