navibyte / geospatial

Geospatial data structures, tools and utilities for Dart and Flutter.
Other
51 stars 5 forks source link

Allow a position stored as "Position" in Point, and a bounding box as "Box" in Geometry classes #192

Closed navispatial closed 9 months ago

navispatial commented 11 months ago

Point geometry now stores it's position as PositionCoords object (that inherits from Position). Refactor Point so that it can store it's position also as super type Position. The getter position is refactored as Position get position (that always returns a stored position). Another getter would be added PositionCoords get coords that returns a stored position if it's PositionCoords, otherwise it would be created on the fly.

All geometry classes stores and returns bounding boxes as BoxCoords objects (inherits from Box). Refactor geometry classes to allow storing it's bounds also as as super type Box. Some other refactoring needed too.

navispatial commented 9 months ago

Implemented in geobase 0.6.0