object SparseEuclideanDistance
- Alphabetic
- By Inheritance
- SparseEuclideanDistance
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
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.