mirror of
https://github.com/CIMEngine/cimengine-build-tools.git
synced 2024-11-21 19:56:22 +03:00
Geojson data processing tools for CIMEngine
tools | ||
.gitattributes | ||
.gitignore | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md |
CIMEngine build tools
Installation
npm i cimengine-build-tools
or
npm i cimengine-build-tools -g
Usage
Tools
- cimengine-init - Initializes the cimengine project
- cimengine-build - Assembles project files into a single geojson
- 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:
- projectFolder - folder with project generated by cimengine-init (If this parameter is specified, no other parameters are needed)
- layers - path to layers.yaml
- properties - path to properties.yaml
- config - path to config.yaml
- countries - path to countries folder
- natureObjects - path to nature folder
- roads - path to roads folder
- output - path to output file
usage: cimengine-build --projectFolder ./map
cimengine-country-fix
params:
- countryPath - path to country file
- simplify - Simplification accuracy of polygons (optional)
usage: cimengine-country-fix --countryPath ./map/src/countries/usa.geojson