OsmNode

References
public class OsmNode
Immutable OSM node.

Properties

Id

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

Point

#
public Point3d Point { get; }
Gets the location for this node. x = longitude in degrees, y = latitude in degrees, z = elevation in meters.

TagCount

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

Tags

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

Methods

GetHashCode

#
public override int GetHashCode()
Gets the hash of this node.

Move

#
public OsmNode Move(Point3d position)
Move this point to a new position.
position (Point3d)New position.
New node.

Move

#
public OsmNode Move(Vector3d motion)
Move this point by a specific vector.
motion (Vector3d)Motion vector.
New node.

ParseXmlNode

#
public static OsmNode ParseXmlNode(XmlNode node, ValidateTagName validateTag)
Parse an xml node representing an OSM node.
node (XmlNode)Node to parse.
validateTag (ValidateTagName)Tag validator.
PArsed node or null.

RemoveTags

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

ToString

#
public override string ToString()
Convert this node into a string.
Object.ToString