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
$ sudo easy_install PIL | |
Searching for PIL | |
Reading http://pypi.python.org/simple/PIL/ | |
Reading http://www.pythonware.com/products/pil | |
Reading http://effbot.org/zone/pil-changes-115.htm | |
Reading http://effbot.org/downloads/#Imaging | |
Best match: PIL 1.1.7 | |
Downloading http://effbot.org/media/downloads/PIL-1.1.7.tar.gz | |
Processing PIL-1.1.7.tar.gz | |
Running PIL-1.1.7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Ye6Yk4/PIL-1.1.7/egg-dist-tmp-2B8pzz |
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
i$ cascadenik-compile.py style.mml > style.xml | |
Traceback (most recent call last): | |
File "/usr/local/bin/cascadenik-compile.py", line 5, in <module> | |
pkg_resources.run_script('cascadenik==0.1.0', 'cascadenik-compile.py') | |
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 461, in run_script | |
self.require(requires)[0].run_script(script_name, ns) | |
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1194, in run_script | |
execfile(script_filename, namespace, namespace) | |
File "/usr/local/lib/python2.6/dist-packages/cascadenik-0.1.0-py2.6.egg/EGG-INFO/scripts/cascadenik-compile.py", line 30, in <module> | |
sys.exit(main(layersfile, options.directory, options.move_local_files)) |
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
cascadenik-compile.py scratch.mml > test.xml | |
Traceback (most recent call last): | |
File "/usr/local/bin/cascadenik-compile.py", line 109, in <module> | |
sys.exit(main(layersfile, **options.__dict__)) | |
File "/usr/local/bin/cascadenik-compile.py", line 41, in main | |
doc.write(f) | |
AttributeError: _ElementInterface instance has no attribute 'write' |
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
sudo apt-get install -y subversion git-core python-setuptools \ | |
build-essential wget curl vim unzip g++ cpp mercurial \ | |
libboost1.40-dev libboost-filesystem1.40-dev libgeos-dev libpq-dev \ | |
libboost-iostreams1.40-dev libboost-program-options1.40-dev \ | |
libboost-python1.40-dev libboost-regex1.40-dev \ | |
libboost-thread1.40-dev libxml2 libxml2-dev python-gdal \ | |
libfreetype6 libfreetype6-dev libjpeg62 libjpeg62-dev \ | |
libltdl7 libltdl-dev libpng12-0 libpng12-dev libicu-dev \ | |
libgeotiff-dev libtiff4 libtiff4-dev libtiffxx0c2 \ | |
libcairo2 libcairo2-dev python-cairo python-cairo-dev \ |
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
# Become postgres | |
sudo su postgres | |
createuser -SdR mapuser # -S = not super, -d = can create DBs, -R can't create roles | |
# Creating the template spatial database. | |
createdb -E UTF8 template_postgis | |
# Adding PLPGSQL language support | |
createlang -d template_postgis plpgsql | |
# Allows non-superusers the ability to create from this template |
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
sudo apt-get install libltdl3-dev libpng12-dev libtiff4-dev libicu-dev | |
sudo apt-get install libboost-python1.40-dev python-cairo-dev python-nose | |
sudo apt-get install libboost1.40-dev libboost-filesystem1.40-dev | |
sudo apt-get install libboost-iostreams1.40-dev libboost-regex1.40-dev libboost-thread1.40-dev | |
sudo apt-get install libboost-program-options1.40-dev libboost-python1.40-dev | |
sudo apt-get install libfreetype6-dev libcairo2-dev libcairomm-1.0-dev | |
sudo apt-get install libgeotiff-dev libtiff4 libtiff4-dev libtiffxx0c2 | |
sudo apt-get install libsigc++-dev libsigc++0c2 libsigx-2.0-2 libsigx-2.0-dev | |
sudo apt-get install libgdal1-dev gdal-bin python-gdal python-setuptools | |
sudo apt-get install imagemagick ttf-dejavu |
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
mkdir ~/src | |
cd ~/src | |
svn co http://svn.mapnik.org/tags/release-0.7.1/ mapnik | |
cd mapnik | |
python scons/scons.py configure INPUT_PLUGINS=all OPTIMIZATION=3 SYSTEM_FONTS=/usr/share/fonts/truetype/ | |
python scons/scons.py | |
sudo python scons/scons.py install | |
sudo ldconfig |
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
# Mapnik tools | |
mkdir -p ~/bin | |
cd ~/bin | |
svn export http://svn.openstreetmap.org/applications/rendering/mapnik | |
cd mapnik | |
# osm2pgsql | |
cd ~/bin | |
svn co http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/ | |
cd osm2pgsql |
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
# Download | |
mkdir -P ~/data/boundaries | |
cd ~/data/boundaries | |
wget http://tile.openstreetmap.org/world_boundaries-spherical.tgz | |
wget http://tile.openstreetmap.org/shoreline_300.tar.bz2 | |
wget http://tile.openstreetmap.org/processed_p.tar.bz2 | |
wget http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/10m-populated-places.zip | |
wget http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/110m-admin-0-boundary-lines.zip | |
# Extract |
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
# Download Italy OSM extract | |
cd ~/data | |
wget http://download.cloudmade.com/europe/italy/italy.osm.bz2 | |
# Import | |
cd ~/bin/osm2pgsql | |
./osm2pgsql -v -U gisuser -s -S default.style -d osm ~/data/italy.osm.bz2 >~/data/import.log 2>&1 |
OlderNewer