public class OsmWay
Immutable OSM way.

Properties

Entity

#
public OsmEntity Entity { get; }
Gets the entity represented by this way.

FirstNode

#
public long FirstNode { get; }
Gets the first node id.

Id

#
public long Id { get; }
Gets the Id for this node.

IsArea

#
public bool IsArea { get; }
Gets whether this way represents an area.

IsClosed

#
public bool IsClosed { get; }
Gets whether this way has closed topology. Closed ways start and end with the same node id.

LastNode

#
public long LastNode { get; }
Gets the last node id.

NodeCount

#
public int NodeCount { get; }
Gets the number of nodes for this way.

Nodes

#
public IEnumerable<long> Nodes { get; }
Enumerates over all nodes.

TagCount

#
public int TagCount { get; }
Gets the number of tags stored on this way.

Tags

#
public IEnumerable<OsmTag> Tags { get; }
Enumerate all the tags associated with this way.

Methods

Merge

#
public static OsmWay Merge(OsmWay wayA, OsmWay wayB, bool includeATags, bool includeBTags)
Merge two ways.
wayA (OsmWay)First way to merge.
wayB (OsmWay)Second way to merge.
includeATags (bool)If true, all tags from way A are included.
includeBTags (bool)If true, all tags from way B are included, except those that conflict with wayA tags.
Merged way.

ParseXmlNode

#
public static OsmWay ParseXmlNode(XmlNode node, ValidateTagName validateTag)
Parse an xml node representing an OSM way.
node (XmlNode)Node to parse.
validateTag (ValidateTagName)Tag name validation delegate.
Parsed way .

RemoveTags

#
public OsmWay RemoveTags(IEnumerable<OsmTag> tags)
Remove all tags that match the set.
tags (IEnumerable<OsmTag>)Tags to remove.
Modified way or the same way if no tags were removed.

ToString

#
public override string ToString()
Gets a description of this way.
Object.ToString