GeometryCollection<E extends Geometry> class
A geometry collection with geometries.
- Inheritance
-
- Object
- Positionable
- Bounded
- Geometry
- GeometryCollection
Constructors
-
GeometryCollection(List<
E> geometries, {Coords? type, Box? bounds}) -
A geometry collection with
geometries
and optionalbounds
. - GeometryCollection.build(WriteGeometries geometries, {Coords? type, int? count, Box? bounds})
-
Builds a geometry collection from the content provided by
geometries
.factory
Properties
- bounds → Box?
-
An optional bounding box explicitely set (or otherwise directly available)
for this object.
no setterinherited
- coordType → Coords
-
A value of Coords representing the coordinate type of position data
contained directly or within child objects.
no setteroverride
-
geometries
→ List<
E> -
All geometry items in this geometry collection.
no setter
- geomType → Geom
-
The geometry type.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setteroverride
- isEmptyByGeometry → bool
-
Returns true if this geometry is considered empty.
no setteroverride
- length → int
-
The number of geometries in this geometry collection.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
area2D(
) → double -
Returns the area of this geometry calculated in a cartesian 2D plane.
override
-
boundsAligned2D(
{Aligned align = Aligned.center, PositionScheme scheme = Position.scheme}) → Position? -
Returns an aligned 2D position relative to a bounding box accessed by
getBounds.
inherited
-
calculateBounds(
{PositionScheme scheme = Position.scheme}) → Box? -
Calculate a bounding box for this object.
override
-
centroid2D(
{PositionScheme scheme = Position.scheme}) → Position? -
Returns the centroid of this geometry calculated in a cartesian 2D plane.
override
-
dimensionality2D(
) → Dimensionality -
Returns the true dimensionality of this geometry in 2D.
inherited
-
equals2D(
covariant Geometry other, {double toleranceHoriz = defaultEpsilon}) → bool -
True if this and
other
equals by testing 2D coordinate values of all position data (that must be in same order in both objects) contained directly or by child objects.override -
equals3D(
covariant Geometry other, {double toleranceHoriz = defaultEpsilon, double toleranceVert = defaultEpsilon}) → bool -
True if this and
other
equals by testing 3D coordinate values of all position data (that must be in same order in both objects) contained directly or by child objects.override -
equalsCoords(
covariant Geometry other) → bool -
True if this and
other
contain exactly same coordinate values (or both are empty) in the same order and with the same coordinate type.override -
getBounds(
{PositionScheme scheme = Position.scheme}) → Box? -
Returns the current bounds if it's populated and conforms to
scheme
, or otherwise returns one calculated by calculateBounds.inherited -
length2D(
) → double -
Returns the length of this geometry calculated in a cartesian 2D plane.
override
-
length3D(
) → double -
Returns the length of this geometry calculated in a cartesian 3D space.
override
-
map(
E toGeometry(E geometry)) → GeometryCollection< E> -
Returns a new geometry collection with all geometries mapped using
toGeometry
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
populated(
{int traverse = 0, bool onBounds = true, PositionScheme scheme = Position.scheme}) → GeometryCollection< Geometry> -
Returns a geometry of the same subtype as this with certain data members
populated.
override
-
project(
Projection projection) → GeometryCollection< E> -
Returns an object of the same subtype as this with all position data
projected using
projection
and non-positional properties left intact.override -
toBytes(
{BinaryFormat< GeometryContent> format = WKB.geometry, Endian? endian, CoordRefSys? crs, Map<String, dynamic> ? options}) → Uint8List -
The binary representation of this geometry object, with
format
applied.inherited -
toBytesHex(
{BinaryFormat< GeometryContent> format = WKB.geometry, Endian? endian, CoordRefSys? crs, Map<String, dynamic> ? options}) → String -
The binary representation as a hex string of this geometry object, with
format
applied.inherited -
toString(
) → String -
The string representation of this geometry object as specified by
GeoJSON.
inherited
-
toText(
{TextWriterFormat< GeometryContent> format = GeoJSON.geometry, int? decimals, CoordRefSys? crs, Map<String, dynamic> ? options}) → String -
The string representation of this geometry object, with
format
applied.inherited -
unpopulated(
{int traverse = 0, bool onBounds = true}) → GeometryCollection< Geometry> -
Returns a geometry of the same subtype as this with certain data members
unpopulated (or cleared).
override
-
writeTo(
GeometryContent writer, {String? name}) → void -
Writes this geometry object to
writer
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator [](
int index) → E -
The geometry at the given
index
in this geometry collection.
Static Methods
-
decode<
T extends Geometry> (Uint8List bytes, {BinaryFormat< GeometryContent> format = WKB.geometry, CoordRefSys? crs, Map<String, dynamic> ? options}) → GeometryCollection<T> -
Decodes a geometry collection with elements of
T
frombytes
conforming toformat
. -
decodeHex<
T extends Geometry> (String bytesHex, {BinaryFormat< GeometryContent> format = WKB.geometry, CoordRefSys? crs, Map<String, dynamic> ? options}) → GeometryCollection<T> -
Decodes a geometry collection with elements of
T
frombytesHex
(as a hex string) conforming toformat
. -
parse<
T extends Geometry> (String text, {TextReaderFormat< GeometryContent> format = GeoJSON.geometry, CoordRefSys? crs, Map<String, dynamic> ? options}) → GeometryCollection<T> -
Parses a geometry collection with elements of
T
fromtext
conforming toformat
.