GeoBox class

Represents a bounding rectangle aligned with latitude and longitude.

Geographic area represented by this would be visualised as a rectangle when using a normal cylindrical projection (such as Mercator). The box has a maximum span of 360 degrees in longitude and 180 degrees in latitude direction. The box with equal values in longitude for the corners is considered as a span of 360 degrees. The box is considered empty if the latitude of the GeoBox.southWestCorner is larger than the the latitude of the GeoBox.northEastCorner.

Annotations

Constructors

GeoBox(GeoCoordinates southWestCorner, GeoCoordinates northEastCorner)
Creates a new instance.
const

Properties

hashCode → int
The hash code for this object.
no setter
northEastCorner GeoCoordinates
North east corner coordinates.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
southWestCorner GeoCoordinates
South west corner coordinates.
final

Methods

containsGeoBox(GeoBox geoBox) → bool
Determines whether the specified GeoBox is covered entirely by this GeoBox.
containsGeoCoordinates(GeoCoordinates geoCoordinates) → bool
Determines whether the specified GeoCoordinates is contained within this GeoBox.
envelope(GeoBox geoBox) GeoBox
Envelopes two GeoBox areas by returning the smallest GeoBox covering both this GeoBox and the specified GeoBox.
expandedBy(double southMeters, double westMeters, double northMeters, double eastMeters) GeoBox
Creates a GeoBox which is expanded by a fixed distance.
intersection(GeoBox geoBox) → List<GeoBox>
Computes the intersection with the passed GeoBox.
intersects(GeoBox geoBox) → bool
Determines whether this GeoBox intersects with the passed GeoBox.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.

Static Methods

containingGeoCoordinates(List<GeoCoordinates> geoCoordinates) GeoBox?
Creates a GeoBox which encompases all coordinates from the list.
envelopeGeoBoxes(List<GeoBox> geoBoxes) GeoBox?
Envelopes the list of GeoBox areas by returning the smallest GeoBox covering all specified GeoBox objects.
intersectionGeoBoxes(List<GeoBox> geoBoxes) → List<GeoBox>
Computes intersection of list of GeoBox instances.