@webgeodatavore/geojson-line-chunk

1.1.0 • Public • Published

Utility to chunk GeoJSON lines

Only working on GeoJSON with featureCollection as input. It output GeoJSON

Install

npm i @webgeodatavore/geojson-line-chunk -g

Examples

cat mygeojson.json | geojson-line-chunk --distance 500 --units kilometers -
geojson-line-chunk --input myinput.json --distance 500 --units kilometers --output myoutput.json

Help content

Options:
      --version       Show version number                              [boolean]
  -i, --input         Input GeoJSON file
  -o, --output        Provide an output path for GeoJSON
  -d, -d, --distance  Provide a distance for splitting line. If not units
                      specified, it's kilometers                      [required]
  -u, --units         Units
  [choices: "degrees", "radians", "miles", "kilometers"] [default: "kilometers"]
  -r, --reverse       Reverses coordinates to start the first chunked segment at
                      the end. Default to false       [boolean] [default: false]
      --help          Show help                                        [boolean]

/@webgeodatavore/geojson-line-chunk/

    Package Sidebar

    Install

    npm i @webgeodatavore/geojson-line-chunk

    Weekly Downloads

    0

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    4.01 kB

    Total Files

    4

    Last publish

    Collaborators

    • thomasg77