Modules#
fetching data#
to get the shape conrdinate#
To retrieve the coordinates of the shape,
you can use the fetch_data.get_polygon() function:
- fetch.get_polygon(polygon: str)#
Return a list of random ingredients as strings.
- Parameters:
kind (str) – the shape of the polygon.
- Returns:
boundary and coordinates of the polygon.
- Return type:
tuple, str
to get the pipeline#
To get the pipeline,
you can use the fetch_data.get_pipeline() function:
- fetch.get_pipeline(polygon_input: str, region: str)#
Return a json file with all the information.
- Parameters:
kind (str, str) – the polygon coordinate, the region of the area
- Returns:
json file.
- Return type:
json
to get the elevation of the ground#
To retrieve the elevation of the ground,
you can use the fetch_data.get_elevation() function:
- fetch.get_polygon(bounds: str, polygon_str: str, region: str)#
Return a dataframe with the elevation and coordinate as a columns.
- Parameters:
kind (str, str, str) – the boumdaries, the shape of the polygon, the region of the area
- Returns:
dataframe.
- Return type:
df
to process it all in one#
To do all the above fuctions and get list of elevation of coordinates,
you can use the fetch_data.fetch() function:
- fetch.fetch(polygon_str: str, region: str)#
Return a lists of dataframe.
- Parameters:
kind (str, str) – the shape of the polygon, the region of the area
- Returns:
a list of elevations.
- Return type:
list