Equidistant lines and HTML5 Location API.
Last active
February 15, 2017 13:47
-
-
Save pnavarrc/10a308446c42d5b8b066 to your computer and use it in GitHub Desktop.
Equidistant lines and Location API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download and Transform the 1:50m Country Shapefiles from Natural Earth | |
# http://www.naturalearthdata.com/downloads/110m-physical-vectors/ | |
URL = http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/physical/ne_110m_land.zip | |
# Download the zip file from the Natural Earth server | |
ne_110m_land.zip: | |
curl -LO $(URL) | |
# Unzip the shapefiles | |
ne_110m_land.shp: ne_110m_land.zip | |
unzip ne_110m_land.zip | |
touch ne_110m_land.shp | |
# Convert the shapefiles to GeoJSON | |
land.geojson: ne_110m_land.shp | |
ogr2ogr -f GeoJSON land.geojson ne_110m_land.shp | |
# Convert the GeoJSON file to TopoJSON | |
land.topojson: countries.json | |
topojson -p -o land.topojson land.geojson | |
# Remove source and temporary files | |
clean: | |
rm ne_110m_land* |
View raw
(Sorry about that, but we can’t show files that are this big right now.)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment