Skip to main content
`Ctrl`+`K`

# ng911ok.lib.datachanges module

`datachanges.py` – ArcGIS Python Toolbox Tool “datachanges.py”

## Notes

synopsis:

  Functions and Classes that perform changes to data and/or schema or assist changes.

Functions Include: create_std_gdb, assign_domain_to_gdb, user_fc_to_std_fc, get_road_range_by_parity

Classes Include: FullNameCalculator, FullAddrCalculator, SubmitCalculator,

ParityCalculator, RCLValuesCalculator, MSAGCommCalculator, TypeDirectionConverter, SpaceFixer, DomainFixer, CalculateConvertFixImplementer

authors:

  Riley Baird (OK), Emma Baker (OK)

created:

  August 02, 2024

modified:

  January 06, 2025

class CalculateConvertFixImplementer(param_list: list[Parameter], analysis_dict: dict[str, str], tool_variant_full_list: list[str])

  Bases: `object`

  implement_analysis()

class DefaultCalculator(std_gdb_path, fc_name_list, field_list)

  Bases: `object`

  execute_calculation()

class DomainFixer(std_gdb_path, fc_name_list)

  Bases: `object`

  execute_fixes()

class ESNtoESZESBFCsImplementer(std_gdb_path, esn_fc, assign_switch, nguid_field, fc_dict)

  Bases: `object`

  check_for_feature_class(fc_name: str | LiteralString)
  check_for_standard_dataset()
  dissolve_esn(fc_path, fc_dict, diss_field)
  execute_split()
  fix_esz_fc(fc_path)
  fix_missing_std_and_extra_fields(fc_path, fc)
  fix_nguid_values(fc_path, fc)
  fix_user_fields_to_fc_fields(fc_path, fc_dict, fc)
  property output_ems_path: str
  property output_esz_path: str
  property output_fire_path: str
  property output_law_path: str

class FullAddrCalculator(std_gdb_path, variant_list)

  Bases: `object`

  execute_calculation()

class FullNameCalculator(std_gdb_path, fc_name_list, variant_list)

  Bases: `object`

  execute_calculation()

class LevelFixer(std_gdb_path, field_list)

  Bases: `object`

  execute_fixes()

class MSAGCommCalculator(std_gdb_path, fc_name_list)

  Bases: `object`

  execute_calculation()
  msag_fields_per_fc_determiner(fc_name) -> (list[[<class 'str'>]], list[[typing.Optional[str]]], list[[<class 'str'>]], list[[<class 'str'>]])

class NullToNCalculator(std_gdb_path, fc_name_list)

  Bases: `object`

  execute_calculation()

class ParityCalculator(std_gdb_path)

  Bases: `object`

  execute_calculation()

class RCLValuesCalculator(std_gdb_path)

  Bases: `object`

  execute_calculation()
  get_road_range_by_parity(df, parity_name, from_name, to_name) → Series

class SpaceFixer(std_gdb_path, fc_name_list)

  Bases: `object`

  execute_fixes()

class StandardFeatureClassCreation(gdb_path: str, std_fc_name: str)

  Bases: `object`

  append_data_to_std_fc(user_fc_path: str, field_map_dict: dict[str, str])
  create_blank_fc(std_fc_geom: str) → str | None
  user_to_std_field_mapping(user_fc_path: str | None, field_map_dict: dict[str, str] | None = None) → str | None

class StandardGeodatabaseCreation(folder_path, gdb_name)

  Bases: `object`

  assign_domain_to_gdb()
  create_std_datasets(dataset_name, gdb_sr: SpatialReference)
  create_std_gdb(gdb_sr: SpatialReference)

class TypeDirectionConverter(std_gdb_path, fc_name_list, analysis_type, tool_option_list, parameter_tool_variant_list)

  Bases: `object`

  execute_conversion()

field_calculator(fc: NG911FeatureClass, target_field: NG911Field)