GeoBox class - core library - Dart API
GeoBox
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
GeoBoxis covered entirely by thisGeoBox. -
containsGeoCoordinates(
GeoCoordinates geoCoordinates) → bool -
Determines whether the specified GeoCoordinates is contained within this
GeoBox. -
envelope(
GeoBox geoBox) → GeoBox -
Envelopes two
GeoBoxareas by returning the smallestGeoBoxcovering both this GeoBox and the specifiedGeoBox. -
expandedBy(
double southMeters, double westMeters, double northMeters, double eastMeters) → GeoBox -
Creates a
GeoBoxwhich 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
GeoBoxintersects with the passedGeoBox. -
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
GeoBoxwhich encompases all coordinates from the list. -
envelopeGeoBoxes(
List< GeoBox> geoBoxes) → GeoBox? -
Envelopes the list of
GeoBoxareas by returning the smallestGeoBoxcovering all specifiedGeoBoxobjects. -
intersectionGeoBoxes(
List< GeoBox> geoBoxes) → List<GeoBox> - Computes intersection of list of GeoBox instances.