Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://odileeds.github.io/CSV2GeoJSON/
Convert CSV files into GeoJSON files with points or polygons for UK geographies
https://odileeds.github.io/CSV2GeoJSON/
Last synced: 3 months ago
JSON representation
Convert CSV files into GeoJSON files with points or polygons for UK geographies
- Host: GitHub
- URL: https://odileeds.github.io/CSV2GeoJSON/
- Owner: open-innovations
- Created: 2018-07-25T16:24:14.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-05-03T12:43:51.000Z (over 1 year ago)
- Last Synced: 2024-07-26T04:34:03.108Z (4 months ago)
- Language: JavaScript
- Homepage: https://odileeds.github.io/CSV2GeoJSON
- Size: 258 KB
- Stars: 15
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- amazing-insight-and-delivery - csv2geojson
README
# CSV2GeoJSON
Convert CSV files containing columns with defined geographies into GeoJSON files. Detecting geography requires us to spot column headings in your CSV file. That means your CSV will need one or two of the following columns:
* latitude/longitude (WGS84) - two columns titled `Latitude`/`Longitude`, `lat`/`lon` or `geox`/`geoy`.
* OS Grid References - two columns titled `Easting`/`Northing`.
* LSOA - a column titled `LSOA11CD`, `LSOA01CD` or `LSOA` (interpreted as 2011 codes) and that column will need to contain valid ONS LSOA codes e.g. E01012334.
* MSOA - a column titled `MSOA11CD` or `MSOA` (interpreted as 2011 codes) and that column will need to contain valid ONS MSOA codes e.g. E02002273.
* Ward - a column titled `WD20CD`, `WD19CD` or `Ward` (interpreted as 2020 wards) and that column will need to contain valid ONS 2020 Ward codes e.g. E05000026.
* Constituency - a column titled `PCON17CD` or Constituency (interpreted as 2017 Westminster Constituencies) and that column will need to contain valid ONS 2017 Constituency codes e.g. E14000530.
* Local Authority Districts - a column titled `LAD20CD`, `LAD19CD` or Local Authority (interpreted as 2020 Local Authority Boundaries) and that column will need to contain valid ONS 2020 Local Authority codes e.g. E06000001.WGS84 and OSGB86 will result in a GeoJSON file containing points. LSOA-based data will add polygons derived from the [ONS Lower Layer Super Output Areas (December 2011) Boundaries EW BGC](https://geoportal.statistics.gov.uk/datasets/lower-layer-super-output-areas-december-2011-boundaries-ew-bgc) (OGL). MSOA-based data will add polygons derived from the [ONS Middle Layer Super Output Areas (December 2011) Boundaries EW BGC](https://geoportal.statistics.gov.uk/datasets/middle-layer-super-output-areas-december-2011-boundaries-ew-bgc) (OGL). Ward-based data will add polygons derived from the [ONS Wards (December 2020) Boundaries UK BGC V2](https://geoportal.statistics.gov.uk/datasets/wards-december-2020-uk-bgc-v2) and [ONS Wards (December 2019) Boundaries EW BGC](https://geoportal.statistics.gov.uk/datasets/wards-december-2019-boundaries-ew-bgc) (OGL). Constituency-based data will add polygons derived from the [ONS Westminster Parliamentary Constituencies (December 2017) UK BGC](https://geoportal.statistics.gov.uk/datasets/westminster-parliamentary-constituencies-december-2017-uk-bgc) (OGL). Local-Authority-based data will add polygons derived from the [ONS Local Authority Districts (2020) Boundaries UK BGC](https://geoportal.statistics.gov.uk/datasets/local-authority-districts-december-2020-uk-bgc) and [ONS Local Authority Districts (April 2019) Boundaries UK BGC](https://geoportal.statistics.gov.uk/datasets/local-authority-districts-april-2019-boundaries-uk-bgc) (OGL). Other columns in the CSV file will be added as properties to each feature in the GeoJSON.