From 04156b910e55deac657871b818eeff9c1a6be694 Mon Sep 17 00:00:00 2001 From: Artemy Date: Sat, 10 Jun 2023 22:46:19 +0300 Subject: [PATCH] Create README.md --- README.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9e68338 --- /dev/null +++ b/README.md @@ -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`