Browse files

Updated sample style to be compatible with tiledrawer

  • Loading branch information...
1 parent 339638c commit 4ed4d09567f5ee0b6deaecf9ae7eeed73dfd36ae @migurski migurski committed Jan 17, 2012
Showing with 32 additions and 18 deletions.
  1. +32 −18 openstreetmap/style.mml
View
50 openstreetmap/style.mml
@@ -4,10 +4,6 @@
<!DOCTYPE Map[
- <!-- coastline shapefile settings -->
- <!ENTITY coastlines "../../../../../../src/osm_mapnik3/world_boundaries/processed_p">
- <!ENTITY coastlines_srs "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
-
<!-- osm2pgsql defaults to importing OSM data in mercator projection (+proj=merc) -->
<!-- this is also the projection the map should be in for serving tiles in the standard way -->
<!ENTITY map_srs "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
@@ -28,9 +24,9 @@
<!-- database settings -->
<!ENTITY host "localhost">
<!ENTITY port "5432">
- <!ENTITY user "postgres">
+ <!ENTITY user "osm">
<!ENTITY password "">
- <!ENTITY dbname "osm_belgium">
+ <!ENTITY dbname "planet_osm">
]>
<Map srs="&map_srs;">
<Stylesheet>
@@ -42,25 +38,43 @@
<Stylesheet src="rail.mss"/>
<Stylesheet src="places.mss"/>
- <Layer class="coast edge outer" srs="&coastlines_srs;">
+ <Layer class="coast edge outer" srs="&map_srs;">
<Datasource>
- <Parameter name="type">shape</Parameter>
- <Parameter name="file">&coastlines;</Parameter>
- <!-- coastline shapefiles can be found at http://hypercube.telascience.org/~kleptog/ -->
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&host;</Parameter>
+ <Parameter name="port">&port;</Parameter>
+ <Parameter name="user">&user;</Parameter>
+ <Parameter name="password">&password;</Parameter>
+ <Parameter name="dbname">&dbname;</Parameter>
+ <Parameter name="estimate_extent">&estimate_extent;</Parameter>
+ <Parameter name="extent">&extent;</Parameter>
+ <Parameter name="table">coastline</Parameter>
</Datasource>
</Layer>
- <Layer class="coast edge inner" srs="&coastlines_srs;">
+ <Layer class="coast edge inner" srs="&map_srs;">
<Datasource>
- <Parameter name="type">shape</Parameter>
- <Parameter name="file">&coastlines;</Parameter>
- <!-- coastline shapefiles can be found at http://hypercube.telascience.org/~kleptog/ -->
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&host;</Parameter>
+ <Parameter name="port">&port;</Parameter>
+ <Parameter name="user">&user;</Parameter>
+ <Parameter name="password">&password;</Parameter>
+ <Parameter name="dbname">&dbname;</Parameter>
+ <Parameter name="estimate_extent">&estimate_extent;</Parameter>
+ <Parameter name="extent">&extent;</Parameter>
+ <Parameter name="table">coastline</Parameter>
</Datasource>
</Layer>
- <Layer class="coast fill" srs="&coastlines_srs;">
+ <Layer class="coast fill" srs="&map_srs;">
<Datasource>
- <Parameter name="type">shape</Parameter>
- <Parameter name="file">&coastlines;</Parameter>
- <!-- coastline shapefiles can be found at http://hypercube.telascience.org/~kleptog/ -->
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&host;</Parameter>
+ <Parameter name="port">&port;</Parameter>
+ <Parameter name="user">&user;</Parameter>
+ <Parameter name="password">&password;</Parameter>
+ <Parameter name="dbname">&dbname;</Parameter>
+ <Parameter name="estimate_extent">&estimate_extent;</Parameter>
+ <Parameter name="extent">&extent;</Parameter>
+ <Parameter name="table">coastline</Parameter>
</Datasource>
</Layer>
<Layer class="citylike nonparking area" srs="&osm_srs;">

0 comments on commit 4ed4d09

Please sign in to comment.