[OSM-dev] (unofficial) Mapnik 0.7.1. packages for Ubuntu 10.0http://gis.638310.n2.nabble.com/template/NamlServlet.jtp?macro=reply&node=58662644

fatzopilot fatzopilot at gmx.net
Sun Jan 9 16:51:54 GMT 2011


Hi all,

sorry for getting back so late.
In the meantime, I created packages for tirex and mapnik in order to get it
running under Ubuntu Lucid (10.04).
These are for AMD64, if someone could tell me how to build it for other
architectures, I could try that as well. If you would like to build your own
version, there are two tar files for that purpose: mapnik.0.7.1.tar.gz
(includes sources and modified build files (/debian)
mapnik_0.7.1.orig.tar.gz (this was somehow needed for the build process.
Place it in the same dir as the mapnik source folder)
Download everything from here: 
http://www.zumodrive.com/share/9FqKYzE0NT
For Mapnik, I simple took the packaging files (/debian) from the 0.7 source
package and modified them to build lucid compatible debs. Tirex packages
were built following these instructions:
http://wiki.openstreetmap.org/wiki/Tirex/Building_and_Installing
Some dependency on a lower version library had to be ignored. Doing debuild
-i -b -us -uc -d instead of make deb did the trick (I hope).
Note that this was the first time I built packages so I am not very
experienced with it and may have made a lot of mistakes!
There are some issues on my system though and I have no idea what could be
the reason and unfortunately did not get it solved yet (see
http://gis.638310.n2.nabble.com/Tirex-Mapnik-does-not-deliver-all-tiles-tc5885508.html).
Maybe it is specific to my machine, so I would be glad if someone could
tests these packages on his/her machine and report back.

Mapnik instrucutions:
Most important directories are now:
osm.xml and its include files: /usr/share/doc/mapnik-doc/examples
world boundary shapefiles: /usr/share/mapnik/world_boundaries (this is a
suggestion, you have to manually create and populate it with the shapefiles)
symbols: /usr/share/mapnik/symbols
custom osm.xml files. /etc/mapnik/... (this is a suggestion, you have to
manually created and populate it, see below @Generate a customized osm.xml)
So to get started, follow the instructions on
http://wiki.openstreetmap.org/wiki/Mapnik
to build a database (osm2pgsql), then install the packagessudo  dpkg -i
mapnik-doc_0.7.1_all.deb python-mapnik_0.7.1_amd64.deb
libmapnik0.7.1_0.7.1_amd64.deb libmapnik-dev_0.7.1_amd64.deb
mapnik-utils_0.7.1_amd64.deb
Generate a customized osm.xml:
(since the python scripts now reside in /usr/bin, you have to specify the
locations of the osm.template and the resulting osm.xml)generate_xml.py
/usr/share/doc/mapnik-doc/examples/osm.xml /etc/mapnik/osm.xml --host
localhost --user `whoami` --dbname gis --symbols /usr/share/mapnik/symbols
--world_boundaries /usr/share/mapnik/world_boundaries --port 5432 --password
'something'
Try to render GB:
(you have to initialize the MAPNIK_MAP_FILE variable to point to your
osm.xml)MAPNIK_MAP_FILE="/etc/mapnik/osm.xml" generate_image.py
Tirex:
Basic installation is done using
sudo dpkg -i tirex-backend-mapnik_0.2.0_amd64.deb tirex-core_0.2.0_amd64.deb
tirex-example-map_0.2.0_amd64.deb
You should be able to follow the instructions on
http://wiki.openstreetmap.org/wiki/Tirex to set it up (e.g. compile mod_tile
and other stuff).

Questions, comments, suggestions welcome!
-- 
View this message in context: http://gis.638310.n2.nabble.com/unofficial-Mapnik-0-7-1-packages-for-Ubuntu-10-04-tp5865149p5904698.html
Sent from the Developer Discussion mailing list archive at Nabble.com.



More information about the dev mailing list