gis-tools-ts - v0.6.0
    Preparing search index...

    Class Node

    Node class contains a single node.

    Index

    Constructors

    • Parameters

      • primitiveBlock: PrimitiveBlock

        the primitive block to access keys and values

      • reader: OSMReader

        the OSM reader

      • Optionalpbf: PbfReader

        the Protobuf object to read from

      Returns Node

    Properties

    primitiveBlock: PrimitiveBlock

    the primitive block to access keys and values

    reader: OSMReader

    the OSM reader

    Methods

    • Returns BBox

      • the bounding box for this node
    • Check if the node is filterable

      Returns boolean

      • true if the node is filterable
    • Convert the node to a vector feature

      Returns VectorFeature<OSMMetadata, Properties, OSMProperties, VectorPointGeometry>

      • the vector feature
    • Gain access to the nodes geometry

      Returns VectorPoint

      • the vector feature
    • Create a node from a dense representation

      Parameters

      • id: number

        the node id

      • info: undefined | Info

        the node info

      • keys: number[]

        list of keys

      • vals: number[]

        list of values

      • lat: number

        the latitude

      • lon: number

        the longitude

      • pb: PrimitiveBlock

        the primitive block to access keys and values

      • reader: OSMReader

        the OSM reader

      Returns Node

      • the node