gpf_pub_agent_road2.core module#

Specific to Road2.

exception gpf_pub_agent_road2.core.SubprocessRunException#

Bases : Exception

gpf_pub_agent_road2.core.configure_r2gg(work_dir: Path, road2_service_dir: Path, road2_graph_data_dir: Path, configuration: dict, pgr_infos: PGRoutingInfos, road2_db_pool_size: Optional[int] = None) Status#

Create configuration for r2gg

Paramètres:
  • work_dir (Path) – Input working directory. Must exists.

  • road2_service_dir (Path) – dossier contenant les fichiers de configuration pour Road2

  • road2_graph_data_dir (Path) – dossier contenant les données de graphes partagé par tout les endpoint

  • configuration (dict) – Configuration received when endpoint is created.

  • pgr_infos (PGRoutingInfos) – Username/Password for PGRouting database.

  • road2_db_pool_size (int, optional) – taille du pool de connection dans le service Road2

Renvoie:

Status of configuration creation

Type renvoyé:

Status

gpf_pub_agent_road2.core.run_r2gg_road2_config(work_dir: Path) None#

Run r2gg-road2config with previously created configuration file

Raises SubprocessRunException if an error occurs

Paramètres:

work_dir (Path) – Input working directory. The folder must exist.