Skip to content

Commit

Permalink
DOC: Fix docstring for get_coordinates (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmyatt committed Apr 13, 2021
1 parent dc86064 commit 0455cf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pygeos/coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def get_coordinates(geometry, include_z=False, return_index=False):
[[0.0, 0.0, 0.0]]
When return_index=True, indexes are returned also:
>>> geometries = [Geometry("LINESTRING (2 2, 4 4)"), Geometry("POINT (0 0)")]
>>> coordinates, index = get_coordinates(geometries, return_index=True)
>>> coordinates.tolist(), index.tolist()
Expand Down

0 comments on commit 0455cf6

Please sign in to comment.