Skip to content

Modulo GeoData

join_year_census(data_path, year, remove_processed=False, only_shared=True, output_path=None)

Generazione di un unico GeoDataFrame che unisce dati e geodati censuari per l'anno selezionato.

PARAMETER DESCRIPTION
data_path

Union[Path, PosixPath]

TYPE: Union[Path, PosixPath]

year

int

TYPE: int

remove_processed

bool

TYPE: bool DEFAULT: False

only_shared

bool

TYPE: bool DEFAULT: True

output_path

Union[Path, PosixPath]

TYPE: Union[Path, PosixPath] DEFAULT: None

RETURNS DESCRIPTION
Union[Path, PosixPath, GeoDataFrame]

Union[Path, PosixPath, GeoDataFrame]

read_geodata(geodata_path)

Lettura del geodato. La funzione incapsula la funzione di lettura di GeoPandas ma andrà successivamente sviuppata per rendere più rapida la lettura dei dati.

PARAMETER DESCRIPTION
geodata_path

Union[Path, PosixPath]

TYPE: Union[Path, PosixPath]

RETURNS DESCRIPTION
GeoDataFrame

GeoDataFrame

read_raw_census_geodata(data_path, year, output_path=None)

Lettura di tutti i geodati censuari grezzi per anno e creazione di un unico GeoDataFrame.

PARAMETER DESCRIPTION
data_path

Union[Path, PosixPath]

TYPE: Union[Path, PosixPath]

year

int

TYPE: int

output_path

Union[Path, PosixPath]

TYPE: Union[Path, PosixPath] DEFAULT: None

RETURNS DESCRIPTION
Union[Path, PosixPath, GeoDataFrame]

Union[Path, PosixPath, GeoDataFrame]

read_raw_geodata(data_path, year)

Lettura del singolo geodato censuario grezzo e pulizia topologica delle geometrie.

PARAMETER DESCRIPTION
data_path

Union[Path, PosixPath]

TYPE: Union[Path, PosixPath]

year

int

TYPE: int

RETURNS DESCRIPTION
GeoDataFrame

GeoDataFrame