Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

better DRY in styles

  • Loading branch information...
commit 2150d2010c2d75d3370b30866fdec4168da11351 1 parent ab128e8
@springmeyer authored
View
8 entities.xml.inc
@@ -1,7 +1,9 @@
+<!ENTITY datasource SYSTEM "datasource.xml.inc">
+
<!ENTITY srs900913 "+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">
-<!ENTITY world_boundaries "/home/dane/projects/osm-mapnik/world_boundaries">
-<!ENTITY srsmercator "+proj=merc +datum=WGS84 +over">
-<!ENTITY srs4326 "+init=epsg:4326">
+
+<!ENTITY world_boundaries "world_boundaries">
+
<!ENTITY maxscale_zoom0 "<MaxScaleDenominator>250000000000</MaxScaleDenominator>">
<!ENTITY maxscale_zoom1 "<MaxScaleDenominator>500000000</MaxScaleDenominator>">
<!ENTITY minscale_zoom1 "<MinScaleDenominator>200000000</MinScaleDenominator>">
View
10 fast.xml
@@ -12,15 +12,7 @@
<xi:include href="land.xml" />
- <Datasource name="postgis">
- <Parameter name="dbname">haiti</Parameter>
- <Parameter name="estimate_extent">0</Parameter>
- <Parameter name="extent">-20037508,-19929239,20037508,19929239</Parameter>
- <Parameter name="geometry_field">way</Parameter>
- <Parameter name="srid">900913</Parameter>
- <Parameter name="type">postgis</Parameter>
- <Parameter name="user"/>
- </Datasource>
+ &datasource;
<xi:include href="streams_rivers.xml" />
View
10 map_parks.xml
@@ -10,15 +10,7 @@
xmlns:xi="http://www.w3.org/2001/XInclude"
>
- <Datasource name="postgis">
- <Parameter name="dbname">haiti</Parameter>
- <Parameter name="estimate_extent">0</Parameter>
- <Parameter name="extent">-20037508,-19929239,20037508,19929239</Parameter>
- <Parameter name="geometry_field">way</Parameter>
- <Parameter name="srid">900913</Parameter>
- <Parameter name="type">postgis</Parameter>
- <Parameter name="user"/>
- </Datasource>
+ &datasource;
<xi:include href="parks.xml" />
View
10 map_roads.xml
@@ -10,15 +10,7 @@
xmlns:xi="http://www.w3.org/2001/XInclude"
>
- <Datasource name="postgis">
- <Parameter name="dbname">haiti</Parameter>
- <Parameter name="estimate_extent">0</Parameter>
- <Parameter name="extent">-20037508,-19929239,20037508,19929239</Parameter>
- <Parameter name="geometry_field">way</Parameter>
- <Parameter name="srid">900913</Parameter>
- <Parameter name="type">postgis</Parameter>
- <Parameter name="user"/>
- </Datasource>
+ &datasource;
<xi:include href="roads.xml" />
View
10 map_water.xml
@@ -10,15 +10,7 @@
xmlns:xi="http://www.w3.org/2001/XInclude"
>
- <Datasource name="postgis">
- <Parameter name="dbname">haiti</Parameter>
- <Parameter name="estimate_extent">0</Parameter>
- <Parameter name="extent">-20037508,-19929239,20037508,19929239</Parameter>
- <Parameter name="geometry_field">way</Parameter>
- <Parameter name="srid">900913</Parameter>
- <Parameter name="type">postgis</Parameter>
- <Parameter name="user"/>
- </Datasource>
+ &datasource;
<xi:include href="streams_rivers.xml" />

0 comments on commit 2150d20

Please sign in to comment.
Something went wrong with that request. Please try again.