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

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,())) 
  }
})




© 2015 - 2024 Weber Informatics LLC | Privacy Policy