Created
October 21, 2017 20:32
-
-
Save ThomasG77/f5e73e2d2b6fe50b2806398780a673d1 to your computer and use it in GitHub Desktop.
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
# 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