All Downloads are FREE. Search and download functionalities are using the official Maven repository.

geotrellis.vector.io.WKB.Implicits.scala Maven / Gradle / Ivy

Go to download

GeoTrellis is an open source geographic data processing engine for high performance applications.

There is a newer version: 0.10.3
Show newest version
package geotrellis.vector.io.wkb

import geotrellis.util.MethodExtensions
import geotrellis.vector._

object Implicits extends Implicits

trait Implicits {
  implicit class WKBWrapper(val self: Geometry) extends MethodExtensions[Geometry] {
    def toWKB(srid: Int = 0): Array[Byte] =
      WKB.write(self, srid)
  }

  implicit class WKBArrayWrapper(val self: Array[Byte]) extends MethodExtensions[Array[Byte]] {
    def readWKB(): Geometry =
      WKB.read(self)
  }

  implicit class WKHexStringWrapper(val self: String) extends MethodExtensions[String] {
    def readWKB(): Geometry =
      WKB.read(self)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy