mirror of
https://github.com/CIMEngine/cimengine-build-tools.git
synced 2024-11-22 12:06:22 +03:00
Create README.md
This commit is contained in:
parent
5c6934d0eb
commit
04156b910e
1 changed files with 50 additions and 0 deletions
50
README.md
Normal file
50
README.md
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
# CIMEngine build tools
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm i cimengine-build-tools
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```bash
|
||||||
|
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`
|
Loading…
Add table
Reference in a new issue