tutorials:tilemill
This is an old revision of the document!
Table of Contents
Install Tilemill on Debian Jessie (testing)
dependencies
- Mapnik v2.2.0
- Node.js v0.10.x or v0.8.x
- Protobuf: libprotobuf-lite and protoc
sudo aptitude install libprotobuf-lite7 libprotoc7
Tilemill
Install dependencies:
sudo aptitude install git libmapnik2-dev python-gtk2-dev libwebkit-dev libsqlite3-dev
go to tilemill install directory, e.g.
cd /usr/local/share/ sudo su
obtain the latest version of tilemill:
git clone https://github.com/mapbox/tilemill.git cd tilemill
or the latest release of tilemill:
TILEMILL_TAG="v0.10.1" git clone https://github.com/mapbox/tilemill.git cd tilemill git checkout ${TILEMILL_TAG}
make command node available:
ln -s /usr/bin/nodejs /usr/local/bin/node
compile and install tilemill:
npm install
download data into postgis
sudo -u postgres createdb -U postgres tilemill_austria sudo -u postgres createlang plpgsql tilemill_austria sudo -u postgres psql tilemill_austria -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql sudo -u postgres psql tilemill_austria -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql sudo -u postgres createuser -Upostgres --no-superuser --no-createdb --no-createrole tilemill sudo -u postgres psql -U postgres -c "ALTER ROLE tilemill WITH PASSWORD 'tilemill';" # tabellen rechte fixen sudo -u postgres psql tilemill_austria -c "ALTER TABLE geometry_columns OWNER TO tilemill"; sudo -u postgres psql tilemill_austria -c "ALTER TABLE spatial_ref_sys OWNER TO tilemill"; sudo -u postgres psql tilemill_austria -c "ALTER TABLE geography_columns OWNER TO tilemill"; # daten einspielen mkdir src/tilemill-osm cd src/tilemill-osm wget http://download.geofabrik.de/europe/austria-latest.osm.pbf osm2pgsql -d tilemill_austria --username tilemill --host localhost --password --slim austria-latest.osm.pbf
tutorials/tilemill.1395762872.txt.gz · Last modified: 2014/03/25 15:54 by nine