我正在尝试使用ogr2ogr
python中的函数编写一些脚本:
convertstring = 'ogr2ogr -f r"GeoJSON" r"Output.GeoJson" -select * -where "layer = building" r"' + filepath+'"'
os.system(convertstring)
但我不断收到此错误:
失败:无法使用以下驱动程序打开数据源“myApp.py”。
这有点奇怪 - myApp.py 是我正在运行的应用程序,因此无需打开它,我也没有要求它打开它。任何帮助都非常感谢。