Skip to content

How do I overlay a line (e.g. Shapely LineString) onto a plot? #3456

Closed Answered by ocoudert
ocoudert asked this question in Q&A
Discussion options

You must be logged in to vote

The error in the code above is that geometry should be specified as a list. The geometry attribute is expecting a collection of shapes.
The fix is simple:

linePlt.geometry = [lineShape]

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ocoudert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant