Class Node

All Implemented Interfaces:
Comparable<IPrimitive>, ILatLon, IQuadBucketType, IFilterablePrimitive, INode, IPrimitive, PrimitiveId, Stylable, Tagged, TemplateEngineDataProvider

public final class Node extends OsmPrimitive implements INode
One node data, consisting of one world coordinate waypoint.
  • Field Details

  • Constructor Details

    • Node

      Node(long id, boolean allowNegative)
    • Node

      public Node()
      Constructs a new local Node with id 0.
    • Node

      public Node(long id)
      Constructs an incomplete Node object with the given id.
      Parameters:
      id - The id. Must be >= 0
      Throws:
      IllegalArgumentException - if id < 0
    • Node

      public Node(long id, int version)
      Constructs a new Node with the given id and version.
      Parameters:
      id - The id. Must be >= 0
      version - The version
      Throws:
      IllegalArgumentException - if id < 0
    • Node

      public Node(Node clone, boolean clearMetadata)
      Constructs an identical clone of the argument.
      Parameters:
      clone - The node to clone
      clearMetadata - If true, clears the OSM id and other metadata as defined by OsmPrimitive.clearOsmMetadata(). If false, does nothing
    • Node

      public Node(Node clone)
      Constructs an identical clone of the argument (including the id).
      Parameters:
      clone - The node to clone, including its id
    • Node

      public Node(LatLon latlon)
      Constructs a new Node with the given lat/lon with id 0.
      Parameters:
      latlon - The LatLon coordinates
    • Node

      public Node(EastNorth eastNorth)
      Constructs a new Node with the given east/north with id 0.
      Parameters:
      eastNorth - The EastNorth coordinates
  • Method Details