https://github.com/caged/ndjson-filter-geo
https://github.com/caged/ndjson-filter-geo
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/caged/ndjson-filter-geo
- Owner: caged
- License: other
- Created: 2016-12-21T00:33:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-21T00:40:20.000Z (over 9 years ago)
- Last Synced: 2025-01-20T10:48:28.539Z (over 1 year ago)
- Language: JavaScript
- Size: 136 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
A hack on top of https://github.com/mbostock/ndjson-cli which filters features based on geometry intersections. Much of this lifted from the existing [ndjson-filter](https://github.com/mbostock/ndjson-cli/blob/master/ndjson-filter) implementation.
``` bash
cat test/grid.json \
| ./ndjson-filter-geo --feature <(cat test/oregon.json) 'intersects(d)' \
| ndjson-filter 'd.properties.UL_LAT > 46'
```