Commit 45c5947d authored by Nicolas Garcia Ospina's avatar Nicolas Garcia Ospina
Browse files

Improved memory usage and removed geometry

parent 951cea46
Pipeline #24293 failed with stage
in 4 minutes and 14 seconds
......@@ -117,6 +117,7 @@ def multiprocess_built_estimation_batch(quadkey_batch):
if built_up_areas:
# Write output into a csv file
FileProcessor.write_tiles_to_csv(built_up_areas, output_pathname)
del built_up_areas
......@@ -167,6 +168,7 @@ def multiprocess_buildings_batch(quadkey_batch):
del obm_built_up_areas
......@@ -278,7 +278,6 @@ class TileProcessor:
quadkey (str): Tile quadkey
source_id (int): Integer associated to a predefined method
built_area (str): Polygon string projected to WGS84 coordinates.
built_area_size (float): Area measured in squared meters.
last_update (str): Date when the pickle was generated.
......@@ -302,7 +301,7 @@ class TileProcessor:
results = {
"quadkey": tile.quadkey,
"source_id": datasource.source_id,
"built_area": TileProcessor.reproject_polygon(built_polygon,, "epsg:4326"),
#"built_area": TileProcessor.reproject_polygon(built_polygon,, "epsg:4326"),
"built_area_size": TileProcessor.albers_area_calculation(built_polygon,,
"last_update": str(,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment