Voici la documentation : https://geoplateforme.pages.gpf-tech.ign.fr/documentation

Skip to content
Extraits de code Groupes Projets

fix(IGNGPF-2221): fix encoding problem

Fusionnées DHIA EDDINE MAGHRAOUI a demandé de fusionner fix/IGNGPF-2221 vers main
Fichiers
2
@@ -332,11 +332,12 @@ def add_style(
"""
try:
with open(style_path) as f:
geoserver.create_style(
name=style_name, data=f.read(), workspace=workspace_name
)
data = f.read().encode("utf-8")
geoserver.create_style(name=style_name, data=data, workspace=workspace_name)
return Status.OK
except UnicodeEncodeError as e:
logger.error(f"add_style - Failed to encode with utf-8 encoding | {e}")
return Status.ERROR
except Exception as e:
logger.error(f"add_style - {e}")
return Status.ERROR
Chargement en cours