Add outline to listed bldgs in conservation area

This commit is contained in:
Maciej Ziarkowski 2020-02-16 20:44:45 +00:00
parent aebd90a788
commit 68ae627901
2 changed files with 14 additions and 8 deletions

View File

@ -181,24 +181,30 @@
</Style>
<Style name="planning_combined">
<Rule>
<Filter>[planning_type] = "Grade I Listed"</Filter>
<Filter>[planning_in_conservation_area] = true</Filter>
<PolygonSymbolizer fill="#95beba"/>
</Rule>
<Rule>
<Filter>[listing_type] = "Grade I Listed"</Filter>
<PolygonSymbolizer fill="#c72e08"/>
</Rule>
<Rule>
<Filter>[planning_type] = "Grade II* Listed"</Filter>
<Filter>[listing_type] = "Grade II* Listed"</Filter>
<PolygonSymbolizer fill="#e75b42"/>
</Rule>
<Rule>
<Filter>[planning_type] = "Grade II Listed"</Filter>
<Filter>[listing_type] = "Grade II Listed"</Filter>
<PolygonSymbolizer fill="#ffbea1"/>
</Rule>
<Rule>
<Filter>[planning_type] = "Locally Listed"</Filter>
<Filter>[listing_type] = "Locally Listed"</Filter>
<PolygonSymbolizer fill="#858ed4"/>
</Rule>
<Rule>
<Filter>[planning_type] = "In Conservation Area"</Filter>
<PolygonSymbolizer fill="#95beba"/>
<Filter>[listing_type] != "None" and [planning_in_conservation_area] = true</Filter>
<MaxScaleDenominator>68200</MaxScaleDenominator>
<MinScaleDenominator>0</MinScaleDenominator>
<LineSymbolizer stroke="#95beba" stroke-width="2.5"/>
</Rule>
</Style>
<Style name="sust_dec">

View File

@ -96,10 +96,10 @@ const BUILDING_LAYER_DEFINITIONS = {
WHEN b.planning_list_cat = 'Listed Building' and b.planning_list_grade = 'II*' THEN 'Grade II* Listed'
WHEN b.planning_list_cat = 'Listed Building' and b.planning_list_grade = 'II' THEN 'Grade II Listed'
WHEN b.planning_in_local_list THEN 'Locally Listed'
WHEN b.planning_in_conservation_area THEN 'In Conservation Area'
ELSE 'None'
END
) as planning_type
) as listing_type,
b.planning_in_conservation_area
FROM geometries as g
JOIN buildings as b
ON g.geometry_id = b.geometry_id