[OSM-dev] tag implication database/library
Imre Samu
pella.samu at gmail.com
Fri Nov 25 00:26:47 UTC 2016
>Is there some way of doing this just once; for example with some parseable
implication database, and library?
>...
>1. normalizing a database before usage, for example changing
> "highway=ford" to "ford=yes" and moving to modern lifecycle tags
The iD Editor has some JSON metadata about this ..
see : https://github.com/openstreetmap/iD/blob/master/data/deprecated.json
example:
{
"old": { "highway": "ford" },
"replace": {
"ford": "yes"
}
},
{
"old": { "highway": "stile" },
"replace": {
"barrier": "stile"
}
},
{
"old": { "highway": "incline" },
"replace": {
"highway": "road",
"incline": "up"
}
},
[ + Wiki deprecated list :
https://wiki.openstreetmap.org/wiki/Deprecated_features ]
And the iD Editor has a lot of presets metadata :
For example: Homeless Shelter === amenity=social_facility +
social_facility=shelter + social_facility:for=homeless
https://github.com/openstreetmap/iD/blob/master/data/presets/presets/amenity/social_facility/homeless_shelter.json
{
"fields": [
"operator",
"address",
"building_area",
"opening_hours",
"wheelchair",
"social_facility_for",
"internet_access",
"internet_access/fee",
"internet_access/ssid"
],
"geometry": [
"point",
"area"
],
"terms": [
"houseless",
"unhoused",
"displaced"
],
"tags": {
"amenity": "social_facility",
"social_facility": "shelter",
"social_facility:for": "homeless"
},
"name": "Homeless Shelter"
}
Imho:
- The only problem, that they only accept general tags, for general mappers
.. ( see https://github.com/openstreetmap/iD/pull/3600 )
Probably the other editors has a similar metadata ..
Best,
Imre
2016-11-17 11:51 GMT+01:00 Per Eric Rosén <per at rosnix.net>:
> Hi!
>
> I have been making a few maps and applications using OSM data, mostly
> stored in postgis. In all cases, I have had to make custom carto rules /
> database post-processing / application rules to compensate for multiple
> ways of expressing the same information in OSM. Also, in some cases,
> for taking care of which tag implies which information.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20161125/11c4d01f/attachment-0001.html>
More information about the dev
mailing list