1
0
Fork
You've already forked kothic
0
forked from comaps/kothic
Original kothic mapcss renderer and stylesheet parser
  • Python 100%
Find a file
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
2025年12月07日 18:53:56 +01:00
integration-tests Added unit tests and integration tests 2024年12月13日 18:21:11 +02:00
src Allows keeping multiple styles at a given scale level 2025年12月07日 18:53:56 +01:00
tests Added unit tests and integration tests 2024年12月13日 18:21:11 +02:00
.gitignore Added unit tests and integration tests 2024年12月13日 18:21:11 +02:00
.hgignore Changeable vector backends. 2010年05月02日 00:18:15 +03:00
README.md [docs] OM -> CM 2025年07月30日 14:23:56 +02:00
requirements.txt Require protobuf 3.21+ 2024年12月02日 01:02:50 +03:00

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.