wasm-spatial-core
    Preparing search index...

    Function parseGeoJsonLazy

    • 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).

      • input — A GeoJSON FeatureCollection string.

      A LazyGeoJsonIter that you can call .nextFeature() on repeatedly.

      Returns JsValue error if the input is not valid JSON or not a FeatureCollection.

      Parameters

      • input: string

      Returns LazyGeoJsonIter