From 5e086687822f8e677c599ea8eb68c1befadb233c Mon Sep 17 00:00:00 2001 From: Max Fan Date: Tue, 15 Jun 2021 16:24:42 -0400 Subject: [PATCH] Add Polygon example creation to README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 916ea4b..059fca4 100644 --- a/README.md +++ b/README.md @@ -260,6 +260,12 @@ First, we'll use `shapely` to create the polygons from scratch: ```python from shapely.geometry import Polygon +geometries = geopandas.GeoSeries([ + Polygon([(0, 0), (2, 0), (2, 1), (1, 1), (1, 2), (0, 2)]), + Polygon([(2, 0), (4, 0), (4, 2), (2, 2)]), + Polygon([(0, 2), (2, 2), (2, 4), (0, 4)]), + Polygon([(2, 1), (4, 1), (4, 4), (2, 4)]), +]) ``` Now we'll close the gap: