如何修复ArcGIS Pro中的KMLToLayer工具引发的“未找到表。[多面体]”错误?

时间:2019-05-21 21:16:40

标签: arcgis arcpy

我正在尝试在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文件只有PlacemarksLine Paths,但是从错误消息看来,该工具也在寻找PolygonsMultipatches。有趣的是,该工具可以像我期望的那样同时使用file geodatabasepoint要素类生成预期的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")

0 个答案:

没有答案