Packs / geospatial-public
csv-to-geojson
convert a CSV of locations into a valid GeoJSON FeatureCollection ready for any web map
Install
logicpacks pack use geospatial-public/csv-to-geojsonget_pack geospatial-public/csv-to-geojsonThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
python-stdlibgdal-ogr - Checks: 1 in
outcome/checks.yaml - Code:
csv2geojson.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
Convert a CSV of locations into a valid GeoJSON FeatureCollection ready for any web map.
Steps
- Make sure lat/lon are decimal degrees WGS84.
- Run csv2geojson.py.
- Drop the file into geojson.io or a Leaflet/MapLibre map to eyeball it.
Edge cases
- Addresses without coordinates need geocoding first (maps space).
- Degrees-minutes-seconds strings must be converted first.
Don'ts
- Don't publish customer home locations; aggregate or jitter first.
Routes (free first)
python-stdlib:code/csv2geojson.py(no install).gdal-ogr(free): GDAL/OGR for format conversion and reprojection at scale (brew install gdal)