gdal 2.1 Rasterize

笑着哭i 提交于 2019-12-01 18:29:53

This has been fixed in GDAL 2.1.3. Previously the data type was hard-coded and not exposed in the Python bindings. See https://trac.osgeo.org/gdal/ticket/6710.

If you are in gdal 2.1.2, use gdal.RasterizeOptions() as if you were using it on the command line:

opts_str = '-ot Byte'
rast_opts = gdal.RasterizeOptions(options=opts_str)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!