gpf_pyramide_raster.core module¶
Main module logic.
- gpf_pyramide_raster.core.check_layer_exists(layer_name: str, harvest_url: str, harvest_extras: str) bool ¶
Fonction qui appelle le géoservice WMS pour vérifier qu’un layer existe.
- Renvoie:
existance de l’offre
- Type renvoyé:
bool
- gpf_pyramide_raster.core.generate_output(params: GpfOrchestratorParameters, processing_type: str)¶
Génère un élément output dans les paramètres d’entrée
- Paramètres:
params (GpfOrchestratorParameters) – paramètres du fichier de configuration
processing_type (str) – type de traitement
- gpf_pyramide_raster.core.import_upload(params: GpfOrchestratorParameters, upload_dir: Path) dict | None ¶
Importe les données depuis le dossier upload
- Paramètres:
params (GpfOrchestratorParameters) – paramètres du fichier de configuration
upload_dir (Path) – dossier upload
- Renvoie:
Statut de l’étape d’import de données
- Type renvoyé:
Status
- gpf_pyramide_raster.core.run(work_dir: Path, upload_dir_name: str = 'upload', params: GpfOrchestratorParameters | None = None, step: str = 'PREGENERATION', step_number: int = 0, processing_type: str = 'RASTER') Status ¶
Main function running the logic.
- Paramètres:
work_dir (Path) – Input working directory. The folder must exist.
upload_dir_name (str, optional) – Name (not the path) of the upload directory. Defaults to « upload ».
params (GpfOrchestratorParameters, optional) – parameters from the configuration file. Defaults to None.
step (str, optional) – Step of the process of raster pyramid generation, such as: « PREGENERATION », « GENERATION » and « FINISHER ». Defaults to « PREGENERATION ».
step_number (int, optional) – Step number. Defaults to 0.
processing_type (str, optional) – Processing type. Defaults to « RASTER ».
- Renvoie:
Status of the whole processing
- Type renvoyé:
Status
- gpf_pyramide_raster.core.run_finisher(work_dir: Path) Status ¶
Lance un script de type FINISHER
- Paramètres:
work_dir (Path) – dossier de travail
- Renvoie:
Statut à l’issue du lancement du script
- Type renvoyé:
Status
- gpf_pyramide_raster.core.run_script(work_dir: Path, step_number: int) Status ¶
Lance un script de type GENERATION
- Paramètres:
work_dir (Path) – dossier de travail
step_number (int) – numéro de l’étape
- Renvoie:
Statut à l’issue du lancement du script
- Type renvoyé:
Status