[osm] adding airport polygon index

This commit is contained in:
Al
2017-01-11 04:25:54 -05:00
parent d528095984
commit 0d030a98c5
2 changed files with 18 additions and 0 deletions

View File

@@ -320,3 +320,8 @@ class OSMCountryPolygonReader(OSMPolygonReader):
class OSMPostalCodesPolygonReader(OSMPolygonReader):
def include_polygon(self, props):
return props.get('boundary') == 'postal_code'
class OSMAirportsPolygonReader(OSMPolygonReader):
def include_polygon(self, props):
return 'aerodrome' in props