@@ -8,7 +8,7 @@ This software contains two main pieces:
882) ``renderd ``: A daemon that renders map tiles using mapnik.
99
1010.. figure :: ./screenshot.jpg
11- :alt: Image shoing example slippy map and OSM layer
11+ :alt: Image showing example slippy map and OSM layer
1212
1313Together they efficiently render and serve raster map tiles for example
1414to use within a slippy map. The two consist of the classic raster tile
@@ -21,15 +21,22 @@ combination with ``mod_tile``.
2121Dependencies
2222------------
2323
24- * `GNU/Linux ` Operating System (works best on Debian or Ubuntu)
25- * `Apache 2 HTTP webserver <https://httpd.apache.org/ >`__
26- * `Mapnik <https://mapnik.org/ >`__
27- * `Cairo 2D graphics library <https://cairographics.org/ >`__
28- * `Curl library (SSL variant) <https://curl.haxx.se/ >`__
29- * `Iniparser library <https://github.com/ndevilla/iniparser >`__
30- * `GLib library <https://gitlab.gnome.org/GNOME/glib >`__
31- * `Memcached library (optional) <https://libmemcached.org/ >`__
32- * `RADOS library (optional) <https://docs.ceph.com/en/latest/rados/api/librados/ >`__
24+ * `Supported Operating Systems `
25+ * `GNU/Linux ` (works best on Debian or Ubuntu)
26+ * `FreeBSD `
27+ * `macOS `
28+ * `Supported Build Systems `
29+ * `GNU Autotools <https://www.gnu.org/software/software.html >`__
30+ * `CMake <https://cmake.org/ >`__
31+ * `Runtime/Build Dependencies `
32+ * `Apache 2 HTTP webserver <https://httpd.apache.org/ >`__
33+ * `Mapnik <https://mapnik.org/ >`__
34+ * `Cairo 2D graphics library <https://cairographics.org/ >`__
35+ * `Curl library (SSL variant) <https://curl.haxx.se/ >`__
36+ * `Iniparser library <https://github.com/ndevilla/iniparser >`__
37+ * `GLib library <https://gitlab.gnome.org/GNOME/glib >`__
38+ * `Memcached library (optional) <https://libmemcached.org/ >`__
39+ * `RADOS library (optional) <https://docs.ceph.com/en/latest/rados/api/librados/ >`__
3340
3441Installation
3542------------
@@ -58,10 +65,13 @@ when using it on an operating system this is not being packaged for.
5865We prepared instructions for you on how to build the software on the following
5966distributions:
6067
61- * `CentOS 7 <docs/build/building_on_centos_7.md >`__
62- * `Fedora 34 </docs/build/building_on_fedora_34.md >`__
63- * `Ubuntu 20.04 </docs/build/building_on_ubuntu_20_04.md >`__ (this should work as well for Debian 10)
64- * `Debian 12 </docs/build/building_on_debian_12.md >`__
68+ * `CentOS </docs/build/building_on_centos.md >`__
69+ * `CentOS Stream </docs/build/building_on_centos_stream.md >`__
70+ * `Debian </docs/build/building_on_debian.md >`__
71+ * `Fedora </docs/build/building_on_fedora.md >`__
72+ * `FreeBSD </docs/build/building_on_freebsd.md >`__
73+ * `macOS </docs/build/building_on_macos.md >`__
74+ * `Ubuntu </docs/build/building_on_ubuntu.md >`__
6575
6676Configuration
6777-------------
@@ -72,47 +82,63 @@ example configuration files are distributed with the software packages and
7282located in the ``etc `` directory of this repository.
7383
7484A very basic example-map and data can be found in the ``utils/example-map ``
75- directory. For a simple test copy it over to `` /var/www/example-map ``.
85+ directory.
7686
77- Copy the configuration files to their place, too :
87+ For a simple test copy it over to `` /usr/share/renderd/example-map `` :
7888
7989::
8090
81- $ cp etc/renderd/renderd.conf /etc/renderd.conf
82- $ cp etc/apache2/renderd.conf /etc/apache2/conf-available/renderd.conf
83- $ cp etc/apache2/renderd-example-map.conf /etc/apache2/conf-available/renderd-example-map.conf
91+ $ sudo mkdir -p /usr/share/renderd
92+ $ sudo cp -av utils/example-map /usr/share/renderd/
8493
85- Enable the configuration:
94+ Copy the apache configuration file to its place, too :
8695
8796::
8897
89- $ sudo a2enmod tile
90- $ sudo a2enconf renderd
91- $ sudo a2enconf renderd-example-map
98+ $ sudo cp -av etc/apache2/renderd-example-map.conf /etc/apache2/sites-available/renderd-example-map.conf
9299
93- Restart apache2 :
100+ Add a map configuration for example-map to `` /etc/renderd.conf` :
94101
95102::
96103
97- $ sudo a2enmod tile
98- $ sudo a2enconf renderd
104+ $ printf '
105+ [example-map]
106+ URI=/tiles/renderd-example
107+ XML=/usr/share/renderd/example-map/mapnik.xml
108+ ' | sudo tee -a /etc/renderd.conf
99109
110+ Start the rendering daemon
111+
112+ ::
100113
101- And run the rendering daemon
114+ $ sudo renderd
115+
116+ Enable the apache module and site:
102117
103118::
104119
105- $ renderd -f
120+ $ sudo a2enmod tile
121+ $ sudo a2ensite renderd-example-map
122+
123+ Restart apache:
124+
125+ ::
126+
127+ $ sudo apache2ctl restart
128+
129+ Now visit the renderd example map in your browser, e.g.:
130+
131+ ::
106132
107- Make sure the ``/var/cache/renderd/tiles `` directory is writable by
108- the user running the renderd process.
133+ http://localhost/renderd-example-map
109134
110- Try loading a tile in your browser , e.g.
135+ Or try loading a single tile , e.g:
111136
112137::
113138
114- http://localhost/ renderd-example/tiles /0/0/0.png
139+ http://localhost:8081/tiles/ renderd-example/0/0/0.png
115140
141+ *Note: the above commands and paths may differ based on your OS/distribution.*
116142
117143You may edit ``/etc/renderd.conf `` to indicate the location of different
118144mapnik style sheets (up to ten) and the endpoints you wish to use to access
0 commit comments