Contents

有关几种使用python裁剪矢量数据的方式和速度

例子:用中国边界裁剪MODIS Collection6火点数据(一年,点,shp)

通过QGIS或命令调用ogr2ogr来裁剪Vector都极慢,切一次几十分钟,QGIS自带方法只需几秒

如何使用CEOS加速的clip

  1. fiona读入,提取shapely的geometry,循环所有geometry执行intersection,把geometry放回去https://www.hatarilabs.com/ih-en/how-to-clip-polygon-layers-with-python-fiona-and-shapely-tutorial。
  2. 或,使用geopandas>0.7 https://geopandas.org/gallery/plot_clip.html