Crates.io | cjseq |
lib.rs | cjseq |
version | 0.3.1 |
source | src |
created_at | 2024-02-07 11:05:31.890346 |
updated_at | 2024-06-17 09:58:47.13354 |
description | Create/process/modify CityJSONSeq |
homepage | https://github.com/cityjson/cjseq |
repository | https://github.com/cityjson/cjseq |
max_upload_size | |
id | 1130405 |
size | 90,364 |
cjseq
is a program for creating, processing, and modifying CityJSONSeq files, as well as converting CityJSON files to it.
cargo install cjseq
.git clone https://github.com/cityjson/cjseq.git
cargo build --release
./target/release/cjseq --help
cjseq
can take input from either stdin or a file, and it always outputs the results to stdout.
The output can be a CityJSON object or a CityJSONSeq stream.
Convert a CityJSON file to a CityJSONSeq stream:
cjseq cat -f myfile.city.json > myfile.city.jsonl
Alternatively use stdin:
cat myfile.city.json | cjseq cat` will output the stream to stdin.
Convert a CityJSONSeq stream to a CityJSON file:
cat ./data/3dbag_b2.city.jsonl | cjseq collect > 3dbag_b2.city.json
cat myfile.city.jsonl | cjseq filter --bbox 85007 446179 85168 446290 > mysubset.city.jsonl