Class GeoBox
Represents a rectangle for a geospatial GeoWithin(IEmbeddedObject?, GeoShapeBase) query.
Namespace: Realms
Assembly: Realm.dll
Syntax
public class GeoBox : GeoShapeBase
Constructors
| Edit this page View SourceGeoBox(GeoPoint, GeoPoint)
Initializes a new instance of the GeoBox class from the provided coordinates.
Declaration
public GeoBox(GeoPoint bottomLeftCorner, GeoPoint topRightCorner)
Parameters
Type | Name | Description |
---|---|---|
GeoPoint | bottomLeftCorner | The bottom left corner of the rectangle. |
GeoPoint | topRightCorner | The top right corner of the rectangle. |
GeoBox(double, double, double, double)
Initializes a new instance of the GeoBox class from the provided coordinates.
Declaration
public GeoBox(double left, double top, double right, double bottom)
Parameters
Type | Name | Description |
---|---|---|
double | left | The longitude of the left edge of the rectangle. |
double | top | The latitude of the top edge of the rectangle. |
double | right | The longitude of the right edge of the rectangle. |
double | bottom | The latitude of the bottom edge of the rectangle. |
Properties
| Edit this page View SourceBottom
Gets the latitude of the bottom edge of the rectangle.
Declaration
public double Bottom { get; }
Property Value
Type | Description |
---|---|
double | The box's bottom edge. |
Left
Gets the longitude of the left edge of the rectangle.
Declaration
public double Left { get; }
Property Value
Type | Description |
---|---|
double | The box's left edge. |
Right
Gets the longitude of the right edge of the rectangle.
Declaration
public double Right { get; }
Property Value
Type | Description |
---|---|
double | The box's right edge. |
Top
Gets the latitude of the top edge of the rectangle.
Declaration
public double Top { get; }
Property Value
Type | Description |
---|---|
double | The box's top edge. |
Methods
| Edit this page View SourceToString()
Returns a string representation of the value.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of the value. |