nismod / snail

spatial networks impact assessment library 🐌
https://nismod.github.io/snail/
MIT License
9 stars 1 forks source link

Test raster intersection with line segment external to grid #47

Open thomas-fred opened 2 years ago

thomas-fred commented 2 years ago

Write test case for lines that extend (or lie entirely) outside of raster grid area.

Expected behaviour: If a line is entirely outside the grid area, return the line unchanged (perhaps behaviour modifiable by flag). If a line is partly outside the grid area, split the line within the grid.