Skip to content

Commit

Permalink
Add Polygon example creation to README
Browse files Browse the repository at this point in the history
  • Loading branch information
InnovativeInventor committed Jun 15, 2021
1 parent f1d2263 commit 5e08668
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5e08668

Please sign in to comment.