class file_handler.FileHandler
This is a class fof fetching 3DEP data
Args:
bounds: the boundary for the location. regions: the region the location found. output_filename: the output filename the function returns to. public_access_path: the public url the data is found on s3 server.
Returns:
the json file.
Raises:
RuntimeError: if something goes wrong.
read_csv(csv_path, missing_values=['n/a', 'na', 'undefined'])
Args:
self: child of Filehandler. csv_path: the read file it will be opened. missing_values: the missing values.
Returns:
the OUTPUT file.
Raises:
RuntimeError: if something goes wrong.
read_json(json_path)
Args:
self: child of Filehandler. json_path: the read file it will be opened.
Returns:
the OUTPUT file.
Raises:
RuntimeError: if something goes wrong.
to_csv(df, csv_path, index=False)
Args:
self: child of Filehandler. df: the dataframef. csv_path: the output file it will be saved. index: indeX.
Returns:
the OUTPUT file.
Raises:
RuntimeError: if something goes wrong.
class TestCases.get_raster_terrain
Args:
bounds: the boundary for the location.
regions: the region the location found.
output_filename: the output filename the function returns to.
public_access_path: the public url the data is found on s3 server.
Returns:
the json file.
Raises:
RuntimeError: if something goes wrong.