Universal coordinate system conversion for CSV and tabular data
Project description
coordshift
⚠ Alpha software — use with caution
coordshift is in early development (pre-v1.0). APIs and output formats may change without notice. Always verify converted coordinates against a trusted independent source before using them in any survey, legal, safety-critical, or production workflow. The authors provide no warranty and accept no liability for errors in coordinate conversion results. Use at your own risk.
Universal coordinate system conversion for CSV and tabular data — built for GIS analysts, surveyors, and drone mapping workflows.
What it does
coordshift reprojects coordinate columns in CSV files from one CRS to another, using any system supported by PROJ. It ships as both a command-line tool and a Python library, plus a standalone browser-based converter (coordshift.html) that works entirely offline.
CLI
coordshift convert input.csv --from EPSG:4326 --to EPSG:2965 --x lon --y lat
Python
from coordshift import convert
df = convert("input.csv", from_crs="EPSG:4326", to_crs="EPSG:2965", x="lon", y="lat")
Browser
Open coordshift.html in any modern browser — no install required.
Why this exists
Tools like cs2cs, ogr2ogr, and raw pyproj are powerful but assume you already speak PROJ. coordshift targets practitioners who need fast, repeatable conversions without wrestling with syntax.
What's included
- Convert any EPSG/PROJ CRS to any other
- Auto-detect common column names (lat, lon, x, y, easting, northing, etc.)
- Source and target CRS via EPSG code, PROJ string, or friendly preset name
- Preserve all columns in output — original X/Y columns are always kept
- Converted coordinates written to new columns placed immediately after the originals
- Customisable output column suffix (default
_converted, e.g.lon_converted,lat_converted) - CLI for one-off conversions
- Python API for scripting and pipelines
- Browser-based converter (
coordshift.html) with map preview — works offline
Planned
- Vertical coordinate support (ellipsoidal ↔ orthometric, GEOID)
- Batch conversion across multiple files
- Output to GeoJSON or Shapefile
Installation
Install from source until the first PyPI release:
git clone https://github.com/FultonGeo/coordshift.git
cd coordshift
pip install -e .
Or, once published:
pip install coordshift
Usage
CLI
Basic conversion (original lon/lat columns are preserved; converted values go into lon_converted/lat_converted placed right after them):
coordshift convert input.csv --from EPSG:4326 --to EPSG:2965 --x lon --y lat
With output path:
coordshift convert input.csv --from EPSG:4326 --to EPSG:2965 --x lon --y lat --out output.csv
Custom column name suffix (produces lon_proj, lat_proj instead of the default lon_converted, lat_converted):
coordshift convert input.csv --from EPSG:4326 --to EPSG:2965 --suffix _proj
PROJ strings (use a single line on Windows, or wrap as your shell allows):
coordshift convert input.csv \
--from "+proj=longlat +datum=WGS84" \
--to "+proj=tmerc +lat_0=37.5 +lon_0=-85.66666667 +k=0.999966667 +x_0=100000 +y_0=250000 +ellps=GRS80" \
--x longitude --y latitude
List presets and search CRS:
coordshift list-crs
coordshift search "indiana east"
Python API
from coordshift import convert, search_crs
df = convert(
"field_points.csv",
from_crs="EPSG:4326",
to_crs="EPSG:2965",
x="lon",
y="lat",
)
# df now has lon, lon_converted, lat, lat_converted (plus any other original columns)
df.to_csv("field_points_converted.csv", index=False)
results = search_crs("indiana east")
See docs/examples.md for more detailed examples.
Browser app
Open coordshift.html in any modern browser (Chrome, Firefox, Edge, Safari). No server or internet connection required after the page loads. Features include:
- Upload a CSV and pick coordinate columns
- Search and select source/target CRS from a built-in catalog of State Plane zones, UTM, and common geographic systems
- Preview converted points on an interactive map
- Download the converted CSV
Project structure
coordshift/
├── coordshift/ # Python package
│ ├── __init__.py # Public API
│ ├── core.py # Conversion (pyproj)
│ ├── cli.py # CLI (Click)
│ ├── io.py # CSV I/O, column detection
│ ├── crs.py # CRS resolution
│ └── presets.py # Friendly name → EPSG
├── tests/
│ ├── test_core.py
│ ├── test_cli.py
│ ├── test_io.py
│ └── fixtures/
├── docs/
│ └── examples.md
├── scripts/ # Developer tooling (regenerate HTML catalog)
├── coordshift.html # Standalone browser-based converter
├── pyproject.toml
├── README.md
└── LICENSE
Development setup
git clone https://github.com/FultonGeo/coordshift.git
cd coordshift
python -m venv venv
Activate the virtual environment:
- Windows (PowerShell):
.\venv\Scripts\Activate.ps1 - macOS / Linux:
source venv/bin/activate
Then:
pip install -e ".[dev]"
pytest
Run the linter:
ruff check coordshift/
Dependencies
Contributing
Contributions welcome. Open an issue before large changes so direction stays aligned.
- Fork the repo
- Create a branch:
git checkout -b feature/my-feature - Commit and push
- Open a pull request
Disclaimer
coordshift is alpha software provided as-is, without warranty of any kind, express or implied. Coordinate conversion results depend on the accuracy of the underlying PROJ library, the correctness of the CRS definitions used, and the quality of the input data. Always double-check converted coordinates against an authoritative source before using them in any survey, engineering, legal, or safety-critical context. The authors and contributors are not responsible for errors, losses, or damages arising from the use of this software.
License
MIT. See LICENSE.
Author
Nick Fulton — geospatial work, FAA Part 107, drone and survey experience.
Repository: FultonGeo/coordshift.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coordshift-0.1.0.tar.gz.
File metadata
- Download URL: coordshift-0.1.0.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4fd1fa5dbf0e02ce49cc47d4a2452d547134830b291ca4be32f376792939d7f
|
|
| MD5 |
db683f2c55c5f6d31576d0fa0c5df0b4
|
|
| BLAKE2b-256 |
b1ad03708811130f1cdcf82cb6cecba4899308592569c58f6fde259ffd2e3107
|
Provenance
The following attestation bundles were made for coordshift-0.1.0.tar.gz:
Publisher:
publish.yml on FultonGeo/coordshift
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coordshift-0.1.0.tar.gz -
Subject digest:
f4fd1fa5dbf0e02ce49cc47d4a2452d547134830b291ca4be32f376792939d7f - Sigstore transparency entry: 1191346560
- Sigstore integration time:
-
Permalink:
FultonGeo/coordshift@8ee15678e0e9b45c1afa6df152645f3842b6ac0d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/FultonGeo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8ee15678e0e9b45c1afa6df152645f3842b6ac0d -
Trigger Event:
push
-
Statement type:
File details
Details for the file coordshift-0.1.0-py3-none-any.whl.
File metadata
- Download URL: coordshift-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
576931684cab18a2af42a3221f850573b34a95cce448c4975e6858d6c3e2c8bb
|
|
| MD5 |
51c728f97926e302022a23e82764011c
|
|
| BLAKE2b-256 |
7ae294a749d24209df7e3ed3f387c6bcd2985d3c8e1bfbe5746c295d7a637946
|
Provenance
The following attestation bundles were made for coordshift-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on FultonGeo/coordshift
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coordshift-0.1.0-py3-none-any.whl -
Subject digest:
576931684cab18a2af42a3221f850573b34a95cce448c4975e6858d6c3e2c8bb - Sigstore transparency entry: 1191346562
- Sigstore integration time:
-
Permalink:
FultonGeo/coordshift@8ee15678e0e9b45c1afa6df152645f3842b6ac0d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/FultonGeo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8ee15678e0e9b45c1afa6df152645f3842b6ac0d -
Trigger Event:
push
-
Statement type: