I'm looking for a way to export an ArcGIS table (created with the Sample command) to a text file via arcpy. I can do this in ArcGIS via the context menu by right-clicking the table, but have not found a way to script this. Thanks, Toni
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
You can do this using a cursor to grab the data from your table and write to a comma-delimited text file. EDIT: I'm adding a more concise block of code to accomplish the task using the New Answer:
Old answer:
|
||||
|
You may want the "Export Feature Attribute to ASCII", cleverly named arcpy.ExportXYv_stats http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//005p0000003v000000
|
|||
|
|