1
parcelsFC = os.path.join('temp.gdb',JsonDirectoryLocation)

arcpy.JSONToFeatures_conversion(parcelsFC)

Created gdb with above code.

How can I add attributes to gdb with another JSON file?

  • The code that you have presented does not create a geodatabase. – PolyGeo Aug 6 at 19:55
2

You need to specify an output feature class.

parcelsFC = os.path.join('temp.gdb',JsonDirectoryLocation)
outFc = os.path.join ("temp.gdb", "JsonFeatures")
arcpy.JSONToFeatures_conversion(parcelsFC, outFc)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.