Commit 2e2471b3 authored by Felix Delattre's avatar Felix Delattre

cleaned up

parent f4323330
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "inc/entities.xml.inc">
%entities;
]>
<Map background-color="transparent" srs="&srs900913;" minimum-version="2.0.0">
&fontset-settings;
<Style name="buildings-lz">
<Rule>
<Filter>[bridge] = 'yes'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#9d5b86"/>
<LineSymbolizer stroke="#31508a" stroke-width="2"/>
</Rule>
<Rule>
<Filter>[bridge] = 'yes' and [railway] = 'rail'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#9d5b86"/>
<LineSymbolizer stroke="#000" stroke-width="2"/>
</Rule>
<Rule>
<Filter>[bridge] = 'yes' and [railway] = 'subway'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#9d5b86"/>
<LineSymbolizer stroke="#000" stroke-width="2"/>
</Rule>
<Rule>
<Filter>[bridge] = 'yes' and [construction] != ''</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#9d5b86"/>
<LineSymbolizer stroke="#f00" stroke-width="2"/>
</Rule>
</Style>
<!-- Tags with building= ' '-->
<Style name="buildings">
<Rule>
<Filter>[building] = 'bridge'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#9d5b86"/>
<LineSymbolizer stroke="#31508a" stroke-width="2"/>
</Rule>
<Rule>
<Filter>[building] = 'bridge' and [railway] = 'rail'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#9d5b86"/>
<LineSymbolizer stroke="#000" stroke-width="2"/>
</Rule>
<Rule>
<Filter>[building] = 'bridge' and [railway] = 'subway'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#9d5b86"/>
<LineSymbolizer stroke="#000" stroke-width="2"/>
</Rule>
<Rule>
<Filter>[building] = 'bridge' and [construction] != ''</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#9d5b86"/>
<LineSymbolizer stroke="#f00" stroke-width="2"/>
</Rule>
</Style>
<!-- Style for render lines -->
<Style name="lines">
<Rule>
<Filter>[bridge] = 'yes'</Filter>
&maxscale_zoom12;
<LineSymbolizer stroke="#31508a" stroke-width="7" />
<LineSymbolizer stroke="#9d5b86" stroke-width="5" />
</Rule>
<Rule>
<Filter>[bridge] = 'yes' and [railway] = 'rail'</Filter>
&maxscale_zoom12;
<LineSymbolizer stroke="#000" stroke-width="7" />
<LineSymbolizer stroke="#9d5b86" stroke-width="5" />
</Rule>
<Rule>
<Filter>[bridge] = 'yes' and [railway] = 'subway'</Filter>
&maxscale_zoom12;
<LineSymbolizer stroke="#000" stroke-width="7" />
<LineSymbolizer stroke="#9d5b86" stroke-width="5" />
</Rule>
<Rule>
<Filter>[bridge] = 'yes' and [construction] != ''</Filter>
&maxscale_zoom12;
<LineSymbolizer stroke="#f00" stroke-width="7" />
<LineSymbolizer stroke="#9d5b86" stroke-width="5"/>
</Rule>
</Style>
<!-- Layer for render lines -->
<Layer name="lines" status="on" srs="&osm2pgsql_projection;">
<StyleName>lines</StyleName>
<Datasource>
<Parameter name="table">
(
SELECT way,
tags->'bridge' AS bridge,
tags->'railway' AS railway,
tags->'construction' AS construction
FROM &prefix;_line
ORDER BY z_order
) AS foo
</Parameter>
&datasource-settings;
</Datasource>
</Layer>
<!-- Render only select building types starting at z10. -->
<Layer name="buildings-lz" status="on" srs="&osm2pgsql_projection;">
<StyleName>buildings-lz</StyleName>
<Datasource>
<Parameter name="table">
(
SELECT way,
tags->'building' AS building,
tags->'railway' AS railway,
tags->'bridge' AS bridge,
tags->'construction' AS construction
FROM &prefix;_polygon
ORDER BY z_order, cast(tags->'way_area' AS float) DESC
) AS foo
</Parameter>
&datasource-settings;
</Datasource>
</Layer>
<!-- Render the other building types. Some sql filtering is needed to exclude
any type not already specifically rendered in buildings-lz. -->
<Layer name="buildings" status="on" srs="&osm2pgsql_projection;">
<StyleName>buildings</StyleName>
<Datasource>
<Parameter name="table">
(
select way,
tags->'building' AS building,
tags->'railway' AS railway,
tags->'construction' AS construction
FROM &prefix;_polygon
ORDER BY z_order, cast(tags->'way_area' AS float) DESC
) AS foo
</Parameter>
&datasource-settings;
</Datasource>
</Layer>
</Map>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "inc/entities.xml.inc">
%entities;
]>
<Map background-color="transparent" srs="&srs900913;" minimum-version="2.0.0">
&fontset-settings;
<!-- Link zur Legende: https://obmwiki.gem.gfz-potsdam.de/doku.php?id=obm:color:bridges -->
<!-- Polygon-Style-->
<Style name="polygons-bridge">
<Rule>
<Filter>[bridge] = 'yes' or [building] = 'bridge'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#9d5b86"/>
<LineSymbolizer stroke="#31508a" stroke-width="2"/>
</Rule>
<Rule>
<Filter>([building] = 'bridge' or [bridge] = 'yes') and [railway] = 'rail'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#9d5b86"/>
<LineSymbolizer stroke="#000" stroke-width="2"/>
</Rule>
<Rule>
<Filter>([building] = 'bridge' or [bridge] = 'yes') and [railway] = 'subway'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#9d5b86"/>
<LineSymbolizer stroke="#000" stroke-width="2"/>
</Rule>
<Rule>
<Filter>([building] = 'bridge' or [bridge] = 'yes') and [construction] != ''</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#9d5b86"/>
<LineSymbolizer stroke="#f00" stroke-width="2"/>
</Rule>
</Style>
<!-- Style for render lines -->
<Style name="lines-bridge">
<Rule>
<Filter>[bridge] = 'yes'</Filter>
&maxscale_zoom12;
<LineSymbolizer stroke="#31508a" stroke-width="7" />
<LineSymbolizer stroke="#9d5b86" stroke-width="5" />
</Rule>
<Rule>
<Filter>[bridge] = 'yes' and [railway] = 'rail'</Filter>
&maxscale_zoom12;
<LineSymbolizer stroke="#000" stroke-width="7" />
<LineSymbolizer stroke="#9d5b86" stroke-width="5" />
</Rule>
<Rule>
<Filter>[bridge] = 'yes' and [railway] = 'subway'</Filter>
&maxscale_zoom12;
<LineSymbolizer stroke="#000" stroke-width="7" />
<LineSymbolizer stroke="#9d5b86" stroke-width="5" />
</Rule>
<Rule>
<Filter>[bridge] = 'yes' and [construction] != ''</Filter>
&maxscale_zoom12;
<LineSymbolizer stroke="#f00" stroke-width="7" />
<LineSymbolizer stroke="#9d5b86" stroke-width="5"/>
</Rule>
</Style>
<!-- Render polygons -->
<Layer name="polygons-bridge" status="on" srs="&osm2pgsql_projection;">
<StyleName>polygons-bridge</StyleName>
<Datasource>
<Parameter name="table">
(
SELECT way,
tags->'building' AS building,
tags->'railway' AS railway,
tags->'bridge' AS bridge,
tags->'construction' AS construction
FROM &prefix;_polygon
ORDER BY z_order, cast(tags->'way_area' AS float) DESC
) AS foo
</Parameter>
&datasource-settings;
</Datasource>
</Layer>
<!-- Layer for render lines -->
<Layer name="lines-bridge" status="on" srs="&osm2pgsql_projection;">
<StyleName>lines-bridge</StyleName>
<Datasource>
<Parameter name="table">
(
SELECT way,
tags->'bridge' AS bridge,
tags->'railway' AS railway,
tags->'construction' AS construction
FROM &prefix;_line
ORDER BY z_order
) AS foo
</Parameter>
&datasource-settings;
</Datasource>
</Layer>
</Map>
......@@ -2,7 +2,7 @@
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "inc/entities.xml.inc">
%entities;
<!ENTITY my-layer SYSTEM "inc/layers/building.xml.inc">
<!ENTITY my-layer SYSTEM "inc/layers/obm-building-use.xml.inc">
]>
<Map background-color="transparent" srs="&srs900913;" minimum-version="2.0.0">
&fontset-settings;
......
......@@ -2,7 +2,7 @@
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "inc/entities.xml.inc">
%entities;
<!ENTITY my-layer SYSTEM "inc/layers/building-use.xml.inc">
<!ENTITY my-layer SYSTEM "inc/layers/obm-building.xml.inc">
]>
<Map background-color="transparent" srs="&srs900913;" minimum-version="2.0.0">
&fontset-settings;
......
......@@ -2,10 +2,10 @@
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "inc/entities.xml.inc">
%entities;
<!ENTITY my-layer SYSTEM "inc/layers/all-obm-buildings.xml.inc">
<!ENTITY my-layer SYSTEM "inc/layers/obm-buildings-all.xml.inc">
]>
<!-- <Map background-color="transparent" srs="&srs900913;" minimum-version="2.0.0"> -->
<Map background-image="&symbols;all-obm-buildings-background.png" srs="&srs900913;" minimum-version="2.0.0">
<Map background-image="&symbols;obm-buildings-all-background.png" srs="&srs900913;" minimum-version="2.0.0">
&fontset-settings;
&my-layer;
</Map>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "inc/entities.xml.inc">
%entities;
]>
<Map background-color="transparent" srs="&srs900913;" minimum-version="2.0.0">
&fontset-settings;
&layer-tunnels;
&layer-bridges;
</Map>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "obm-inc/entities.xml.inc">
%entities;
]>
<Map background-color="transparent" srs="&srs900913;" minimum-version="2.0.0">
&fontset-settings;
&layer-obm-building-colour;
</Map>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "obm-inc/entities.xml.inc">
%entities;
]>
<Map background-color="transparent" srs="&srs900913;" minimum-version="2.0.0">
&fontset-settings;
&layer-obm-building-material;
</Map>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "obm-inc/entities.xml.inc">
%entities;
]>
<Map background-color="transparent" srs="&srs900913;" minimum-version="2.0.0">
&fontset-settings;
&layer-obm-building-use-cologne;
</Map>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "obm-inc/entities.xml.inc">
%entities;
]>
<Map background-color="transparent" srs="&srs900913;" minimum-version="2.0.0">
&fontset-settings;
&layer-obm-buildings-cologne;
</Map>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "obm-inc/entities.xml.inc">
%entities;
]>
<Map background-color="transparent" srs="&srs900913;" minimum-version="2.0.0">
&fontset-settings;
&layer-obm-buildings-damage;
</Map>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "obm-inc/entities.xml.inc">
%entities;
]>
<Map background-color="transparent" srs="&srs900913;" minimum-version="2.0.0">
&fontset-settings;
&layer-obm-education;
</Map>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "obm-inc/entities.xml.inc">
%entities;
]>
<Map background-color="transparent" srs="&srs900913;" minimum-version="2.0.0">
&fontset-settings;
&layer-obm-healthcare;
</Map>
<!-- Link zur Legende: https://obmwiki.gem.gfz-potsdam.de/doku.php?id=obm:color:buildingcolour -->
<Style name="building-colour">
<Rule>
<Filter>[buildingcolour] = 'white'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#fff"/>
<LineSymbolizer stroke="#bbb" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingcolour] = 'yellow'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#fc0"/>
<LineSymbolizer stroke="#ba9500" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingcolour] = 'red'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#b84700"/>
<LineSymbolizer stroke="#983900" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingcolour] = 'brown'
or [buildingcolour] = '#85552e'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#85552e"/>
<LineSymbolizer stroke="#664300" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingcolour] = 'grey'
or [buildingcolour] = 'gray'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#666"/>
<LineSymbolizer stroke="#3f3f3f" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingcolour] = 'beige'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#c0a080"/>
<LineSymbolizer stroke="#9b8167" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingcolour] = 'silver'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#aaa"/>
<LineSymbolizer stroke="#888" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingcolour] = 'lightyellow'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#fff76c"/>
<LineSymbolizer stroke="#d3cc59" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingcolour] = 'black'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#000"/>
<LineSymbolizer stroke="#3f3f3f" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingcolour] = 'green'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#5c8526"/>
<LineSymbolizer stroke="#496a1e" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingcolour] = 'orange'
or [buildingcolour] = '#ec8859'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#ec8859"/>
<LineSymbolizer stroke="#a25028" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingcolour] = 'blue'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#0047ff"/>
<LineSymbolizer stroke="#002ea2" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingcolour] = 'cream'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#ffffcc"/>
<LineSymbolizer stroke="#dbdbaf" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingcolour] = 'maroon'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#800000"/>
<LineSymbolizer stroke="#6c1c36" stroke-width="1"/>
</Rule>
</Style>
<!-- Render only select building types starting at z10. -->
<Layer name="building-colour" status="on" srs="&osm2pgsql_projection;">
<StyleName>building-colour</StyleName>
<Datasource>
<Parameter name="table">
(
SELECT way, tags->'building:colour' AS buildingcolour
FROM &prefix;_polygon
ORDER BY z_order, cast(tags->'way_area' AS float) DESC
) AS foo
</Parameter>
&datasource-settings;
</Datasource>
</Layer>
<!-- Link zur Legende: https://obmwiki.gem.gfz-potsdam.de/doku.php?id=obm:color:buildingmaterial -->
<Style name="building-material">
<Rule>
<Filter>[buildingmaterial] != ''</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#f00"/>
<LineSymbolizer stroke="#c00000" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingmaterial] = 'wood'</Filter>
&maxscale_zoom10;
<PolygonSymbolizer fill-opacity="1" fill="#85552e"/>
<LineSymbolizer stroke="#664300" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingmaterial] = 'brick'</Filter>
&maxscale_zoom10;
<PolygonSymbolizer fill-opacity="1" fill="#b84700"/>
<LineSymbolizer stroke="#983900" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingmaterial] = 'plaster'</Filter>
&maxscale_zoom10;
<PolygonSymbolizer fill-opacity="1" fill="#966"/>
<LineSymbolizer stroke="#503636" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingmaterial] = 'concrete'</Filter>
&maxscale_zoom10;
<PolygonSymbolizer fill-opacity="1" fill="#666"/>
<LineSymbolizer stroke="#3f3f3f" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingmaterial] = 'glass'</Filter>
&maxscale_zoom10;
<PolygonSymbolizer fill-opacity="1" fill="#09c"/>
<LineSymbolizer stroke="#006080" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingmaterial] = 'stone'</Filter>
&maxscale_zoom10;
<PolygonSymbolizer fill-opacity="1" fill="#606"/>
<LineSymbolizer stroke="#40003f" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingmaterial] = 'metal'</Filter>
&maxscale_zoom10;
<PolygonSymbolizer fill-opacity="1" fill="#366"/>
<LineSymbolizer stroke="#254949" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingmaterial] = 'tin'</Filter>
&maxscale_zoom10;
<PolygonSymbolizer fill-opacity="1" fill="#699"/>
<LineSymbolizer stroke="#4c7272" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingmaterial] = 'timber_framing'</Filter>
&maxscale_zoom10;
<PolygonSymbolizer fill-opacity="1" fill="#639"/>
<LineSymbolizer stroke="#442266" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingmaterial] = 'slate'</Filter>
&maxscale_zoom10;
<PolygonSymbolizer fill-opacity="1" fill="#c9f"/>
<LineSymbolizer stroke="#8d1dff" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingmaterial] = 'steel'</Filter>
&maxscale_zoom10;
<PolygonSymbolizer fill-opacity="1" fill="#069"/>
<LineSymbolizer stroke="#003956" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingmaterial] = 'sandstone'</Filter>
&maxscale_zoom10;
<PolygonSymbolizer fill-opacity="1" fill="#960"/>
<LineSymbolizer stroke="#664300" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[buildingmaterial] = 'mdf'</Filter>
&maxscale_zoom10;
<PolygonSymbolizer fill-opacity="1" fill="#660"/>
<LineSymbolizer stroke="#373800" stroke-width="1"/>
</Rule>
</Style>
<!-- Render only select building types starting at z10. -->
<Layer name="building-material" status="on" srs="&osm2pgsql_projection;">
<StyleName>building-material</StyleName>
<Datasource>
<Parameter name="table">
(
SELECT way, tags->'building:material' AS buildingmaterial
FROM &prefix;_polygon
ORDER BY z_order, cast(tags->'way_area' AS float) DESC
) AS foo
</Parameter>
&datasource-settings;
</Datasource>
</Layer>
<!-- Link zur Legende: https://obmwiki.gem.gfz-potsdam.de/doku.php?id=obm:color:building-use-cologne -->
<Style name="buildings">
<Rule>
<Filter>[building_use] != ''</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1" fill="#f00"/>
<LineSymbolizer stroke="#e00000" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[building_use] = 'residential;industrial'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#b80047"/>
<PolygonPatternSymbolizer file="&obm-symbols;/residential_industrial.png" />
<LineSymbolizer stroke="#00ae00" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[building_use] = 'residential;commercial'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#b80047"/>
<PolygonPatternSymbolizer file="&obm-symbols;/residential_commercial.png" />
<LineSymbolizer stroke="#000080" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[building_use] = 'public;residential'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#f63"/>
<PolygonPatternSymbolizer file="&obm-symbols;/public_residential.png" />
<LineSymbolizer stroke="#b80047" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[building_use] = 'residential;office'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#b80047"/>
<PolygonPatternSymbolizer file="&obm-symbols;/residential_office.png" />
<LineSymbolizer stroke="#0047ff" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[building_use] = 'residential;retail'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#b80047"/>
<PolygonPatternSymbolizer file="&obm-symbols;/residential_retail.png" />
<LineSymbolizer stroke="#6b0094" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[building_use] = 'industrial;residential'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#00ae00"/>
<PolygonPatternSymbolizer file="&obm-symbols;/industrial_residential.png" />
<LineSymbolizer stroke="#b80047" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[building_use] = 'residential;agricultural'</Filter>
&maxscale_zoom12;
<PolygonSymbolizer fill-opacity="1.0" fill="#b80047"/>
<PolygonPatternSymbolizer file="&obm-symbols;/residential_agricultural.png" />
<LineSymbolizer stroke="#c1d82f" stroke-width="1"/>
</Rule>