zensus_vg250

class DestatisZensusPopulationPerHa(**kwargs)[source]

Bases: Base

geom
geom_point
grid_id
id
population
x_mp
y_mp
class DestatisZensusPopulationPerHaInsideGermany(**kwargs)[source]

Bases: Base

geom
geom_point
grid_id
id
population
class MapZensusVg250(**kwargs)[source]

Bases: Base

vg250_municipality_id
vg250_nuts3
zensus_geom
zensus_population_id
class Vg250Gem(**kwargs)[source]

Bases: Base

ade
ags
ags_0
ars
ars_0
bem
bez
bsg
debkg_id
fk_s3
gen
geometry
gf
ibz
id
nbd
nuts
rs
rs_0
sdv_ars
sdv_rs
sn_g
sn_k
sn_l
sn_r
sn_v1
sn_v2
wsk
class Vg250GemPopulation(**kwargs)[source]

Bases: Base

ags_0
area_ha
area_km2
bem
bez
cell_count
gen
geom
id
nuts
population_density
population_total
rs_0
class Vg250Sta(**kwargs)[source]

Bases: Base

ade
ags
ags_0
ars
ars_0
bem
bez
bsg
debkg_id
fk_s3
gen
geometry
gf
ibz
id
nbd
nuts
rs
rs_0
sdv_ars
sdv_rs
sn_g
sn_k
sn_l
sn_r
sn_v1
sn_v2
wsk
class ZensusVg250(dependencies)[source]

Bases: Dataset

name: str = 'ZensusVg250'

The name of the Dataset

sources: DatasetSources = DatasetSources(tables={'zensus_population': 'society.destatis_zensus_population_per_ha', 'vg250_municipalities': 'boundaries.vg250_gem', 'map_zensus_vg250': 'boundaries.egon_map_zensus_vg250'}, files={}, urls={'vg250_original_data': 'https://daten.gdz.bkg.bund.de/produkte/vg/vg250_ebenen_0101/2020/vg250_01-01.geo84.shape.ebenen.zip'})

The sources used by the datasets. Could be tables, files and urls

targets: DatasetTargets = DatasetTargets(tables={'map': 'boundaries.egon_map_zensus_vg250', 'zensus_inside_germany': 'society.destatis_zensus_population_per_ha_inside_germany', 'vg250_gem_population': 'boundaries.vg250_gem_population'}, files={})

The targets created by the datasets. Could be tables and files

version: str = '0.0.5'

The Dataset’s version. Can be anything from a simple semantic versioning string like “2.1.3”, to a more complex string, like for example “2021-01-01.schleswig-holstein.0” for OpenStreetMap data. Note that the latter encodes the Dataset’s date, region and a sequential number in case the data changes without the date or region changing, for example due to implementation changes.

add_metadata_vg250_gem_pop()[source]

Create metadata JSON for Vg250GemPopulation

Creates a metdadata JSON string and writes it to the database table comment

add_metadata_vg250_zensus()[source]
add_metadata_zensus_inside_ger()[source]

Create metadata JSON for DestatisZensusPopulationPerHaInsideGermany

Creates a metdadata JSON string and writes it to the database table comment

inside_germany()[source]

Filter zensus data by data inside Germany and population > 0

map_zensus_vg250()[source]

Perform mapping between municipalities and zensus grid

population_in_municipalities()[source]

Create table of municipalities with information about population