maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] [PATCH 1/2] Simpler INSTALL for MapQuest stylesheet


From: Frederic Daniel Luc Lehobey
Subject: [Maposmatic-dev] [PATCH 1/2] Simpler INSTALL for MapQuest stylesheet
Date: Thu, 29 Mar 2012 14:30:07 +0200

Signed-off-by: Frederic Daniel Luc Lehobey <address@hidden>
---
 INSTALL |   38 ++++++++++----------------------------
 1 files changed, 10 insertions(+), 28 deletions(-)

diff --git a/INSTALL b/INSTALL
index 4a1eb68..c1a0465 100644
--- a/INSTALL
+++ b/INSTALL
@@ -300,41 +300,23 @@ shared with the original OSM stylesheet, but this is not 
a problem as
 the mq_world_mercator_*.tiff files are not used by the original OSM
 stylesheet).
 
-Now, to the configuration of the stylesheet itself:
+Now, to the configuration of the stylesheet itself (use the
+.inc.template files):
 
- cp mapquest_inc/datasource-settings.xml.inc.template 
mapquest_inc/datasource-settings.xml.inc
- vi mapquest_inc/datasource-settings.xml.inc
-
-Adjust your database details appropriately. The "estimate_extent"
-value should be "false", and the "extent" value should be
--20037508,-19929239,20037508,19929239.
-
-Next configuration file:
-
- cp mapquest_inc/fontset-settings.xml.inc.template 
mapquest_inc/fontset-settings.xml.inc
- vi mapquest_inc/fontset-settings.xml.inc
+ vi mapquest_inc/fontset-settings.xml.inc.template
 
 Not much to change here, the default value is fine. If you want to use
 the same font for the original OSM stylesheet and the MapQuest one,
 replace "Arial" by "DejaVu".
 
-Next (and final) configuration file:
-
- cp mapquest_inc/settings.xml.inc.template mapquest_inc/settings.xml.inc
- vi mapquest_inc/settings.xml.inc
-
-And set the following values:
-
- * symbols to "mapquest_symbols" (the directory in the MapQuest
-   stylesheet where the icons and other related elements are stored)
-
- * osm2pgsql_projection to "&srs900913;"
-
- * world_boundaries to "world_boundaries" (the directory in the
-   MapQuest stylesheet where the world boundaries data can be found)
+Create the .inc files from the templates:
 
- * prefix to "planet_osm". This is the prefix of the OSM tables in the
-   PostGIS database.
+ python /path/to/mapnik2-osm/generate_xml.py --inc mapquest_inc \
+                                             --symbols mapquest_symbols \
+                                             --dbname maposmatic \
+                                             --host 'localhost' \
+                                             --user maposmatic --port 5432 \
+                                             --password 'ereiamjh'
 
 The final step is to integrate this new stylesheet in ocitysmap. To do
 so, edit your ocitysmap.conf file, and add a new stylesheet section,
-- 
1.7.2.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]