Create pseudo code authored by Laurens Jozef Nicolaas Oostwegel's avatar Laurens Jozef Nicolaas Oostwegel
### Pseudo-code of Entity-Initializer
```
if country is not complete:
geoms = get_settlement_layer_geoms()
for geom in geoms:
area = calculate_area(geom)
quadkey = get_quadkey(geom)
insert_tile_entity(geom, area, quadkey)
for building_dataset in building_datasets:
source_id = get_source_id(building_dataset)
for building_id, geom in building_dataset:
intersect_flag = intersect_with_other_source(geom, source_id)
quadkey, attributes, taxonomy = run_rabotnik_rules(building_id, geom)
if not intersect_flag:
insert_building_entity(building_id, geom, quadkey, attributes, taxonomy)
if intersect_flag:
update_intersecting_buildings(geom, attributes, taxonomy)
```
\ No newline at end of file