
vectorpipe.util.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vectorpipe_2.11 Show documentation
Show all versions of vectorpipe_2.11 Show documentation
Import OSM data and output to VectorTiles with GeoTrellis.
The newest version!
package vectorpipe
package object util extends Implicits {
def mergeMaps[K, V](m1: Map[K, V], m2: Map[K, V])(f: (V, V) => V): Map[K, V] =
(m1.toSeq ++ m2.toSeq).
groupBy(_._1).
map { case (k, vs) =>
(k, vs.map(_._2).reduce(f))
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy