laptop and a wrench

漏洞

Creating geometry with InsertCursor produces incorrect output, when Windows region and language settings (German) are set to use comma as a decimal delimiter.

上次发布: August 25, 2014 ArcGIS for Desktop
漏洞 ID 编号 NIM068776
已提交May 27, 2011
上次修改时间April 28, 2025
适用范围ArcGIS for Desktop
找到的版本10.0
状态Known Limit

附加信息

Use floats instead of strings

解决办法

Use floats instead of strings. In the workflow included, it would be more direct to use the original floats, instead of concatenating them into a string, and then later spliting them out and using them as strings.Below is a modified chunk of the code that uses the float directly. The 2 modified lines are notedfor rec in tabCur: lochID = rec.getValue(lochField) punktNr=punktNr + 1 lPath.append([punktNr, rec.getValue(xField), rec.getValue(yField), rec.getValue(zField)]) #modifiedarcpy.AddMessage("Create 3D-Line of hole " + str(lochID) + " ...")lineArray = arcpy.Array()pnt = arcpy.Point()for pt in lPath: <a href="http://pnt.ID" target="_blank">pnt.ID</a>, pnt.X, pnt.Y, pnt.Z = pt #modified lineArray.add(pnt)

重现步骤

漏洞 ID: NIM068776

软件:

  • ArcGIS for Desktop

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项