wolfhece.pywalous

Author: HECE - University of Liege, Pierre Archambeau Date: 2024

Copyright (c) 2024 University of Liege. All rights reserved.

This script and its content are protected by copyright law. Unauthorized copying or distribution of this file, via any medium, is strictly prohibited.

Module Contents

wolfhece.pywalous.WALOUS_MAJ_NIV1[source]
wolfhece.pywalous.WALOUS_MAJ_NIV2[source]
wolfhece.pywalous.WALOUS_COLORMAP_MAJ_NIV1[source]
wolfhece.pywalous.WALOUS_COLORMAP_MAJ_NIV2[source]
wolfhece.pywalous.get_palette_walous(which: Literal[MAJ_NIV1, MAJ_NIV2]) wolfhece.PyPalette.wolfpalette[source]

Get the palette for WALOUS

:return : palette

wolfhece.pywalous.update_palette_walous(which: Literal[MAJ_NIV1, MAJ_NIV2], pal: wolfhece.PyPalette.wolfpalette)[source]

Update the palette for WALOUS MAJ_NIV1

:param pal : palette to update :return : updated palette

wolfhece.pywalous.WALOUS2MANNING_MAJ_NIV1[source]
wolfhece.pywalous.WALOUS2MANNING_MAJ_NIV2[source]
class wolfhece.pywalous.Walous_data(dir_data: str = '', fn: str = 'WAL_UTS__2018_L72', bounds: list[float, float, float, float] | list[list[float, float], list[float, float]] = None)[source]

La donnée Walous est liée à l’utilisation des sols en Wallonie

source : https://geoportail.wallonie.be/walous

Cette classe permet la manipulation de la donnée dans le cadre du projet MODREC et plus spécifiquement la distribution d’un coefficient de frottement sur base de la donnée Walous.

read(force: bool = False, bounds: list[float, float, float, float] | list[list[float, float], list[float, float]] = None)[source]

Read data from file

:param force : force to read even read was done before :param bounds : [xmin, ymin, xmax, ymax] or [[xmin, xmax], [ymin, ymax]]

write(fnout: str = 'out_clip.shp')[source]

Write _gdf to file

:param fnout : output filename

to_file(fn: str = 'out_clip.shp')[source]

Alias to write

:param fn : output filename

rasterize(bounds: list[float, float, float, float] | list[list[float, float], list[float, float]], layer: Literal[MAJ_NIV1, MAJ_NIV2] = 'MAJ_NIV1', fn_out: str = 'out.tif', pixel_size: float = 0.5, NoData_value: float = -99999.0, num_type=gdal.GDT_Float32)[source]

Rasterization of polygon data to tif

:param bounds : [xmin, ymin, xmax, ymax] or [[xmin, xmax], [ymin, ymax]] :param layer : layer to rasterize :param fn_out : output filename :param pixel_size : pixel size :param NoData_value : NoData value :param num_type : type of the number

class wolfhece.pywalous.DlgMapWalous(parent, title: str = _('Mapping WALOUS value to ...'), which: str = 'MAJ_NIV1')[source]

Bases: wx.Dialog

Inheritance diagram of wolfhece.pywalous.DlgMapWalous

Modal dialog for mapping WALOUS value to another ones

on_ok(event)[source]
on_cancel(event)[source]
get_mapping() dict[source]
class wolfhece.pywalous.WalousLegend(*args, **kw)[source]

Bases: wx.Dialog

Inheritance diagram of wolfhece.pywalous.WalousLegend

Show the legend of WALOUS

close()[source]