laptop and a wrench

Bug

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

Zuletzt veröffentlicht: August 25, 2014 ArcGIS for Desktop
Bug-ID-Nummer NIM068776
EingereichtMay 27, 2011
Zuletzt geändertApril 28, 2025
Gilt fürArcGIS for Desktop
Gefunden in Version10.0
StatusKnown Limit

Zusätzliche Informationen

Use floats instead of strings

Workaround

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)

Schritte zur Reproduzierung

Bug-ID: NIM068776

Software:

  • ArcGIS for Desktop

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln