arcpy

arcpy#

Functions

from_gdb_raster_to_rio_path(path_in_gdb)

Convert a raster stored in a gdb into a path readable by rasterio

gp_layer_to_path(layer)

Convert a GP layer to its source path.

init_arcgis_logger(curr_logger[, log_lvl])

Initialize a logger for tools running in the backend environment with run_in_conda_env function.

init_conda_arcpy_env()

Initialize conda environment with Arcgis Pro.

init_json_logger(curr_logger[, log_lvl])

Initialize a logger for tools running in the backend environment with run_in_conda_env function.

run_in_conda_env(executable[, logger_name, ...])

This function runs an executable thanks to conda run in a python subprocess.

run_in_conda_env_cli(cli_path, inputs, ...)

Run the given command line with the given inputs in a new conda environment.

Classes

ArcPyLogHandler(filename[, mode, maxBytes, ...])

Custom logging class that bounces messages to the arcpy tool window as well as reflecting back to the file.

ArcPyLogger([name, prefix_log_file])

Module Attributes

SHORT

'Short' type for ArcGis GDB

LONG

'Long' type for ArcGis GDB

FLOAT

'Float' type for ArcGis GDB

DOUBLE

'Double' type for ArcGis GDB

TEXT

"Text" type for ArcGis GDB

DATE

'Date' type for ArcGis GDB

AGP_ENVS

ArcGis Pro environments