geotrellis.io.LoadWKT.scala Maven / Gradle / Ivy
The newest version!
package geotrellis.io
import com.vividsolutions.jts.io.WKTReader
import geotrellis._
import geotrellis.process._
import geotrellis.feature.Feature
/**
* Reads feature data from a string of Well Known Text data.
*/
case class LoadWkt(wkt:String) extends Op1(wkt) ({
(wkt:String) => {
val jtsGeom = new WKTReader().read(wkt)
Result(Feature(jtsGeom,()))
}
})