[Tilesathome] patch: maplint not-in-map_features.pl
boris
osm at macbeth.rhoen.de
Mon Nov 10 18:18:19 GMT 2008
Hi,
here a simple one line patch to fix a bug in not-in-map_features.pl
it solves the problem when processing a tag like: value=horrible
> <xsl:when test="@k='trail_visibility'">
> <xsl:choose>
> <xsl:when test="@v='bad'" />
> <xsl:when test="@v='excellent'" />
> <xsl:when test="@v='good'" />
> <xsl:when test="@v='h'" />
> <xsl:when test="@v='intermediate'" />
> <xsl:when test="@v='no'" />
> <xsl:when test="@v='rible'" />
btw can someone also update the (current in use) not-in-map_features.xml file.
--- not-in-map_features.pl 2008-11-10 12:29:51.000000000 +0100
+++ not-in-map_features.pl_new 2008-11-10 12:28:48.000000000 +0100
@@ -133,7 +133,7 @@
# Is it a single value, or a slash-separated list?
my @values = ();
if( $value =~ /\/|\bor\b/ ){
- foreach my $subvalue ( split(/\s*(?:\/|or)\s*/, $value) ){
+ foreach my $subvalue ( split(/\s*(?:\/|\bor\b)\s*/, $value) ){
add_feature($key, $subvalue, \@types);
}
} else {
More information about the Tilesathome
mailing list