deafrica_tools.areaofinterest
Function for defining an area of interest using either a point and buffer or a vector file.
Functions
|
Define an area of interest using either a point and buffer or separate latitude and longitude buffers, or a vector. |
- deafrica_tools.areaofinterest.define_area(lat: float = None, lon: float = None, buffer: float = None, lat_buffer: float = None, lon_buffer: float = None, vector_path: str = None) geojson.FeatureCollection
Define an area of interest using either a point and buffer or separate latitude and longitude buffers, or a vector.
Parameters:
- latfloat, optional
The latitude of the center point of the area of interest.
- lonfloat, optional
The longitude of the center point of the area of interest.
- bufferfloat, optional
The buffer around the center point, in degrees. This is used if separate latitude and longitude buffers are not provided.
- lat_bufferfloat, optional
The buffer around the center point, extending along the latitude, in degrees.
- lon_bufferfloat, optional
The buffer around the center point, extending along the longitude, in degrees.
- vector_pathstr, optional
The path to a vector defining the area of interest.
Returns:
- feature_collectionFeatureCollection
A GeoJSON feature collection representing the area of interest.