我有一个带有多个文件夹的KML文件。我无法让Geopandas读取每个文件夹;我只能使用read_file(filename,driver =“ KML”)
来读取第一个文件夹import geopandas as gpd
import shapely
from shapely.geometry import Point, LineString, Polygon
import fiona
fiona.drvsupport.supported_drivers['kml'] = 'rw' # enable KML support which is disabled by default
fiona.drvsupport.supported_drivers['KML'] = 'rw'
gdf=gpd.read_file(r"C:\Users\Asad16\Desktop\Final_Maps.kml",driver="KML")
print(gdf)
我希望显示KML文件中的所有文件夹,而不仅仅是顶部文件夹。