[Talk-de] Fwd: Map Features: Kirche

Thomas Hog thomas at tomhog.de
Do Okt 30 17:02:24 UTC 2008


Raphael Studer schrieb:

> Hi Martin,
> 
> 2008/10/30 Martin Koppenhoefer
> <dieterdreist at gmail.com>: 
>> ich wollte nochmal auf meinen Patch fuer Osmarender hinweisen, mit
>> dem die Icons fuer place_of_worship auch fuer areas erzeugt werden.
>> Koennte sich jemand mit SVN-Zugang dem annehmen?
> 
> Ich würde den patch sofort einpflegen, wenn der denn als Patch
> vorliegen würde :)

=8<=====8<=====8<=====8<=====8<=====8<=====8<=====8<=====8<=====8<=====8<====
diff -u osmarender/osm-map-features-z17.xml osmarender_patched/osm-map-features-z17.xml
--- osmarender/osm-map-features-z17.xml	2008-10-18 00:43:45.000000000 +0200
+++ osmarender_patched/osm-map-features-z17.xml	2008-10-30 17:58:52.000000000 +0100
@@ -1649,6 +1649,29 @@
 				</else>
 			</else>
 		</rule>
+		<rule e="way" k="amenity" v="place_of_worship">
+			<rule e="way" k="denomination|religion" v="jewish">
+				<areaSymbol ref="synagogue" position="center"/>
+			</rule>
+			<else>
+				<rule e="way" k="denomination|religion" v="muslim|moslem">
+					<areaSymbol ref="mosque" position="center"/>
+				</rule>
+				<else>
+					<rule e="way" k="denomination|religion" v="christian">
+						<areaSymbol ref="church" position="center"/>
+					</rule>
+					<else>
+						<rule e="way" k="denomination|religion" v="sikhism|sikh">
+							<areaSymbol ref="khanda" position="center"/>
+						</rule>
+						<else>
+							<areaSymbol ref="peak" position="center"/>
+						</else>
+					</else>
+				</else>
+			</else>
+		</rule>
 		<rule e="node" k="amenity" v="parking">
 			<symbol ref="parking" position="center"/>
 		</rule>
@@ -2132,7 +2155,7 @@
 			<areaText k="name" class="caption-casing generic-caption-casing" text-anchor="middle" startOffset="50%" layer="5"/>
 			<areaText k="name" class="caption-core generic-caption-core" text-anchor="middle" startOffset="50%" layer="5"/>
 		</rule>
-		<rule e="way" k="amenity|shop" v="school|college|university|parking|supermarket" layer="5">
+		<rule e="way" k="amenity|shop" v="school|college|university|parking|supermarket|place_of_worship" layer="5">
 			<areaText k="name" class="caption-casing generic-caption-casing" dy='-2.5px' text-anchor='middle' startOffset='50%' layer="5"/>
 			<areaText k="name" class="caption-core generic-caption-core" dy='-2.5px' text-anchor='middle' startOffset='50%' layer="5"/>
 		</rule>
@@ -2140,7 +2163,7 @@
 		<rule e="way" k="sport" v="~" layer="5"> <!-- don't render captions for buildings, if sport is also set, thus honor offsets -->
 			<rule e="way" k="building" v="*" layer="5">
 				<!-- same goes if one of the following is set -->
-				<rule e="way" k="amenity|shop" v="school|college|university|parking|supermarket" layer="5">
+				<rule e="way" k="amenity|shop" v="school|college|university|parking|supermarket|place_of_worship" layer="5">
 				</rule>
 				<else>
 					<areaText k="name" class="caption-casing generic-caption-casing" text-anchor='middle' startOffset='50%' layer="5"/>
=8<=====8<=====8<=====8<=====8<=====8<=====8<=====8<=====8<=====8<=====8<====

HTH,
Thomas

PS: ich hoffe mal, die Zeilen werden unterwegs nicht umgebrochen ;-)





Mehr Informationen über die Mailingliste Talk-de