Skip to content

Packs / geospatial-public

csv-to-geojson

convert a CSV of locations into a valid GeoJSON FeatureCollection ready for any web map

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-geospatial-public

Install

logicpacks pack use geospatial-public/csv-to-geojson
get_pack geospatial-public/csv-to-geojson

The 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

  1. Make sure lat/lon are decimal degrees WGS84.
  2. Run csv2geojson.py.
  3. 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)

  1. python-stdlib: code/csv2geojson.py (no install).
  2. gdal-ogr (free): GDAL/OGR for format conversion and reprojection at scale (brew install gdal)