python-rasterstats icon indicating copy to clipboard operation
python-rasterstats copied to clipboard

Missing Feature with line-delimited input

Open indus opened this issue 4 years ago • 0 comments

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:

  1. How did you install rasterstats and its dependencies? On Windows in a conda enviroment using the cli tool / rio plugin
  1. 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 id and _mean property of the first and last feature you see they are the same; id 80f3fffffffffff the last of the input is missing in the output)

  2. 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

indus avatar Nov 03 '21 10:11 indus