laptop and a wrench

Error

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

Última publicación: August 25, 2014 ArcGIS for Desktop
Número de ID del error NIM068776
EnviadoMay 27, 2011
Última modificaciónApril 28, 2025
Relacionado conArcGIS for Desktop
Versión encontrada10.0
EstadoKnown Limit

Información adicional

Use floats instead of strings

Solución alternativa

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)

Pasos para reproducir

ID del error: NIM068776

Software:

  • ArcGIS for Desktop

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga