Cleanup some of the variable definitions, add -C 5000 by default to the
osm2pgsql process to benefit from better cache hit rate, and fix logging
and output of the maposmatic_admin table update.
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Renamed ocitysmap2-render as render.py since we don't need/want
"ocitysmap2" in the name anymore. Rename conf template as
ocitysmap.conf.dist for the same reason. Updated INSTALL instructions
accordingly.
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
[Thomas: add similar fix for UK stylesheet]
Signed-off-by: David MENTRE <dmentre@linux-france.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This test suite renders different locations, with different renderers,
on different paper formats and orientations. It assumes that a
database containing the France OSM data is available.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
This short HTML page is helpful to debug bounding box related
problems, by visualizing a set of bounding boxes on a slippy map. Many
bounding boxes can be added using the BoundingBox() function.
Note that the OcitySMap BoundingBox object has a .as_javascript()
method that directly generates a string that is suitable for
copy/paste into this file.
This file has been _very_ helpful to debug some initial problems of
the multi-page renderer.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
This commit creates a new maposmatic_admin table, which contains a
single column and a single entry, used to store the age of the OSM
data that is currently inside the GIS database. This table is located
on the GIS database side (and *NOT* on the Django database side).
This table must be created once on the GIS database by running the
setup-maposmatic-admin.sql.
This table is then updated by the planet-update.sh script every time
it completes an update of the OSM data. System administrators of the
production and development servers are therefore now requested to use
the planet-update.sh script for the OcitySMap repository on the
servers, and to replicate on the Git repository any change done on
those scripts.
The contents of this table will be used by later commits to show the
replication lag on the MapOSMatic.org website and the date of the OSM
data on the generated maps.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
This script is, unmodified, the script currently used on
gis.maposmatic.org to update our planet regularly with the official
OSM database.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
We now use 15-minutes diff to update our database, thanks to another
script. Remove this old, unused script.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>