Skip to content

[BUG]: Segment Iterator is flawed, may fail if input contains 0-length geometry #1055

Closed

Description

Version

23.04

On which installation method(s) does this occur?

No response

Describe the issue

Currently, multilinestring_range::segment_begin() require that the input doesn't include empty geometries. Such as:

geometry offset: 0, 1, 2
part offset: 0, 0, 2
Coords: (0, 0) (1, 1)

A complete solution require counting the number of skipped geometries prior to current linestring, and it would require tracking the result in an owning object, which is not what *_range designed to do.

Minimum reproducible example

No response

Relevant log output

No response

Environment details

No response

Other/Misc.

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

  • Status

    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions