Geometry class abstract

A base interface for geometry classes.

Inheritance
Implementers

Constructors

Geometry()
Default const constructor to allow extending this abstract class.
const
Geometry.empty(Geom type)
Creates an empty (non-existent) geometry.
factory

Properties

bounds Bounds<Point<num>>?
The bounds for this object (could be calculated if not explicitely set).
no setterinherited
boundsExplicit Bounds<Point<num>>?
The explicit bounds for this object when available.
no setterinherited
dimension int
The topological dimension of this geometry.
no setter
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
True if this geometry is considered empty without data or coordinates.
no setter
isNotEmpty bool
True if this geometry is NOT considered empty without data or coordinates.
no setter
onePoint Point<num>?
Returns one of points contained by this geometry if it's not empty.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeGeom Geom
The type of this geometry.
no setter

Methods

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}) Geometry
Returns a new geometry with all points projected using projection.
override
toString() String
A string representation of this object.
inherited
toStringAs({TextWriterFormat<GeometryContent> format = DefaultFormat.geometry, int? decimals}) String
A string representation of this geometry, with format applied.
transform(TransformPosition transform) Geometry
Returns a new geometry with all points transformed using transform.
override
writeTo(GeometryContent writer) → void
Writes this geometry object to writer.

Operators

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