0
data = geopandas.read_file(path_filename,driver='kml')

数据,我收到错误:

不支持的驱动程序:“KML”

4

1 回答 1

0
gd.io.file.fiona.drvsupport.supported_drivers['kml'] = 'rw'
gd.io.file.fiona.drvsupport.supported_drivers['KML'] = 'rw'
gd.io.file.fiona.drvsupport.supported_drivers['LIBKML'] = 'rw'
fiona.drvsupport.supported_drivers['kml'] = 'rw'  # enable KML support which is disabled by default
fiona.drvsupport.supported_drivers['KML'] = 'rw'  # enable KML support which is disabled by default
fiona.drvsupport.supported_drivers['LIBKML'] = 'rw'  # enable KML support which is disabled by default

有时将 kml 添加到支持的驱动程序列表中是可行的。

于 2021-09-28T16:57:30.917 回答