FGDB to Excel

38 views
Skip to first unread message

Lew

unread,
Oct 25, 2012, 12:27:20 PM10/25/12
to Python - ARCGIS geoprocessing
Hey pythoneers,

Does someone have a script for exporting from a FGDB tables to
Excel?

Currently, I write data from FGDB to PGDB first, then export to an
Excel table with an ODBC connection.

Thanks
Lew




pd3244

unread,
Oct 25, 2012, 1:07:11 PM10/25/12
to geop...@googlegroups.com, lew.gr...@gov.bc.ca
Have you tried 'import csv' module ? 
 

Greentree, Lew FLNR:EX

unread,
Oct 25, 2012, 1:23:53 PM10/25/12
to pd3244, geop...@googlegroups.com

Hi Doug,

 

Thank you for responding to my question.

 

Yes, I have used export to csv as an intermediate step when exporting from FGDB.  Just wondering if there is a more direct method.

 

Cheers,

Lew

tarkenton

unread,
Oct 29, 2012, 12:43:47 PM10/29/12
to geop...@googlegroups.com, lew.gr...@gov.bc.ca
Hey Lew

I wrote a module a while back called export2Excel.  The module is in the script warehouse under:
Utility_Misc\Ready\xlutils

For instructions on how to use it see:

I recommend using version 3 as it has been modified to put date fields into excel as dates as opposed to as strings.

Hope this helps

Kevin

Denis Potvin #5

unread,
Oct 30, 2012, 3:07:57 PM10/30/12
to geop...@googlegroups.com, lew.gr...@gov.bc.ca
Lew, I've used Kevin's script successfully without much stress
Reply all
Reply to author
Forward
0 new messages