Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split_linestrings raises RuntimeError with specific example #61

Closed
tomalrussell opened this issue May 24, 2024 · 0 comments
Closed

split_linestrings raises RuntimeError with specific example #61

tomalrussell opened this issue May 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tomalrussell
Copy link
Member

With line:

LINESTRING (415805.57 430046.95, 415800 430015, 415810.18 429959.41, 415814.15 429937.72, 415815.48 429884.19, 415812.89 429871.1)

and grid:

GridDefinition(
    crs=CRS.from_epsg(27700), 
    width=120163, 
    height=259542, 
    transform=(5.0, 0.0, 54675.0, 0.0, -5.0, 1217320.0)
)

snail.core.intersections.split_linestring raises this error:

RuntimeError: Unexpected points while splitting line:
  start(415806,430047)
  end(415800,430015)
  run: -5.57
  rise: -31.95
  pE(-5.57,-31.95) length 32.4319
  pN(-5.57,-31.95) length 32.4319
@tomalrussell tomalrussell added the bug Something isn't working label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant