Class Merge

    • Constructor Detail

      • Merge

        public Merge(OsmOutputStream output,
                     Collection<OsmIterator> inputs)
        Merge the elements from a collection of OSM input sources to a single OSM output. The merging algorithm expects the input data to be in default order, i.e. a sequence of nodes, followed by a sequence of ways, followed by a sequence of relations. Each sequence ordered by their object's identifiers.
        Parameters:
        output - am OsmOutputStream to write data to.
        inputs - a collection of iterators to retrieve data from.
      • Merge

        public Merge(OsmOutputStream output,
                     Collection<OsmIterator> inputs,
                     Comparator<OsmEntity> comparator)
        Merge the elements from a collection of OSM input sources to a single OSM output. The merging algorithm expects the input data to be in default order, i.e. a sequence of nodes, followed by a sequence of ways, followed by a sequence of relations. Each sequence ordered using the specified comparator.
        Parameters:
        output - am OsmOutputStream to write data to.
        inputs - a collection of iterators to retrieve data from.
        comparator - a Comparator used to compare elements of the same type.
      • Merge

        public Merge(OsmOutputStream output,
                     Collection<OsmIterator> inputs,
                     Comparator<? super OsmNode> comparatorNodes,
                     Comparator<? super OsmWay> comparatorWays,
                     Comparator<? super OsmRelation> comparatorRelations)
        Merge the elements from a collection of OSM input sources to a single OSM output. The merging algorithm expects the input data to be in default order, i.e. a sequence of nodes, followed by a sequence of ways, followed by a sequence of relations. Each sequence ordered using the respective specified comparator.
        Parameters:
        output - am OsmOutputStream to write data to.
        inputs - a collection of iterators to retrieve data from.
        comparatorNodes - a Comparator used to compare nodes.
        comparatorWays - a Comparator used to compare ways.
        comparatorRelations - a Comparator used to compare relations.