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

geotrellis.feature.op.geometry.GetCentroid.scala Maven / Gradle / Ivy

The newest version!
package geotrellis.feature.op.geometry

import geotrellis._
import geotrellis.feature._

/**
 * Computes the centroid of this geometry.
 */
case class GetCentroid[A](f:Op[Geometry[A]]) extends Op1(f) ({
  (f) => Result(f.mapGeom(_.getCentroid))
})





© 2015 - 2024 Weber Informatics LLC | Privacy Policy