murphy2712.nospam a écrit :
> Oui, et les roundabout avec oneway=yes/1/true ?
C'est fait :
<code>
if Tags.get("junction", None) == "roundabout" \
and Tags.get("oneway", None) in ["1", "yes", "true"]:
Rules.append(u"Tag inutile sur 'roundabout' (oneway)")
</code>
> On Thu, Feb 19, 2009 at 12:03, Eric Sibert <[email protected]
> <mailto:[email protected]>> wrote:
>
> Une suggestion pour l'analyseur:
>
> détecter les bridge/tunnel qui n'ont pas d'attribut layer.
C'est fait :
<code>
if "bridge" in Tags.keys() and "layer" not in Tags.keys():
Rules.append(u"Tag 'bridge' sans tag 'layer'")
if "tunnel" in Tags.keys() and "layer" not in Tags.keys():
Rules.append(u"Tag 'tunnel' sans tag 'layer'")
</code>
--
Etienne
_______________________________________________
Talk-fr mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/talk-fr