Accepts a &str (one-shot input) but uses a manual JSON state machine
internally to parse features one at a time. Memory peak is O(single feature)
rather than O(all features).
Parameters
input — A GeoJSON FeatureCollection string.
Returns
A LazyGeoJsonIter that you can call .nextFeature() on repeatedly.
Error
Returns JsValue error if the input is not valid JSON or not a FeatureCollection.
Create a lazy GeoJSON FeatureCollection iterator.
Accepts a
&str(one-shot input) but uses a manual JSON state machine internally to parse features one at a time. Memory peak is O(single feature) rather than O(all features).Parameters
input— A GeoJSON FeatureCollection string.Returns
A
LazyGeoJsonIterthat you can call.nextFeature()on repeatedly.Error
Returns
JsValueerror if the input is not valid JSON or not a FeatureCollection.