Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have many separate field data files in CSV format and I wish to automatically convert these CSV files into a geodatabase to be able to load them into a schema I created for them in my new ArcSDE enterprise database. The SDE version is 10.1. I am able to do this manually in ArcGIS but I have over 500 files to complete and so I do need a script will automate it for me.

I would be glad to have the output in a form of a feature class. I do not have an existing output dataset besides the ones I did manually, it needs to be created from scratch using the CSV files as input dataset.

I appreciate any help I can get from here and thank you very much for your consideration and time.

share|improve this question
More info please... What code have you got so far? What version of ArcGIS are you using? Or are you trying to load using the file geodatabase API via OGR? Your title states "file geodatabase", but the question body specifies SDE. Which is it? – Luke Jun 19 '12 at 1:35
More questions: Is the desired output a feature class or a standalone table? Does the output dataset already exist and you simply want to append rows into it, or must it be created from scratch? Posting a sample from your CSV file would also be very helpful. – blah238 Jun 19 '12 at 1:37

Please have a look at the Copy Rows geoprocessing tool.

The code can be as simple as the following:

import arcpy
arcpy.CopyRows_management("C:/data/vegtable.csv", "C:/output/output.gdb/vegtable")
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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