Source:
ometeotl_foundations/spatial/ is the first-order spatial specialization of ometeotl_core. It provides concrete geometry types, coordinate value types, structural protocols, and generic containers — all in pure Python with no library dependency. A Shapely-backed adapter (ometeotl_adapters/spatial_shapely/) will implement the same protocols for production use.
ometeotl_core — abstract model (Space, SpaceRelationGraph, …)
ometeotl_foundations — first-order specialization (this layer)
ometeotl_adapters — library-backed implementations (Shapely, NetworkX, …)
| File | Exports |
|---|---|
coordinates.py | Coordinate2D, Coordinate3D, GeoCoordinate, GridCell |
coordinate_system.py | CoordinateKind, CoordinateSystem, CARTESIAN_2D, CARTESIAN_3D, WGS84, GRID |
geometry.py | Geometry (Protocol) |
bounding_box.py | BoundingBox |
spatial_index.py | SpatialIndex (Protocol) |
spatial_backend.py | SpatialBackend (Protocol) |
geometric_space.py | GeometricSpace[G] |
spatial_extent.py | SpatialExtent[G] |
spatial_map.py | SpatialMap[G] |
relation_derivation.py | derive_space_relations() |

A Python library to build complex multi-agent simulations, wargames, and AI-driven strategies
Class reference for ometeotl_foundations/spatial — pure-Python spatial specialization layer