Geo |
This is preliminary documentation and is subject to change.
The GeoCoordinateRectangle type exposes the following members.
Name | Description | |
---|---|---|
GeoCoordinateRectangle | Initializes a new GeoCoordinateRectangle with the specified left, top, width, height on sphere. |
Name | Description | |
---|---|---|
Bottom | Gets the bottom-border latitude of the rectangle. | |
Height | Gets/sets the height in latitude of the rectangle. | |
IsEmpty | Determines whether the rectangle is empty in area. | |
IsNormalizable | Gets a value that indicates whether the current rectangle instance is normalizable. | |
IsNormalized | Determines whether the coordinates of current spherical rectangle are normalized. | |
Left | Gets/sets the left-border longitude of the rectangle. | |
Right | Gets the right-border longitude of the rectangle. | |
Top | Gets/sets the top-border latitude of the rectangle. | |
Width | Gets/sets the width in longitude of the rectangle. |
Name | Description | |
---|---|---|
Contains | Determines whether the rectangle contains the given coordinate, or the given coordinate falls on the edge of the rectangle. | |
Equals(GeoCoordinateRectangle) | Indicates whether the current object is equal to another object of the same type. | |
Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object)) | |
FromBoundingCoordinates(GeoCoordinate, GeoCoordinate) | Constructs a GeoCoordinateRectangle instance from the given bounding coordinates. | |
FromBoundingCoordinates(Double, Double, Double, Double) | Constructs a GeoCoordinateRectangle instance from the given bounding coordinates. | |
GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
Normalize | Normalizes the coordinates, ensuring the current coordinates meets the definition of "normalized spherical rectangle" as specified in IsNormalized. | |
Offset | Offsets the rectangle by the specified values. | |
ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString) |
Name | Description | |
---|---|---|
Equality(GeoCoordinateRectangle, GeoCoordinateRectangle) | ||
Inequality(GeoCoordinateRectangle, GeoCoordinateRectangle) |
This structure uses degrees as the unit of the coordinate.
Keep in mind the latitude decreases as you go down / south (i.e. bottom of the rectangle). Thus Bottom value is less than or equals to Top value.
Rectangles spanning along meridian and across the north/south pole may not be represented properly by this structure. Consider using two GeoCoordinateRectangle instances in this case. Though you may still represent such a rectangle with Bottom less than -90, you will not be able to normalize it and perform other common operations. See Normalize and Contains(GeoCoordinate) for more information.