This example shows how to use the Mercator projection and the graticule generator.
Last active
September 26, 2015 03:03
Mercator Projection
This file contains hidden or 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* |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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