You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- Could you share a reproductible example ? In my case if i use unary_union on a separated MultiLinestring, it stays a MultiLinestringMagic Mushroom– Magic Mushroom2024-01-25 18:21:58 +00:00Commented Jan 25, 2024 at 18:21
- @MagicMushroom I added the example the end of my questionAndreas– Andreas2024-01-25 18:34:29 +00:00Commented Jan 25, 2024 at 18:34
- In my opinion, th issue comes from the last part of the MultiLineString. If you separate every part of the MLS and ask of intersects or touches, the last (part 5) part will return a False with the 4th part. And you can figure out that part 4 and part 2 are actually the same.Magic Mushroom– Magic Mushroom2024-01-26 09:08:40 +00:00Commented Jan 26, 2024 at 9:08
- Do you have any idea why shapely.intersection produces a MultiLineString at all? The given LineString should not be cut into a MultiLineString by the intersection. I added an image to the question how the given LineString looks like (blue line). I guess the problem has something to do with the line going back and forth the same way and that some points on the way back are exactly the same as on the way forward? When I provide a line to shapely.intersection that has no duplicate points everything is fine, it generates a simple LineString!Andreas– Andreas2024-01-26 09:15:23 +00:00Commented Jan 26, 2024 at 9:15
Add a comment |
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. arcgis-desktop), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-py