You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e700bd2
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(datasets): swap hand-rolled helpers for shapely + python-slugify (#46)
* refactor(datasets): use shapely + python-slugify instead of hand-rolled helpers
- extractors.py: replace custom GeoJSON parsing (_features, _compute_bbox,
_iter_coords, _walk) with shapely.geometry.shape().bounds. Drops ~50 LOC
of coordinate-walking and edge-case handling.
- service.py: delegate slugify() to python-slugify so accented characters
transliterate correctly (e.g. "Café" -> "cafe"). The custom regex only
stripped non-ASCII.
All 54 datasets tests pass.
* chore(datasets): ruff format extractors.py
0 commit comments