From e2f19e36471bd5ac7f7b6d71ebca0ba5a9df7f73 Mon Sep 17 00:00:00 2001 From: anitagraser Date: Sun, 7 Feb 2021 14:15:58 +0100 Subject: [PATCH] Docstring improvements --- logo/ogdatlab.svg | 85 ----------------------------------- notebooks/utils/converting.py | 2 +- notebooks/utils/dataaccess.py | 2 +- notebooks/utils/plotting.py | 10 +++++ 4 files changed, 12 insertions(+), 87 deletions(-) delete mode 100644 logo/ogdatlab.svg diff --git a/logo/ogdatlab.svg b/logo/ogdatlab.svg deleted file mode 100644 index 9ea7e23..0000000 --- a/logo/ogdatlab.svg +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - - - image/svg+xml - - - - - - - OGD.AT Lab - - diff --git a/notebooks/utils/converting.py b/notebooks/utils/converting.py index e6cce6e..5d5bb4a 100644 --- a/notebooks/utils/converting.py +++ b/notebooks/utils/converting.py @@ -8,7 +8,7 @@ def location_to_gdf(location, address=None): Parameters ---------- - location : GeoPy.Location + location : geopy.Location Location info to be used as the GeoDataFrame geometry address : string Optional address string to be stored in the GeoDataFrame column 'address' diff --git a/notebooks/utils/dataaccess.py b/notebooks/utils/dataaccess.py index 1962d11..1180208 100644 --- a/notebooks/utils/dataaccess.py +++ b/notebooks/utils/dataaccess.py @@ -25,7 +25,7 @@ def get_elevation(point): Parameters ---------- - point : Shapely Point + point : shapely.Point Point in EPSG:3857 """ x = point.x diff --git a/notebooks/utils/plotting.py b/notebooks/utils/plotting.py index b95921d..0d47f7c 100644 --- a/notebooks/utils/plotting.py +++ b/notebooks/utils/plotting.py @@ -1,4 +1,14 @@ def hvplot_with_buffer(gdf, buffer_size, *args, **kwargs): + """ + Convenience function for plotting a GeoPandas point GeoDataFrame using point markers plus buffer polygons + + Parameters + ---------- + gdf : geopandas.Geodataframe + point GeoDataFrame to plot + buffer_size : numeric + size of the buffer in meters (measured in EPSG:31287) + """ buffered = gdf.to_crs('epsg:31287').buffer(buffer_size) buffered = gdf.copy().set_geometry(buffered).to_crs('epsg:4326')