Skip to content

Instantly share code, notes, and snippets.

@simon-ocsi
simon-ocsi / geojson2svg.py
Last active October 9, 2025 14:57
Convert a GeoJSON file (in EPSG:4326 / WGS84) into an SVG outline.
"""
geojson_to_svg.py
-----------------
Convert a GeoJSON file (in EPSG:4326 / WGS84) into an SVG outline.
- Preserves aspect ratio (no warping)
- Supports Mercator or Equirectangular projection
- Auto-names output: `input.geojson` → `input.svg`
License: MIT