Missing Feature with line-delimited input
Describe the bug When using a sequences of line-delimited Features as input the last Feature in the output is identical to the first, but the correct last Feature is missing.
To Reproduce Steps to reproduce the behavior:
- How did you install rasterstats and its dependencies? On Windows in a conda enviroment using the cli tool / rio plugin
-
What datasets are necessary to reproduce the bug? Please provide links to example data if necessary. the vectorfile input any rasterfile (global coverage to fit the vectorfile); not so easy to provide due to licence the vectorfile output (when you compare the
idand_meanproperty of the first and last feature you see they are the same; id80f3fffffffffffthe last of the input is missing in the output) -
What code is necessary to reproduce the bug? Provide the code directly below or provide links to it.
cat .\h3_res0_seq_split.json | rio zonalstats --stats mean -r .\any_global.nc --sequence | out-file -encoding utf8 ./test_rio6.json