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.

Last Published: August 25, 2014 ArcGIS for Desktop
Bug ID Number NIM068776
SubmittedMay 27, 2011
Last ModifiedApril 28, 2025
Applies toArcGIS for Desktop
Version found10.0
StatusKnown Limit

Additional Information

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)

Steps to Reproduce

Bug ID: NIM068776

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options