Point class

A point geometry with a position.

Implemented types

Constructors

Point(Position position)
A point geometry with position.
const
Point.build(Iterable<double> position, {Coords? type})
Builds a point geometry from a position.
factory
Point.decode(Uint8List bytes, {BinaryFormat<SimpleGeometryContent> format = WKB.geometry, CoordRefSys? crs, Map<String, dynamic>? options})
Decodes a point geometry from bytes conforming to format.
factory
Point.decodeHex(String bytesHex, {BinaryFormat<SimpleGeometryContent> format = WKB.geometry, CoordRefSys? crs, Map<String, dynamic>? options})
Decodes a point geometry from bytesHex (as a hex string) conforming to format.
factory
Point.parse(String text, {TextReaderFormat<SimpleGeometryContent> format = GeoJSON.geometry, CoordRefSys? crs, Map<String, dynamic>? options})
Parses a point geometry from text conforming to format.
factory
Point.parseCoords(String text, {Pattern delimiter = ',', Coords? type, bool swapXY = false, bool singlePrecision = false})
Parses a point geometry from text with coordinate values separated by delimiter.
factory

Properties

bounds Box
The bounding box for this point, min and max with the same point position.
no setteroverride
coordType Coords
A value of Coords representing the coordinate type of position data contained directly or within child objects.
no setteroverride
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
position Position
The position of this point geometry.
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.
override
calculateBounds({PositionScheme scheme = Position.scheme}) Box
The bounding box for this point, min and max with the same point position.
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.
override
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?
The bounding box for this point, min and max with the same point position.
override
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
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}) Point
Returns a geometry of the same subtype as this with certain data members populated.
override
project(Projection projection) Point
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<SimpleGeometryContent> format = WKB.geometry, Endian? endian, CoordRefSys? crs, Map<String, dynamic>? options}) Uint8List
The binary representation of this geometry object, with format applied.
override
toBytesHex({BinaryFormat<SimpleGeometryContent> 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.
override
toString() String
A string representation of this object.
override
toText({TextWriterFormat<SimpleGeometryContent> format = GeoJSON.geometry, int? decimals, CoordRefSys? crs, Map<String, dynamic>? options}) String
The string representation of this geometry object, with format applied.
override
unpopulated({int traverse = 0, bool onBounds = true}) Point
Returns a geometry of the same subtype as this with certain data members unpopulated (or cleared).
override
writeTo(SimpleGeometryContent writer, {String? name}) → void
Writes this geometry object to writer.
override

Operators

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