colawater.toolbox.dump_to_csv.tool#

Contains the functions used by the Dump to CSV tool and other helper functions.

Module Contents#

Functions#

execute(→ None)

Entry point for Dump to CSV.

parameters(→ list[arcpy.Parameter])

Returns the parameters for Dump to CSV.

dump_to_csv(→ List[pathlib.Path])

Dump attribute table of layers in input_layers to CSVs in dest_dir.

colawater.toolbox.dump_to_csv.tool.execute(parameters: list[arcpy.Parameter]) None#

Entry point for Dump to CSV.

Dumps full attribute tables of input layers to CSV files in the target directory.

Parameters:

parameters (list[arcpy.Parameter]) – The list of parameters.

colawater.toolbox.dump_to_csv.tool.parameters() list[arcpy.Parameter]#

Returns the parameters for Dump to CSV.

Parameters are of type GPFeatureLayer multivalue and DEFolder.

Returns:

The list of parameters.

Return type:

list[arcpy.Parameter]

colawater.toolbox.dump_to_csv.tool.dump_to_csv(input_layers: List[Any], dest_dir: pathlib.Path) List[pathlib.Path]#

Dump attribute table of layers in input_layers to CSVs in dest_dir.

Parameters:
  • input_layers (List[Any]) – List of input items supported by Export Table. (These types are private in ArcPy or hard-to-find, hence the Any annotation)

  • dest_dir (Path) – Destination directory for exported files.

Returns:

List of paths to the exported files.

Return type:

List[Path]