I am trying to load a geofabrick .bz2 file into a file geodatabase using the OSM Simple Loader tool from http://arcscripts.esri.com/details.asp?dbid=15137 However it fails each time at this line:
frow.setValue("Node_ID",node.encode("Latin-1","replace")) The error message is:
Runtime Error 999999: "the value type is incompatible with the field type Node_ID"
Unfortunately I am not familiar with python so am not able to attempt a fix for this error. I am working with arc 10.2 and this was written for arc 9.2.
Hopefully someone can shed some light on this.
Here is the block of code
elif element=='/node' and hasvalidtags and ftype==0:
#done with node lets load its shape frow = nodecursor.newrow() nodepnt.x=float(node) nodepnt.y=float(node) **frow.setValue("Node_ID",node.encode("Latin-1","replace"))** for f in standardFields: frow.setValue(f,'') for sTag in ftags: frow.setValue(sTag,str(sTag)) frow.SetValue('shape', nodepnt) #Load the shape nodecursor.insertrow(frow) taggednodecount+=1 hasvalidtags=False