关于“Python光栅API创建tiles”的回答 https://knowledge.亚搏在线safe.com/questions/66057/python-raster-api-create-tiles.html “Python光栅API创建tiles”问题的最新答案 答案由隆 https://knowledge.亚搏在线safe.com/answers/66069/view.html

@jdhgetmaxvalue()或getMinValue()方法返回一个具体平铺类的实例,您可以通过该实例的特殊数据成员_class__获取该类。是这样的。

tileClass = band.getMaxValue ()。__class__ tile = tileClass(numTileRows, numTileCols) bandData= band.getTile(0, 0, tile).getData()
注意FMEBand。getTile method requires start row index and start column index in the cells matrix of the band from where the tile should be created, as its first and second parameters.您的设置(numTileRows、numTilCols)可能会生成一个超出边界的平铺。
2018年3月15日星期四22:39:09格林尼治时间