degauss-org / roads

DeGAUSS container that calculates distance to nearest roadway and length of roadways within buffer for S1100 and S1200 roads
http://degauss.org/roads/
GNU General Public License v3.0
0 stars 0 forks source link

length_1200 = 1 for all rows when buffer >= 800 #7

Closed erikarasnick closed 1 year ago

erikarasnick commented 1 year ago

Kelly sent me an example file and I was able to reproduce the error. Values look normal for 400 m and 700 m buffer, but length_1200 is 1 for all rows with 700 m and 800 m buffers.

erikarasnick commented 1 year ago

add test for larger buffers to GHA

erikarasnick commented 1 year ago

The logic I wrote for when buffers have zero road length vs non zero road length in incorrect, causing all lengths to be 1 when every row has a buffer with non-zero road length.

Screen Shot 2023-01-19 at 5 26 20 PM

PR with fix to come...