topojson boundary files (experimental)
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
flood-alert-areas
flood-warning-areas
local-authority-district-Dec-2012
output-areas
river-catchments
westminster-constituencies
.gitignore
README.md

README.md

This repo is for me to experiment with support for GeoJSON and TopoJSON in GitHub using boundary files.

What I Done

  1. install gdal with $ brew install gdal
  2. install mapshaper with $ npm install -g mapshaper
  3. install topojson with $ npm install -g topojson
  4. map the downloaded Shape files to using lat/long coordinates with $ ogr2ogr -t_srs WGS84 <output> <input>
  5. split the Shape file into separate Shape files based on some property with $ mapshaper --encoding iso885911 --split <property> -o <outputdir> <input>
  6. map the Shape files to topojson using $ topojson -q <quality> --id-property <id-property> -p -o <output> <input>