Geojson data processing tools for CIMEngine
Find a file
2023-07-05 16:20:22 +03:00
tools fix: polygon area 2023-07-05 16:20:22 +03:00
.gitattributes Initial commit 2023-06-10 19:24:54 +03:00
.gitignore Initial commit 2023-06-10 19:24:54 +03:00
LICENSE Initial commit 2023-06-10 19:24:54 +03:00
package-lock.json fix: polygon area 2023-07-05 16:20:22 +03:00
package.json fix: polygon area 2023-07-05 16:20:22 +03:00
README.md doc: fix 2023-06-11 08:58:06 +03:00

CIMEngine build tools

Installation

npm i cimengine-build-tools

or

npm i cimengine-build-tools -g

Usage

Tools

  1. cimengine-init - Initializes the cimengine project
  2. cimengine-build - Assembles project files into a single geojson
  3. cimengine-country-fix - Transforms the country geojson file (merges polygons and simplifies them)

cimengine-init

params: name - name of project
usage: cimengine-init --name map

cimengine-build

params:

  1. projectFolder - folder with project generated by cimengine-init (If this parameter is specified, no other parameters are needed)
  2. layers - path to layers.yaml
  3. properties - path to properties.yaml
  4. config - path to config.yaml
  5. countries - path to countries folder
  6. natureObjects - path to nature folder
  7. roads - path to roads folder
  8. output - path to output file

usage: cimengine-build --projectFolder ./map

cimengine-country-fix

params:

  1. countryPath - path to country file
  2. simplify - Simplification accuracy of polygons (optional)

usage: cimengine-country-fix --countryPath ./map/src/countries/usa.geojson