我正在尝试在KMLToLayer
内的Python
代码块中运行ArcGIS Pro中的RStudio
工具,但是我不断遇到以下错误:
The table was not found. [Multipatches]
The table was not found. [Polygons]
Failed to delete raster dataset
Failed to execute (KMLToLayer).
我尝试转换的KMZ
文件只有Placemarks
和Line Paths
,但是从错误消息看来,该工具也在寻找Polygons
和Multipatches
。有趣的是,该工具可以像我期望的那样同时使用file geodatabase
和point
要素类生成预期的line
,但是它仍然会抛出错误消息!我无法理解出了什么问题。如果社区中的任何人在使用该工具时遇到了类似的问题,并且能够对其进行分类,请您指导我做同样的事情吗?
这是我用于转换的代码:
# r.getwd() is simply a hack to get workspace path with forward slashes on Windows
spatial_path = r.getwd() + "/Results/SpatialFiles"
kmz_file = "StopIntersectionListSortedByDrvFreq.kmz"
arcpy.conversion.KMLToLayer(in_kml_file = spatial_path + "/" + kmz_file,
output_folder = spatial_path,
output_data = "StopIntersections")