
vectorpipe.util.Implicits.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.util
import geotrellis.vector._
import _root_.io.circe._
import scala.reflect.ClassTag
object Implicits extends Implicits
trait Implicits extends RobustFeatureFormats {
implicit class RobustFeaturesToGeoJson[G <: Geometry: ClassTag, D: Encoder](features: Traversable[RobustFeature[G, D]]) {
def toGeoJson(): String = {
val fc = new JsonRobustFeatureCollection
features.foreach(fc.add(_))
fc.asJson.noSpaces
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy