评论和答案的“光栅分区统计” https://knowledge.亚搏在线safe.com/questions/71615/raster-zonal-statistics.html 最新的评论和答案的问题“栅格分区统计” 通过JDH评论 https://knowledge.亚搏在线safe.com/comments/71621/view.html 此外,这个想法投票https://knowledge.safe.com/conten亚搏在线t/idea/22245/spatial-statistics-on-raster-data.html
并添加注释,你也希望看到一个直方图。

周五,2018年6月1日16时58分32秒GMT JDH
通过JDH回答 https://knowledge.亚搏在线safe.com/answers/71620/view.html

通常情况下,以获得最佳的方式从栅格统计的是强制的点云,并使用PointCloudStatisticsCalculator(如集线器上的RasterStatisticsCalculator一样)。不幸的是,不像常规statisticsCalculator,该PointCloudStatisticsCalculator不必生成柱状图的选项。

这使得两个选项,使用PointCloudCoercer转向矢量点(快于RasterCellCoercer,但仍然繁琐),或使用Python API栅格。

不幸的是,我不能分享我的Python代码,但我可以说,我用numpy.ma创建掩蔽阵列(由无数据值掩蔽)和numpy.bincount得到直方图值。

为了把它转换成带状统计,夹在多边形区域(即具有唯一的ID)光栅,创建直方图,featureMerge返回到纬向多边形由UNIQUEID。

周五,2018年6月1日16点47分三十○秒GMT JDH