In , an excellent tutorial is presented about the process of making maps. It is a little bit dated, so here I develop some Windows-based scripts that make it possible to follow these tutorials. The goal is two-fold:
- Make things work for Windows. I am comfortable with the Unix command line, but, by far, most of my colleagues are not. To allow for easier sharing, I used Windows CMD.
- Update the commands so they all function again. Some URLs have changed a little bit, and we need to use a specific version of d3. If you want to use the original Unix commands, and you encounter some issues, you may want to check how I repaired them.
The output format of these scripts is svg. SVG files are plain text, represent vectors (instead of bitmaps), and can be read directly by a standard web browser.
The first thing to do is to install node.js if you don't have this available already. Using  this process is quite straightforward. Our first batch file will follow the steps in .
- The curl command is available on newer versions of Windows.
- Windows does not have unzip, but it has tar which can unzip files.
- Use https instead of HTTP.
- The use of quotes is different under Windows compared to Unix.
The result should be the following vector image displayed in your browser: