omniscale / imposm2

Imports OpenStreetMap data into geo databases
http://imposm.org
Apache License 2.0
116 stars 24 forks source link

Towers #29

Open milovanderlinden opened 11 years ago

milovanderlinden commented 11 years ago

Hi,

In our imposm configuration for basemaps I am currently adding a layer for towers since they are such dominant landmarks that they can be used for orientation.

For this I have added the following definition that I will also use in basemaps. Can these be made available in defaultmapping.py?

class Towers(Points):
    fields = (
        ('man_made', String()),
        ('height', String()),
        ('tower:type', String()),
        ('tower:construction', String()),
        ('ref', String()),
        ('ele', String()),
        ('access', String()),
        ('source', String()),
    )

towers = Towers(
    name='towers',
    mapping = {
        'man_made': (
            'lighthouse',
            'mast',
            'tower',
            'water_tower',
        )
    ),
})
milovanderlinden commented 11 years ago

Plus one minor tweak:

towers = Towers(
    name='towers',
    mapping = {
        'man_made': (
            'lighthouse',
            'mast',
            'tower',
            'water_tower',
            'communications_tower',
        )
    ),
})