Apply SQL-like filters to GeoJSON feature collections in memory or via streams. v2.6.0 is the last standalone release; development has moved to @koopjs/winnow in the Koop monorepo. Supports WHERE clauses, spatial predicates (ST_Within, ST_Contains, ST_Intersects), field selection, aggregations (sum, avg, count, max, min, first, last), group by, limit/offset, ordering, CRS reprojection, and Esri feature output. Ships TypeScript types.
npm install winnowNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Queries a GeoJSON FeatureCollection with a WHERE clause, field selection, and ordering, printing the filtered result.
npm uninstall winnow && npm install @koopjs/winnow and update imports to '@koopjs/winnow'.
Use winnow.query(data, options) instead of instantiating Winnow.
Use import or dynamic import(). For CommonJS projects, consider @koopjs/winnow which supports CJS.
Use 'outputCrs' instead of 'projection'.
Use @terraformer/arcgis or esri-to-geojson packages for conversion.
Use 'import winnow from "winnow"' or switch to @koopjs/winnow.
Ensure correct import: `import winnow from 'winnow'`. Also check that winnow.query exists (v2+).
Use one of the supported spatial predicates: ST_Within, ST_Contains, ST_Intersects, esriSpatialRelWithin, esriSpatialRelContains, esriSpatialRelIntersects.
Use only supported aggregate types: 'sum', 'avg', 'count', 'max', 'min', 'first', 'last'.