Search Results for

    Show / Hide Table of Contents

    Class GeoBox

    Represents a rectangle for a geospatial GeoWithin(IEmbeddedObject?, GeoShapeBase) query.

    Inheritance
    object
    GeoShapeBase
    GeoBox
    Namespace: Realms
    Assembly: Realm.dll
    Syntax
    public class GeoBox : GeoShapeBase

    Constructors

    | Edit this page View Source

    GeoBox(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.

    | Edit this page View Source

    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 Source

    Bottom

    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.

    | Edit this page View Source

    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.

    | Edit this page View Source

    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.

    | Edit this page View Source

    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 Source

    ToString()

    Returns a string representation of the value.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string representation of the value.

    Overrides
    object.ToString()
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2020-2024 Realm
    Generated by DocFX