Skip to content

Commit

Permalink
DOC: fix import in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Mar 13, 2024
1 parent 72a440d commit cbd784f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shapely/geometry/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class GeometryCollection(BaseMultipartGeometry):
--------
Create a GeometryCollection with a Point and a LineString
>>> from shapely import LineString, Point
>>> from shapely import GeometryCollection, LineString, Point
>>> p = Point(51, -1)
>>> l = LineString([(52, -1), (49, 2)])
>>> gc = GeometryCollection([p, l])
Expand Down
2 changes: 1 addition & 1 deletion shapely/geometry/multipoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MultiPoint(BaseMultipartGeometry):
--------
Construct a MultiPoint containing two Points
>>> from shapely import Point
>>> from shapely import MultiPoint
>>> ob = MultiPoint([[0.0, 0.0], [1.0, 2.0]])
>>> len(ob.geoms)
2
Expand Down
2 changes: 1 addition & 1 deletion shapely/geometry/multipolygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class MultiPolygon(BaseMultipartGeometry):
--------
Construct a MultiPolygon from a sequence of coordinate tuples
>>> from shapely import Polygon
>>> from shapely import MultiPolygon
>>> ob = MultiPolygon([
... (
... ((0.0, 0.0), (0.0, 1.0), (1.0, 1.0), (1.0, 0.0)),
Expand Down

0 comments on commit cbd784f

Please sign in to comment.