Hi David.

(2013/11/17 22:05), David MENTRÉ wrote:
Konbanwa Taro-san,

2013-11-17 11:11, Taro Matsuzawa:
My setup log is following:

https://github.com/smellman/HDM-CartoCSS/wiki/setup-ocitysmap-and-HOT-style


I'm a trying to find what you needed to modify compared to our
(MapOSMatic) default setup:

  * Use option --hstore at osm2pgsql step;


Yes, hstore extension enabled by createlang pgplsql.
Also I use PostgreSQL 9.1 (Ubuntu 13.10 default).

And I add -G option, because it used in HDM-CartoCSS's setup step.
https://github.com/hotosm/HDM-CartoCSS/blob/master/README.md

  * Modify original HDM-CartoCSS repository:
     https://github.com/smellman/HDM-CartoCSS/compare/ocitysmap

    * Add get-coastlines.sh script from Rodolphe Quiédeville;


Yes, and I take this file from openstreetmap's mapnik-stylesheets.
https://github.com/openstreetmap/mapnik-stylesheets/blob/master/get-coastlines.sh

    * Add a "final.xml" file. Where this file comes from? Have you used
CartoCC (https://github.com/yohanboniface/CartoCC) and TillMill
(https://github.com/mapbox/tilemill)? In that case, what is your
cartocc.json file?


1. copy hdm.mml file to other file and remove some layers use local file and http in datasource.

2. copy cartocc.json.sample to cartocc.json and change database config with this server's setup (maposmatic/pass) and delete local datasources.

3. run 'cartocc test2.mml cartocc.json > test2_1.mml'

4. run 'carto test2_1.mml > test.xml'

5. set text.xml to .ocitysmap.conf and run render.py.

6. fix render.py's error using vim:-).

7. finally, I add boundaries from osm's mapnik-stylesheets and add ENTITYs.
https://github.com/openstreetmap/mapnik-stylesheets/blob/master/inc/layer-shapefiles.xml.inc

  * Add a patch on maposmatic to add the HOT stylesheet on the menu:

https://github.com/smellman/HDM-CartoCSS/wiki/setup-ocitysmap-and-HOT-style#maposmatic


Now I setup maposmatic and this form looks use .ocitysmap.conf.
so I think this patch is not needed.
Test server is here(only Philippines data): http://157.7.155.30:8080

And, I added some fix to ocitysmap and maposmatic for Ubuntu 13.10.
https://github.com/smellman/ocitysmap/tree/for_ubuntu_1310
https://github.com/smellman/maposmatic/tree/humanitarian-style


Is that all?


My comment is all...maybe.

And now Dražen (HOTOSM team) try to setup this server.
I think it's best to support in http://maposmatic.org/ .
But my patches depend on Ubuntu 13.10 and I can't test other version.
If maposmatic.org is difficult to patch a my patches,
I want to run this service in HOTOSM for Philippines.

Thanks.
--
Taro Matsuzawa
Georepublic Japan
mail: t...@georepublic.co.jp
web: http://georepublic.co.jp

Reply via email to