Skip to content

Commit 07e09d4

Browse files
authored
counter clockwise coordinate order of polygons (#199)
1 parent 503cf1a commit 07e09d4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

workshop/jupyter/content/notebooks/02-geometry.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
"outputs": [],
204204
"source": [
205205
"from shapely.geometry import Polygon\n",
206-
"polygon = Polygon([(0, 0), (3, 4), (3, 0)])\n",
206+
"polygon = Polygon([(0, 0), (3, 0), (3, 4)])\n",
207207
"polygon"
208208
]
209209
},
@@ -372,7 +372,7 @@
372372
},
373373
"outputs": [],
374374
"source": [
375-
"polygon = Polygon([(0, 0), (3, 4), (3, 0)])\n",
375+
"polygon = Polygon([(0, 0), (3, 0), (3, 4)])\n",
376376
"polygon.contains(Point(0.5, 0.5))"
377377
]
378378
},
@@ -426,7 +426,7 @@
426426
},
427427
"outputs": [],
428428
"source": [
429-
"polygon = Polygon([(1, 1), (1,2), (2,2), (2,1)])\n",
429+
"polygon = Polygon([(1, 1), (2,1), (2,2), (1,2)])\n",
430430
"ls3 = LineString([(0, 0), (3,3)])\n",
431431
"print(polygon.intersection(ls3))"
432432
]

0 commit comments

Comments
 (0)