English Wikipedia @ Freddythechick:Graphic Lab/Resources/Wikimaps atlas/Lesson a1
Ubuntu/Linux
- The project is prototyped with and currently requires Linux/Ubuntu
Installing MAKE
MAKE is an utility helping to serialized shell commands while stating the pre-required elements for each of these commands. As such, running a well conceived makefile
allow to reproduce a complexe tree-like network of commands, in the right order, despite several starting points and bricks required for a final output or group of outputs. To install MAKE:
<syntaxhighlight lang="bash"> sudo apt-get install make #for linux>Ubuntu </syntaxhighlight>
Therefore, Wikiatlas modules use a makefiles to gather all commands to perform on the relevant GIS data, raster or shapefiles, from downloading the source GIS file to generating the final SVG or bitmap map file.
How to use makefiles
- 1. Create a directory :
<syntaxhighlight lang="bash"> mkdir ~/wikiatlas #aka /home/<username>/wikiatlas </syntaxhighlight>
- 2. Copy a valid MAKE code from Wikipedia
- 3. In directory > save code as text file
script.makefile
- 4. Terminal > get to relevant folder & run the makefile
<syntaxhighlight lang="bash"> cd ~/wikiatlas # get terminal on right directory make -f script.makefile # run the target makefile (here with 0 parameters) </syntaxhighlight>
Installing utilities
For the whole "Wikimaps Atlas: stand alone" system, bellow are the list of required utilities and a valid makefiles version of it.
Commands to run | To save as utilities.makefile
|
---|---|
<syntaxhighlight lang="make"> success: utilities something low_level nodejs #a task with 4 requirements echo "======================================" #this is the 1st command echo "Wikiatlas setup: done --------> 100% !" #tab before each command is COMPULSORY (spaces will bug!). utilities: # a task with no dependency sudo apt-get install make curl unzip unrar gdal-bin something: sudo apt-get install build-essential #comment, is this needed ? nodejs: #for d3js & svg generation sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs sudo npm install -g topojson jsdom low_level: #for more advanced coding sudo apt-get install python-software-properties python g++ </syntaxhighlight> | |
To do | To do |
(copy-paste in terminal) | run <syntaxhighlight lang="bash">
mkdir ~/wikiatlas cd ~/wikimaps make -f utilities.makefile </syntaxhighlight> |
Extended content
|
---|
Utilities:
|
Action: When run, utilities.makefile
downloads and installs one after another the needed scripts and dependencies required by Wikiatlas, either stand alone and server versions.
See also
The table above has links to various tutorials and resources which can help in the creation of Wikipedia maps from digital georeferenced data (GIS).