Permalink
Browse files

Updated rules for filtering out inactive stations.

  • Loading branch information...
1 parent c5ed14e commit 8c17ccdf6adb0f486d420105d8f5a66abf2739ce @martian-a martian-a committed Oct 13, 2012
Showing with 17 additions and 3 deletions.
  1. +17 −3 filters/get_active_stations.xsl
@@ -19,9 +19,23 @@
<xsl:copy-of select="ancestor-or-self::osm/@version" />
<xsl:copy-of select="bounds" />
<xsl:apply-templates select="//node
- [tag[@k = 'railway'and @v = 'station']]
- [not(tag[@k = 'railway' and @v = 'abandoned'])]
- [not(tag[@k = 'disused' and @v = 'yes'])]
+ [
+ tag[
+ (@k = 'railway'and @v = 'station') or
+ (@k = 'building' and @v = 'train_station') or
+ (@k = 'site' and @v = 'railway_station')
+ ]
+ ]
+ [not(tag[@k = 'railway' and (
+ @v = 'abandoned' or
+ @v = 'disused' or
+ @v = 'disused_station' or
+ @v = 'former_station' or
+ @v = 'obliterated'
+
+ )])]
+ [not(tag[@k = 'disused' and @v != 'no'])]
+ [not(tag[@k = 'abandoned' and @v != 'no'])]
" />
</osm>
</xsl:document>

0 comments on commit 8c17ccd

Please sign in to comment.