GeoArea
Let the user select a polygon.
Reference type: dasf_exb.input_models.GeoArea
Usage
from dasf_exb.input_models import GeoArea
def get_area_info(
area: GeoArea,
) -> str:
return ("The following area has been selected:\n" "Points:\n") + "\n".join(
f"lon: {p.lon}\nlat: {p.lat}" for p in area.points
)
The GeoArea is essentially the same as a list of GeoLocation
(i.e. List[GeoLocation]), just that it let’s the user select multiple points
which will then be visualized on the map.