o

geotrellis.spark.distance

SparseEuclideanDistance

object SparseEuclideanDistance

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SparseEuclideanDistance
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply(pts: Array[Coordinate], geomExtent: Extent, ld: LayoutDefinition, tileCols: Int, tileRows: Int, cellType: CellType = DoubleConstantNoDataCellType)(implicit sc: SparkContext): RDD[(SpatialKey, Tile)]

    Generates a Euclidean distance tile RDD from a small collection of points.

    Generates a Euclidean distance tile RDD from a small collection of points.

    The standard EuclideanDistance object apply method is meant to build Euclidean distance tiles from a very large, dense set of points where the generation of the triangulation itself is a significant performance bottleneck (i.e., when the point set is 10s or 100s of millions strong or more). In the event that one wishes to generate a set of Euclidean distance tiles over a large area from a small or sparse set of points which would exhibit artifacts under the assumptions employed by the dense EuclideanDistance operator, this apply method will accomplish the desired end. Be aware, however, that if there are many points, this operation will have a lengthy runtime.