forked from comaps/kothic
Original kothic mapcss renderer and stylesheet parser
- Python 100%
|
Séverin Lemaignan
1cba3a0347
Allows keeping multiple styles at a given scale level
This make it possible to have properly 'cascading' styles, with more specific selector taking the priority over less specific ones |
||
|---|---|---|
| integration-tests | Added unit tests and integration tests | |
| src | Allows keeping multiple styles at a given scale level | |
| tests | Added unit tests and integration tests | |
| .gitignore | Added unit tests and integration tests | |
| .hgignore | Changeable vector backends. | |
| README.md | [docs] OM -> CM | |
| requirements.txt | Require protobuf 3.21+ | |
Kothic Mapcss parser/processor tailored for CoMaps use.
Dependencies:
- Python >= 3.8
Python dependencies:
pip3 install -r requirements.txt
Running unittests
To run all unittests execute next command from project root folder:
python3 -m unittest discover -s tests
this will search for all test*.py files within tests directory
and execute tests from those files.
Running integration tests
File integration-tests/full_drules_gen.py is intended to generate drules
files for all 6 themes from main CoMaps repo. It could be used to understand
which parts of the project are actually used by CoMaps repo.
Usage:
cd integration-tests
python3 full_drules_gen.py -d ../../../data -o drules --txt
This command will run generation for styles - default light, default dark,
outdoors light, outdoors dark, vehicle light, vehicle dark and put *.bin
and *.txt files into 'drules' subfolder.