Skip to content

Instantly share code, notes, and snippets.

@ThomasG77
Created October 21, 2017 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomasG77/f5e73e2d2b6fe50b2806398780a673d1 to your computer and use it in GitHub Desktop.
Save ThomasG77/f5e73e2d2b6fe50b2806398780a673d1 to your computer and use it in GitHub Desktop.
# Convert on the fly Natural Earth data SHP (uncompressed) from the official repository (raw url)
ogr2ogr -f GeoJSON -t_srs EPSG:4326 -lco COORDINATE_PRECISION=6 ne_110m_admin_0_countries.geojson /vsicurl/https://github.com/nvkelso/natural-earth-vector/raw/master/110m_cultural/ne_110m_admin_0_countries.shp
# Convert on the fly Natural Earth data zip from website url
ogr2ogr -f GeoJSON -t_srs EPSG:4326 -lco COORDINATE_PRECISION=6 ne_110m_admin_0_countries.geojson /vsizip/vsicurl/http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment