From 22cf63a4405c61463db6efa998903f3329ba7de7 Mon Sep 17 00:00:00 2001 From: Toby Lorne Date: Wed, 29 Jul 2020 10:39:28 +0100 Subject: [PATCH] broadcast-areas: simple feature plots show points Signed-off-by: Toby Lorne --- .../broadcast_areas/plot-areas.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/notifications_utils/broadcast_areas/plot-areas.py b/notifications_utils/broadcast_areas/plot-areas.py index b1c76adea..77db88357 100755 --- a/notifications_utils/broadcast_areas/plot-areas.py +++ b/notifications_utils/broadcast_areas/plot-areas.py @@ -75,6 +75,22 @@ def main(): alpha=0.25, ) + ax.scatter( + [ + p[0] + for f in simple_features + for geom in (f.geoms if hasattr(f, 'geoms') else [f]) + for p in geom.exterior.coords + ], + [ + p[1] + for f in simple_features + for geom in (f.geoms if hasattr(f, 'geoms') else [f]) + for p in geom.exterior.coords + ], + transform=ccrs.PlateCarree(), + ) + plt.show()