omniscale / imposm3

Imposm imports OpenStreetMap data into PostGIS
http://imposm.org/docs/imposm3/latest/
Apache License 2.0
725 stars 159 forks source link

Multiple keys for column (fallback/coalesce like) #64

Open Geosynopsis opened 9 years ago

Geosynopsis commented 9 years ago

In the mapping file example, each column have one key. Only on the mapping there are options to include for more than one key. Is there any way to include more than one key for one column for example like; ..... }, { "type": "string", "name": "startdate", "key": [ "start_date", "start" ] }, {......

ImreSamu commented 9 years ago

According to my best knowledge:

                {
                    "type": "hstore_tags",
                    "name": "tags",
                    "key": null
                }
zakjan commented 8 years ago

@ImreSamu I guess the question in this issue is more focused on providing fallback keys, instead of storing them all. For example:

{
    "type": "string",
    "name": "name",
    "key": ["name:en", "name"]
}

This field should prefer english names to local names. Is it possible?

ImreSamu commented 8 years ago

@zakjan

This field should prefer english names to local names. Is it possible?

to the best of my knowledge: