georust / geozero

Zero-Copy reading and writing of geospatial data.
Apache License 2.0
322 stars 30 forks source link

Introduce global dimension constants #159

Open nyurik opened 11 months ago

nyurik commented 11 months ago

IMO, the CoordDimensions has a somewhat weird usage pattern: it uses constant functions instead of true consts. Perhaps we should introduce global DIM_XY, DIM_XYZ, etc, same as we currently have in the unit tests, but exposed globally, assuming everyone is OK with the naming. Should we do this?