小编use*_*395的帖子

Geotrellis,获取落在多边形网格Rdd中的点

我需要计算落在多边形网格中的点的平均值.

就像条件Polyogon.contains(点)加入一对多

//In:
val pointValueRdd : RDD[Feature[Point,Double]] 

val squareGridRdd : RDD[Feature[Polygon]]

//Needed Out:

val squareGridRdd : RDD[Feature[Polygon,(accum:Double,count:Int)]]
//or
val squareGridRdd : RDD[Feature[Polygon,average:Double]]
Run Code Online (Sandbox Code Playgroud)

有可能使用一些四叉树索引吗?

我读到:剪辑到网格,但如果它是正确的工具,我不会.

http://geotrellis.readthedocs.io/en/latest/guide/vectors.html#cliptogrid

下一个图像显示蓝色网格和点

在此输入图像描述

我们欢迎一些建议

geotrellis

5
推荐指数
1
解决办法
335
查看次数

标签 统计

geotrellis ×1