Class AllNodesVisitor

    • Method Detail

      • visit

        public void visit​(Relation e)
        Relations may have any number of nodes. FIXME: do we want to collect nodes from segs/ways that are relation members? if so, use AutomatchVisitor!
        Specified by:
        visit in interface OsmPrimitiveVisitor
        Parameters:
        e - The relation to inspect.
      • getAllNodes

        public static Collection<NodegetAllNodes​(Collection<? extends OsmPrimitive> osms)
        Replies all nodes contained by the given primitives
        Parameters:
        osms - The OSM primitives to inspect
        Returns:
        All nodes the given primitives have.