# csv-to-geojson

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

- **Space:** geospatial-public (https://github.com/Tech-Realm/space-geospatial-public/tree/main/csv-to-geojson)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** python-stdlib, gdal-ogr; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use geospatial-public/csv-to-geojson` or MCP `get_pack geospatial-public/csv-to-geojson`
- **Files:** CHANGELOG.md, code/csv2geojson.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/shops.csv, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (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)



---

Canonical URL: https://logicpacks.io/packs/geospatial-public/csv-to-geojson

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
