我需要计算落在多边形网格中的点的平均值.
就像条件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 ×1