{"id":19208300,"url":"https://github.com/boydjohnson/ndjson-spatial","last_synced_at":"2025-10-10T12:01:59.004Z","repository":{"id":46647513,"uuid":"186032531","full_name":"boydjohnson/ndjson-spatial","owner":"boydjohnson","description":"Tools for working with ndjson, turning geojson into ndjson, spatial tools","archived":false,"fork":false,"pushed_at":"2023-01-28T02:31:56.000Z","size":118,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T07:14:34.902Z","etag":null,"topics":["ndjson","spatial","spatial-data-science"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boydjohnson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-10T17:57:40.000Z","updated_at":"2021-11-24T12:02:44.000Z","dependencies_parsed_at":"2023-02-15T14:01:44.670Z","dependency_job_id":null,"html_url":"https://github.com/boydjohnson/ndjson-spatial","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/boydjohnson/ndjson-spatial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boydjohnson%2Fndjson-spatial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boydjohnson%2Fndjson-spatial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boydjohnson%2Fndjson-spatial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boydjohnson%2Fndjson-spatial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boydjohnson","download_url":"https://codeload.github.com/boydjohnson/ndjson-spatial/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boydjohnson%2Fndjson-spatial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003730,"owners_count":26083610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ndjson","spatial","spatial-data-science"],"created_at":"2024-11-09T13:25:41.639Z","updated_at":"2025-10-10T12:01:58.988Z","avatar_url":"https://github.com/boydjohnson.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repo contains some Rust cli tools for working with new-line delimited geojson\n\nThese tools are currently pre-release. There will be releases with builds for linux and macos.\n\n# Build\n\nThis repo requires a nightly compiler before 2020-09-28 exclusive.\n\nTo build\n```\nrustup default nightly-2020-09-27\ncargo build --release\n```\n\nfor lto (optimizations for code speed and size) on `ndjson`\n\n```\ncd ndjson\ncargo build -Z unstable-options --profile=release-ndjson\n\nls -lh ../target/release-ndjson/ndjson\n```\n\n## Current\n\n## ndjson-spatial\n\n```bash\n    ndjson-spatial centroid\n````\n\n```bash\n    ndjson-spatial intersection --ref \u003creference-file.geo.json\u003e\n```\n    - currently: polygon/polygon\n\n```bash\n    ndjson-spatial nearest-distance --ref \u003cref\u003e --field-name\n```\n    - currently: point/point\n\n```bash\n    ndjson-spatial area --field-name \u003cfield-name\u003e\n```\n\n```bash\n    ndjson-spatial from-geojson\n\n    ndjson-spatial to-geojson\n```\n\n## ndjson\n\n```bash\n    ndjson filter \u003cexpression\u003e\n\n    ndjson filter \"d.properties.Area \u003e= 30000.0\"\n```\n\n```bash\n    ndjson pick-field \u003cexpression\u003e\n\n    ndjson pick-field \"d.properties.distance \"\n```\n\n```bash\n    ndjson join --ref \u003cref\u003e --ref-field \u003cref-fields\u003e --stream-field \u003cstream-field\u003e\n```\n    - ref-fields, stream-fields should be space delimited list of 'd.properties.FIELD_NAME'\n\n## Proposed\n\n## ndjson-spatial\n\n```bash\n    ndjson-spatial join-contains --ref \u003creference-file.geo.json\u003e --field-name \u003cfield-name\u003e\n```\n\n## ndjson\n\n```bash\n    ndjson select-count \u003cexpression\u003e --selector \u003cselector\u003e --field-name \u003cfield-name\u003e\n\n    ndjson select-count d.properties.join --selector light=yes --field-name NUM_W_LIGHT\n```\n\n```bash\n    ndjson select-avg \u003cexpression\u003e --selector \u003cselector\u003e --field-name \u003cfield-name\u003e\n\n    ndjson select-avg d.properties.join --selector light=yes --field-name AVG_W_LIGHT\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboydjohnson%2Fndjson-spatial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboydjohnson%2Fndjson-spatial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboydjohnson%2Fndjson-spatial/lists"}