GeoBounds<T extends GeoPoint> class

An immutable geographic bounds with min and max points for limits.

Geographic bounds can be represented as Bounds

Inheritance
Implemented types

Constructors

GeoBounds(Bounds<T> source)
Create geographic bounds by copying min and max points from source.
GeoBounds.make(Iterable<Iterable<num>> values, PointFactory<T> pointFactory)
Geographic bounds from values with two points (both a list of nums).
factory
GeoBounds.of({required T min, required T max})
Create geographic bounds with required min and max points.
const
GeoBounds.parse(String text, PointFactory<T> pointFactory, {ParseCoordsList? parser})
Geographic bounds parsed from text with two points.
factory

Properties

bounds Bounds<T>
The bounds for this object (could be calculated if not explicitely set).
no setterinherited
boundsExplicit Bounds<T>?
The explicit bounds for this object when available.
no setterinherited
coordinateDimension int
The number of coordinate values (2, 3 or 4).
no setterinherited
corners2D Iterable<T>
Returns all distinct (in 2D) corners for this axis aligned bounding box.
no setteroverride
east double
The east coordinate as geographic longitude.
no setter
hashCode int
The hash code for this object.
no setteroverride
is3D bool
True for 3D positions (with z or elevation coordinate).
no setterinherited
isGeographic bool
True for geographic coordinates (with longitude and latitude).
no setteroverride
isMeasured bool
True if a measure value is available (or the m coordinate for a position).
no setterinherited
max → T
The maximum position (or east-north) of this bounding box.
no setterinherited
maxElev double?
The maximum elevation (or altitude) coordinate in meters optionally.
no setter
maxM double?
The maximum m coordinate optionally. Returns null if not available.
no setteroverride
maxX double
The maximum x (or east) coordinate.
no setteroverride
maxY double
The maximum y (or north) coordinate.
no setteroverride
maxZ double?
The maximum z coordinate optionally. Returns null if not available.
no setteroverride
min → T
The minimum position (or west-south) of this bounding box.
no setterinherited
minElev double?
The minimum elevation (or altitude) coordinate in meters optionally.
no setter
minM double?
The minimum m coordinate optionally. Returns null if not available.
no setteroverride
minX double
The minimum x (or west) coordinate.
no setteroverride
minY double
The minimum y (or south) coordinate.
no setteroverride
minZ double?
The minimum z coordinate optionally. Returns null if not available.
no setteroverride
north double
The north coordinate as geographic latitude.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
south double
The south coordinate as geographic latitude.
no setter
spatialDimension int
The number of spatial coordinate values (2 for 2D or 3 for 3D).
no setterinherited
type Coords
The coordinate type.
no setterinherited
west double
The west coordinate as geographic longitude.
no setter

Methods

copyTo<R extends Box>(CreateBox<R> factory) → R
Copies this box to a new box created by the factory.
inherited
equals2D(Box other, {num? toleranceHoriz}) bool
True if this box equals with other by testing 2D coordinates only.
inherited
equals3D(Box other, {num? toleranceHoriz, num? toleranceVert}) bool
True if this box equals with other by testing 3D coordinates only.
inherited
intersects(Box other) bool
Returns true if this bounding box intesects with other box.
inherited
intersects2D(Box other) bool
Returns true if this bounding box intersects with other box in 2D.
inherited
intersectsPoint(Position point) bool
Returns true if this bounding box intesects with point.
inherited
intersectsPoint2D(Position point) bool
Returns true if this bounding box intesects with point in 2D.
inherited
newFrom(Iterable<num> coords, {int? offset, int? length}) GeoBounds<T>
Creates a new Geometry instance of a type compatible with this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
project<R extends Point<num>>(Projection projection, {required CreatePosition<R> to}) Bounds<R>
Returns a new object with all points projected using projection.
inherited
toString() String
A string representation of this object.
inherited
transform(TransformPosition transform) GeoBounds<T>
Returns new bounds transformed from this bounds using transform.
override
valuesAsString({String delimiter = ',', int? decimals}) String
Returns coordinate values as a string separated by delimiter.
inherited
writeTo(CoordinateContent output) → void
Writes this bounds object to output.
inherited
writeValues(StringSink buffer, {String delimiter = ',', int? decimals}) → void
Writes coordinate values to buffer separated by delimiter.
inherited

Operators

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

Static Methods

bbox({required double minLon, required double minLat, double? minElev, required double maxLon, required double maxLat, double? maxElev}) GeoBounds<GeoPoint2>
With minimum and maximum pairs of longitude and latitude (+optional elev).
bboxLatLon(double minLat, double minLon, double maxLat, double maxLon) GeoBounds<GeoPoint2>
With minimum and maximum pairs of latitude and longitude.
bboxLonLat(double minLon, double minLat, double maxLon, double maxLat) GeoBounds<GeoPoint2>
With minimum and maximum pairs of longitude and latitude.
bboxLonLatElev(double minLon, double minLat, double minElev, double maxLon, double maxLat, double maxElev) GeoBounds<GeoPoint3>
With minimum and maximum sets of longitude, latitude and elevation.
from(Iterable<num> coords, {int? offset, int? length}) GeoBounds<GeoPoint>
With coords containing min and max sets of lon, lat and optional elev.
fromCoords<R extends GeoPoint>(Iterable<num> coords, {required PointFactory<R> pointFactory, int? offset, int? length}) GeoBounds<R>
Create geographic bounds from coords using pointFactory.
override
world() GeoBounds<GeoPoint2>
World bounds (longitude: -180.0 to 180.0, latitude: -90.0 to 90.0).