loadarea¶
OSM landuse extraction and load areas creation.
-
class
LoadArea
(dependencies)[source]¶ Bases:
egon.data.datasets.Dataset
Creates load area data based on OSM and census data.
- Dependencies
- Resulting tables
demand.egon_loadarea
is created and filled (no associated Python class)
Create and update the demand.egon_loadarea table with new data, based on OSM and census data. Among other things, area updates are carried out, smaller load areas are removed, center calculations are performed, and census data are added. Statistics for various OSM sectors are also calculated and inserted. See also documentation section Load areas for more information.
- Note: industrial demand contains:
- voltage levels 4-7
- only demand from ind. sites+osm located in LA!
-
name
= 'LoadArea'¶
-
version
= '0.0.1'¶
-
class
OsmLanduse
(dependencies)[source]¶ Bases:
egon.data.datasets.Dataset
OSM landuse extraction.
- Landuse data is extracted from OpenStreetMap: residential, retail, industrial, Agricultural
- Data is cut with German borders (VG 250), data outside is dropped
- Invalid geometries are fixed
- Results are stored in table openstreetmap.osm_landuse
- Note: industrial demand contains:
- voltage levels 4-7
- only demand from ind. sites+osm located in LA!
-
name
= 'OsmLanduse'¶
-
version
= '0.0.0'¶
-
class
OsmPolygonUrban
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
Class definition of table openstreetmap.osm_landuse.
-
area_ha
¶
-
geom
¶
-
id
¶
-
name
¶
-
osm_id
¶
-
sector
¶
-
sector_name
¶
-
vg250
¶
-
-
loadareas_create
()[source]¶ Create load areas from merged OSM landuse and census cells:
- Cut Loadarea with MV Griddistrict
- Identify and exclude Loadarea smaller than 100m².
- Generate Centre of Loadareas with Centroid and PointOnSurface.
- Calculate population from Census 2011.
- Cut all 4 OSM sectors with MV Griddistricts.
- Calculate statistics like NUTS and AGS code.
- Check for Loadareas without AGS code.