whole planet tiles
This commit is contained in:
parent
4082220cea
commit
8ae2a20939
|
@ -9,7 +9,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Libre Developers Documentation 0\n"
|
"Project-Id-Version: Libre Developers Documentation 0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2024-09-15 09:23-0600\n"
|
"POT-Creation-Date: 2024-09-16 15:24-0600\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language: en\n"
|
"Language: en\n"
|
||||||
|
@ -58,102 +58,125 @@ msgstr ""
|
||||||
msgid "PostGIS"
|
msgid "PostGIS"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:29 ../../../_source/tile-libre-is.rst:83
|
#: ../../../_source/tile-libre-is.rst:29 ../../../_source/tile-libre-is.rst:121
|
||||||
#: ../../../_source/tile-libre-is.rst:92 ../../../_source/tile-libre-is.rst:103
|
#: ../../../_source/tile-libre-is.rst:130
|
||||||
|
#: ../../../_source/tile-libre-is.rst:141
|
||||||
msgid "Thusly."
|
msgid "Thusly."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:38
|
#: ../../../_source/tile-libre-is.rst:31
|
||||||
|
msgid "Tune Postgres, ala:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../../../_source/tile-libre-is.rst:33
|
||||||
|
msgid "`<https://osm2pgsql.org/doc/manual.html#tuning-the-postgresql-server>`_"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../../../_source/tile-libre-is.rst:57
|
||||||
msgid "At the Postgres prompt:"
|
msgid "At the Postgres prompt:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:51
|
#: ../../../_source/tile-libre-is.rst:70
|
||||||
msgid "Carto"
|
msgid "Carto"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:52
|
#: ../../../_source/tile-libre-is.rst:71
|
||||||
msgid "Set up Openstreet map Carto:"
|
msgid "Set up Openstreet map Carto:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:64
|
#: ../../../_source/tile-libre-is.rst:83
|
||||||
msgid "Map Data"
|
msgid "Map Data"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:65
|
#: ../../../_source/tile-libre-is.rst:84
|
||||||
msgid "Just using Azerbaijan for example, until more disk is available..."
|
msgid "Just using Azerbaijan for example, until more disk is available..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:82
|
#: ../../../_source/tile-libre-is.rst:100
|
||||||
|
msgid ""
|
||||||
|
"Or do the whole planet. If created above, maybe faster to drop the old "
|
||||||
|
"database first than do an update. XXX"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../../../_source/tile-libre-is.rst:120
|
||||||
msgid "Indexes"
|
msgid "Indexes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:91
|
#: ../../../_source/tile-libre-is.rst:129
|
||||||
msgid "Shapefiles"
|
msgid "Shapefiles"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:102
|
#: ../../../_source/tile-libre-is.rst:140
|
||||||
msgid "Fonts"
|
msgid "Fonts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:111
|
#: ../../../_source/tile-libre-is.rst:149
|
||||||
msgid "renderd"
|
msgid "renderd"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:112
|
#: ../../../_source/tile-libre-is.rst:150
|
||||||
msgid ""
|
msgid ""
|
||||||
"Edit /etc/renderd.conf thusly, add to bottom, changing \"accountname\" to"
|
"Edit /etc/renderd.conf thusly, add to bottom, changing \"accountname\" to"
|
||||||
" the user used above:"
|
" the user used above:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:124
|
#: ../../../_source/tile-libre-is.rst:162
|
||||||
msgid ""
|
msgid "Edit /usr/lib/systemd/system/renderd.service and add to [Service] section:"
|
||||||
"Edit /usr/lib/systemd/system/renderd.service and add to [Service] section:"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:132
|
#: ../../../_source/tile-libre-is.rst:170
|
||||||
msgid "Apache"
|
msgid "Apache"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:133
|
#: ../../../_source/tile-libre-is.rst:171
|
||||||
msgid "Thusly..."
|
msgid "Thusly..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:149
|
#: ../../../_source/tile-libre-is.rst:187
|
||||||
msgid "Then go check it here:"
|
msgid "Then go check it here:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:151
|
#: ../../../_source/tile-libre-is.rst:189
|
||||||
msgid "`<http://tile.libre.is/hot/0/0/0.png>`_"
|
msgid "`<http://tile.libre.is/hot/0/0/0.png>`_"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:154
|
#: ../../../_source/tile-libre-is.rst:192
|
||||||
msgid "View Tiles"
|
msgid "View Tiles"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:155
|
#: ../../../_source/tile-libre-is.rst:193
|
||||||
msgid "Thus."
|
msgid "Thus."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:165
|
#: ../../../_source/tile-libre-is.rst:203
|
||||||
msgid "Using Tiles"
|
msgid "Using Tiles"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:166
|
#: ../../../_source/tile-libre-is.rst:204
|
||||||
msgid "See:"
|
msgid "See:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:168
|
#: ../../../_source/tile-libre-is.rst:206
|
||||||
msgid "`<https://switch2osm.org/using-tiles/>`_"
|
msgid "`<https://switch2osm.org/using-tiles/>`_"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:172
|
#: ../../../_source/tile-libre-is.rst:210
|
||||||
|
msgid "Certbot"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../../../_source/tile-libre-is.rst:211
|
||||||
|
msgid "Add certs."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../../../_source/tile-libre-is.rst:220
|
||||||
msgid "TODO"
|
msgid "TODO"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:174
|
#: ../../../_source/tile-libre-is.rst:222
|
||||||
msgid "Get more space."
|
msgid "Get more space."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/tile-libre-is.rst:176
|
#: ../../../_source/tile-libre-is.rst:224
|
||||||
msgid "Add more tiles..."
|
msgid "Add more tiles..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,24 @@ PostGIS
|
||||||
=======
|
=======
|
||||||
Thusly.
|
Thusly.
|
||||||
|
|
||||||
|
Tune Postgres, ala:
|
||||||
|
|
||||||
|
`<https://osm2pgsql.org/doc/manual.html#tuning-the-postgresql-server>`_
|
||||||
|
|
||||||
|
.. code-block:: cfg
|
||||||
|
|
||||||
|
shared_buffers = 1GB
|
||||||
|
work_mem = 50MB
|
||||||
|
maintenance_work_mem = 10GB
|
||||||
|
autovacuum_work_mem = 2GB
|
||||||
|
wal_level = minimal
|
||||||
|
checkpoint_timeout = 60min
|
||||||
|
max_wal_size = 10GB
|
||||||
|
checkpoint_completion_target = 0.9
|
||||||
|
max_wal_senders = 0
|
||||||
|
random_page_cost = 1.0
|
||||||
|
|
||||||
|
|
||||||
.. code-block:: sh
|
.. code-block:: sh
|
||||||
|
|
||||||
sudo -u postgres -i
|
sudo -u postgres -i
|
||||||
|
@ -35,6 +53,7 @@ Thusly.
|
||||||
createdb -E UTF8 -O _renderd gis
|
createdb -E UTF8 -O _renderd gis
|
||||||
psql
|
psql
|
||||||
|
|
||||||
|
|
||||||
At the Postgres prompt:
|
At the Postgres prompt:
|
||||||
|
|
||||||
.. code-block:: psql
|
.. code-block:: psql
|
||||||
|
@ -78,6 +97,25 @@ Just using Azerbaijan for example, until more disk is available...
|
||||||
~/data/azerbaijan-latest.osm.pbf
|
~/data/azerbaijan-latest.osm.pbf
|
||||||
|
|
||||||
|
|
||||||
|
Or do the whole planet. If created above, maybe faster to drop
|
||||||
|
the old database first than do an update. XXX
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
mkdir ~/data
|
||||||
|
cd ~/data
|
||||||
|
# Find a mirror here:
|
||||||
|
# https://wiki.openstreetmap.org/wiki/Planet.osm
|
||||||
|
# planet-latest.osm.pbf is 77G
|
||||||
|
wget https://ftp.osuosl.org/pub/openstreetmap/pbf/planet-latest.osm.pbf
|
||||||
|
chmod o+rx ~
|
||||||
|
sudo -u _renderd osm2pgsql -d gis --create --slim -G --hstore \
|
||||||
|
--tag-transform-script ~/src/openstreetmap-carto/openstreetmap-carto.lua \
|
||||||
|
-C 98304 \
|
||||||
|
-S ~/src/openstreetmap-carto/openstreetmap-carto.style \
|
||||||
|
~/data/planet-latest.osm.pbf
|
||||||
|
|
||||||
|
|
||||||
Indexes
|
Indexes
|
||||||
=======
|
=======
|
||||||
Thusly.
|
Thusly.
|
||||||
|
@ -168,6 +206,16 @@ See:
|
||||||
`<https://switch2osm.org/using-tiles/>`_
|
`<https://switch2osm.org/using-tiles/>`_
|
||||||
|
|
||||||
|
|
||||||
|
Certbot
|
||||||
|
=======
|
||||||
|
Add certs.
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
sudo apt install python3-certbot-apache
|
||||||
|
sudo certbot -d tile.libre.is
|
||||||
|
sudo systemctl restart apache2
|
||||||
|
|
||||||
TODO
|
TODO
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue