cjseq-0.3.1 is not a library.
Visit the last successful build:
cjseq-0.4.1
cjseq
cjseq is a program for creating, processing, and modifying CityJSONSeq files, as well as converting CityJSON files to it.
Installation
Installing the binaries
- Install the Rust compiler.
- Run
cargo install cjseq.
Compiling the project
- Install the Rust compiler.
- Clone the repository:
- Build the project:
- Run the program:
Usage
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 CityJSON to CityJSONSeq
Convert a CityJSON file to a CityJSONSeq stream:
Alternatively use stdin:
|
Convert CityJSONSeq to CityJSON
Convert a CityJSONSeq stream to a CityJSON file:
|
Filter CityJSONSeq
cat myfile.city.jsonl | cjseq filter --bbox 85007 446179 85168 446290 > mysubset.city.jsonl
Input constraints
- the input CityJSON/Seq must be v1.1 or v2.0 (v1.0 will panic).
- the input JSON but be CityJSON schema-valid, use cjval to validate.