Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leifgehrmann/csv-reproject
A command line tool to reproject a CSV from one CRS to another
https://github.com/leifgehrmann/csv-reproject
csv projection python
Last synced: 4 days ago
JSON representation
A command line tool to reproject a CSV from one CRS to another
- Host: GitHub
- URL: https://github.com/leifgehrmann/csv-reproject
- Owner: leifgehrmann
- License: mit
- Created: 2019-04-29T20:28:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-30T21:50:39.000Z (almost 6 years ago)
- Last Synced: 2024-12-26T00:41:44.997Z (about 2 months ago)
- Topics: csv, projection, python
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# csv-reproject
A command line tool to reproject a CSV from one Coordinate Reference System to
another.## Example
Imagine the following CSV file with some annoying columns:
```
Id,Name,Easting/Northing
10,Bob," 325311,673501"
20,Alice," 259562,664497"
30,Carol," 266645,845032"
```To re-project these coordinates, one can run the following command:
```
csv-reproject \
--from-proj="epsg:27700" \
--from-x-column="Easting/Northing" \
--from-x-format=" (-?[0-9.]+),.*" \
--from-y-column="Easting/Northing" \
--from-y-format=".*,(-?[0-9.]+)" \
--to-proj="EPSG:4326" \
--to-x-header=Longitude \
--to-y-header=Latitude \
myData.csv
```This will modify the file to have two new columns called `Longitude` and
`Latitude` which can now easily be imported into software like JOSM!