ES:Claves homónimas
Si comprendes el artículo original en inglés, por favor, ayuda a completar esta traducción al español. Lee las instrucciones sobre cómo traducir este wiki.
Parece que nadie está trabajando en la traducción en este momento. Anímate y colabora en la tarea de traducción.
Unas claves tienen un propósito o tipo de dato distinto según la etiqueta primaria del elemento. En otros casos, una clave homónima puede tiene los sentidos diferentes cuando se ha aplicado en nodos y vías. Estos conflictos ocurren frecuentemente cuando usamos los esquemas de "refinamiento iterativo" junto con las palabras que son homónimas en el idioma inglés.
Lista de las claves homónimas
Homónimas en inglés
branch=*
- cuando se usa con
amenity=bank;restaurant;fuel
,shop=*
– el nombre de la sucursal (store branch) - cuando se usa con
railway=*
– el nombre del ramal ferroviario (branch line)
- cuando se usa con
line=*
service=*
subject=*
,subject:wikidata=*
Refinar la característica contra algo tangencial
admin_level=*
- cuando se usa con
boundary=*
– el nivel administrativo de la frontera sí misma - cuando se usa con
government=*
– el nivel administrativo del entidad gubernamental que administra la característica
- cuando se usa con
distance=*
- cuando se usa con
highway=milestone
– la distancia por el camino denotada en el hito - cuando se usa con las relaciones
route
– la distancia total de la ruta
- cuando se usa con
min_height=*
- cuando se usa con
attraction=*
– la estatura (height) mínima de los pasajeros - cuando se usa con
building=*
– la altura (height) sobre el suelo en que el edificio empieza
- cuando se usa con
Contenemiento contra refinamiento
bench=*
emergency=*
- cuando se usa como una etiqueta primaria de una característica – the kind of public safety feature
- cuando se usa con
highway=*
– whether emergency vehicles are allowed
junction=*
- cuando se usa como una etiqueta primaria de una característica – whether two or more ways form a junction at the node
- cuando se usa con
highway=*
– the kind of junction
kerb=*
- cuando se usa como una etiqueta primaria de una característica – the kind of kerb
- cuando se usa con
crossing=*
– whether there is a kerb at either end of the crossing
swimming_pool=*
- cuando se usa con
leisure=fitness_centre
,tourism=hotel
– whether a swimming pool is available on-site - cuando se usa con
leisure=swimming_pool
– the kind of swimming pool
- cuando se usa con
Formatos distintos
construction=*
- cuando se usa con
building=construction
,highway=construction
,landuse=construction
,railway=construction
– the value is what will be moved to the primary key once construction is complete - cuando se usa con otras etiquetas primarias – the entire primary tag is namespaced, e.g.
construction:amenity=*
- cuando se usa con
direction=*
- cuando se usa con
highway=mini_roundabout
– the direction of rotation - cuando se usa con
highway=stop;traffic_signals
,traffic_sign=*
(as a node on a way) – the direction of traffic along the way to which the feature applies - cuando se usa con
route=road
– the signposted cardinal direction of travel along the subrelation - cuando se usa con las relaciones
manoeuvre
– a relative turning direction - cuando se usa con otras etiquetas primarias – an absolute direction
- cuando se usa con
network=*
- cuando se usa con
amenity=atm
,amenity=bicycle_rental
– the name of an organization that coordinates operation in various locations - cuando se usa con
route=road;bus;train
etc. – an identifier for a coherent system of routes, typically based on the containing region's region code - cuando se usa con
route=bicycle;hiking;mtb
etc. – the route's scope
- cuando se usa con
symbol=*
Otros matices
bus=*
- cuando se usa con
amenity=bus_station
,highway=bus_stop
,public_transport=*
– whether the facility is designed for buses - cuando se usa con
highway=motorway;tertiary;service
etc. – whether buses are allowed
- cuando se usa con
capacity=*
- cuando se usa con
amenity=fuel;parking;taxi
– the number of vehicles the facility can accommodate at a time - cuando se usa con
amenity=kindergarten;school
– the number of students the facility can enroll at a time - cuando se usa con
leisure=stadium
,amenity=shelter
,room=*
– the maximum (standing or seating) occupancy - cuando se usa con
tourism=camp_site
, but nottourism=hotel
– the number of visitors the facility can accommodate at a time
- cuando se usa con
destination=*
- cuando se usa con
highway=motorway_link;trunk_link;primary_link
etc. – the signposted names of the places to which the road leads - cuando se usa con
waterway=*
– the name of the body of water into which the waterway flows, not necessarily signposted
- cuando se usa con
tower:type=*
type=*
- cuando se aplica en una relación – the technical type of relation
- cuando se usa con varias etiquetas primarias de características – the type of aerodrome, reservoir, tree, etc.
Desventajas
An editor's developers may find it difficult to implement a field for a key that has a homonym associated with a different preset, especially if the homonymous keys have different data types or acceptable values. iD's fields suggest likely values based on taginfo lists of most common values by key. Since taginfo does not segment these lists by primary feature tag, irrelevant suggestions may appear.
If an element is tagged with multiple feature tags and each feature tag can potentially be used with a different homonym, a renderer or other data consumer may produce inconsistent, nondeterministic, or nonsensical results. For example, if a feature is simultaneously tagged building=yes
and attraction=carousel
, min_height=*
may indicate either the height of the space beneath the carousel (if it sits on an elevated structure) or the minimum height required to ride the carousel. Indeed, every renderer that conforms to the Simple 3D buildings specification inaccurately depicts 161214224 161214224 floating above the ground. A renderer may need to ignore the tag when set to a typical child height, which may be neither desirable nor feasible.
As an extreme example, various uses of type=*
had to be deprecated in favor of other keys because it was impossible to indicate the type of a reservoir etc. that is mapped as a multipolygon, which requires type=multipolygon
.
Mitigación
Some tagging schemes have made use of namespaces, subkeys, or more descriptive keys to avoid key conflicts. For example, construction=*
is now used as a namespace to quality most feature tags; its use as a key only continues with certain feature keys that are unlikely to be tagged on the same feature. aerodrome=*
replaced type=*
on aeroway=aerodrome
features, making it possible to map an airport as a multipolygon relation. man_made=flagpole
features are tagged flag:type=*
and potentially tower:type=*
.
Some mappers avoid tagging multiple primary feature tags on a single feature, instead mapping multiple features to represent the same physical object. However, this approach can violate the "One feature, one OSM element" principle.