public class OsmWay
Immutable OSM way.

Properties

Entity

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

FirstNode

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

Id

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

IsArea

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

IsClosed

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

LastNode

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

NodeCount

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

Nodes

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

TagCount

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

Tags

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

Methods

Merge

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

ParseXmlNode

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

RemoveTags

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

ToString

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