Class GeoBoundingBox
A geographic bounding rectangle in WGS-84, expressed as decimal degrees with inclusive edges.
public sealed record GeoBoundingBox : IEquatable<GeoBoundingBox>
- Inheritance
-
GeoBoundingBox
- Implements
- Inherited Members
Remarks
Mirrors BoundingBox but ships as an MCP-tool-facing value type. Conversion helpers live on GeoQuery.
Constructors
GeoBoundingBox(double, double, double, double)
A geographic bounding rectangle in WGS-84, expressed as decimal degrees with inclusive edges.
public GeoBoundingBox(double SouthLatitude, double WestLongitude, double NorthLatitude, double EastLongitude)
Parameters
SouthLatitudedoubleMinimum latitude; must be in
[-90, 90].WestLongitudedoubleMinimum longitude; must be in
[-180, 180].NorthLatitudedoubleMaximum latitude; must be in
[-90, 90]and>= SouthLatitude.EastLongitudedoubleMaximum longitude; must be in
[-180, 180]. May be less thanWestLongitudefor antimeridian-crossing boxes (not yet supported by tools).
Remarks
Mirrors BoundingBox but ships as an MCP-tool-facing value type. Conversion helpers live on GeoQuery.
Properties
EastLongitude
Maximum longitude; must be in [-180, 180]. May be less than WestLongitude for antimeridian-crossing boxes (not yet supported by tools).
public double EastLongitude { get; init; }
Property Value
NorthLatitude
Maximum latitude; must be in [-90, 90] and >= SouthLatitude.
public double NorthLatitude { get; init; }
Property Value
SouthLatitude
Minimum latitude; must be in [-90, 90].
public double SouthLatitude { get; init; }
Property Value
WestLongitude
Minimum longitude; must be in [-180, 180].
public double WestLongitude { get; init; }