Commit 2e2b0d36 authored by Nicolas Garcia Ospina's avatar Nicolas Garcia Ospina
Browse files

Changed csv writer function no geometries

parent 1d607e77
Pipeline #24297 passed with stage
in 4 minutes and 33 seconds
...@@ -55,7 +55,7 @@ class FileProcessor: ...@@ -55,7 +55,7 @@ class FileProcessor:
tiles_gdf.to_csv(filepath_out, index=False) tiles_gdf.to_csv(filepath_out, index=False)
@staticmethod @staticmethod
def write_obm_tiles_to_csv(list_of_dictionaries, output_pathname): def write_tiles_to_csv_no_geom(list_of_dictionaries, output_pathname):
"""Write a csv file from a list of dictionaries without geometries. """Write a csv file from a list of dictionaries without geometries.
Args: Args:
......
...@@ -116,7 +116,7 @@ def multiprocess_built_estimation_batch(quadkey_batch): ...@@ -116,7 +116,7 @@ def multiprocess_built_estimation_batch(quadkey_batch):
if built_up_areas: if built_up_areas:
# Write output into a csv file # Write output into a csv file
FileProcessor.write_tiles_to_csv(built_up_areas, output_pathname) FileProcessor.write_tiles_to_csv_no_geom(built_up_areas, output_pathname)
del built_up_areas del built_up_areas
roads_database.connection.close() roads_database.connection.close()
...@@ -164,7 +164,7 @@ def multiprocess_buildings_batch(quadkey_batch): ...@@ -164,7 +164,7 @@ def multiprocess_buildings_batch(quadkey_batch):
if obm_built_up_areas: if obm_built_up_areas:
# Write output into a csv file # Write output into a csv file
FileProcessor.write_obm_tiles_to_csv( FileProcessor.write_tiles_to_csv_no_geom(
list_of_dictionaries=obm_built_up_areas, list_of_dictionaries=obm_built_up_areas,
output_pathname=obm_output_pathname, output_pathname=obm_output_pathname,
) )
......
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