GeoGeometry class sealed

Immutable geometry. == is exact structural equality, not topology.

Implementers

Constructors

GeoGeometry.fromGeoJson(Object? json, {GeoParseOptions options = const GeoParseOptions()})
GeoJSON geometry, feature, or feature collection.
factory
GeoGeometry.fromWkb(Uint8List bytes, {int? srid, GeoParseOptions options = const GeoParseOptions()})
WKB or EWKB parser. An explicit srid overrides a missing EWKB SRID.
factory
GeoGeometry.fromWkt(String wkt, {int srid = 0, GeoParseOptions options = const GeoParseOptions()})
WKT parser. srid is metadata unless the text itself is EWKT.
factory

Properties

coordinates → Iterable<GeoCoordinate>
Every position, in part order. Polygon rings include the repeated close.
no setter
dimension → GeoDimension
Axes stored on every position.
final
envelope → GeoEnvelope?
Bounds of every position, or null when isEmpty is true.
no setter
hashCode → int
The hash code for this object.
no setteroverride
isEmpty → bool
Whether the geometry has no positions.
no setter
isValid → bool
Structural check described in GEOMETRY.md.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
srid → int
Spatial reference identifier. 0 means the caller did not set one.
final
type → GeoGeometryType
OGC kind. A GeoLinearRing reports GeoGeometryType.lineString.
no setter

Methods

equalsExactly(GeoGeometry other) → bool
Exact structural equality, including SRID, dimension, and part order.
normalize() → GeoGeometry
Counter-clockwise shells and clockwise holes. Part order is kept.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toEwkb({Endian endian = Endian.little}) → Uint8List
PostGIS EWKB with the Z, M, and SRID flags.
toEwkt() → String
EWKT, including SRID=0; when the SRID is zero.
toGeoJson() → Map<String, Object?>
RFC 7946 GeoJSON. M is rejected. No crs member is written.
toString() → String
A string representation of this object.
inherited
toWkb({Endian endian = Endian.little}) → Uint8List
ISO WKB. An empty point is the 5-byte header documented in GEOMETRY.md.
toWkt({bool extended = false}) → String
WKT. extended prefixes SRID=n; when srid is not zero.
validate() → GeoValidation
Structural check. This does not repair the geometry.
withSrid(int srid) → GeoGeometry
Exact copy with a different SRID. Coordinates do not change.

Operators

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