You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documents/tutorials/geoTutorials/geoImporting.md
+11-7
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ _This is one of a series of 'geo' tutorials for use with litvis._
16
16
1.[Geospatial File Formats](geoFormats.md)
17
17
2.[Generating Global Map Projection Geo Files](geoGenerating.md)
18
18
3.**Importing geographic datasets into elm-vegalite**
19
+
4.[Importing and displaying OpenStreetMap data](openstreetmap.md)
19
20
20
21
---
21
22
@@ -35,16 +36,19 @@ _For related tutorials, see Mike Bostock's series [Command-Line Cartography](htt
35
36
36
37
## 0. Setup
37
38
38
-
Some of these steps involve using [Geospatial Abstraction Data Library (gdal)](http://www.gdal.org) and some d3 command line programs, so as a one-off setup stage you need to install the following with [homebrew](https://brew.sh) and [npm](https://docs.npmjs.com/getting-started/installing-node) (if you don't have them installed, do so first).
39
+
To perform some of the file conversions you will need the [Geospatial Abstraction Data Library (gdal)](http://www.gdal.org), so if you do not have this already, as a one-off setup stage you should install it. Here are some installation instructions for [MacOS](https://medium.com/@vascofernandes_13322/how-to-install-gdal-on-macos-6a76fb5e24a4), for [Windows](https://sandbox.idre.ucla.edu/sandbox/tutorials/installing-gdal-for-windows), and for [Ubuntu](https://mothergeo-py.readthedocs.io/en/latest/development/how-to/gdal-ubuntu-pkg.html)).
39
40
40
-
Open a terminal and install the relevant packages with the following
41
+
After installation, opening a command line window and typing
41
42
42
-
[comment]: #"Don't need `d3-geo-projection` as we use gdal instead for projection, which offers a more comprehensive set of transformations that account for ellipsoids."
The `-g` option ensures the installed packages are available globally from any directory.
50
54
The `gdal` package will be used for the map projection work; `shapefile` for the conversion from shapefile to geoJSON; `ndjson-cli` splits JSON files into separate lines to ease processing; `topojson` does the conversion to topoJSON and the topology-preserving simplification; and `d3-geo-centroid` is used for generating centroid locations from polygons.
0 commit comments