Commit graph

793 commits

Author SHA1 Message Date
Sergey Vartanov
b086b0d108 Issue #45: support lanes.
Assume road width on the basis of lanes number.
2021-05-29 02:47:08 +03:00
Sergey Vartanov
02459a6af0 Issue #45: test fix. 2021-05-28 11:34:07 +03:00
Sergey Vartanov
4b88b64f86 Issue #45: support width tag for roads.
Compute road width from width=* tag if specified.
2021-05-28 04:52:15 +03:00
Sergey Vartanov
3abd2a1769 Refactor figures. 2021-05-28 04:17:35 +03:00
Sergey Vartanov
9d41b34214 Issue #45: refactor road specification in scheme.
Add special "road" part and move road specifications from the "ways".
Add road matcher.  We should remove "priority" key and use
specifications order instead in the future.
2021-05-28 04:05:15 +03:00
Sergey Vartanov
38925e3a71 Remove broken test. 2021-05-28 03:52:33 +03:00
Sergey Vartanov
b4907ecf03 Issue #45: add preliminary Road class.
Road class is supposed to be used as road description for the map.
2021-05-27 03:07:31 +03:00
Sergey Vartanov
579940d75f Move building style from scheme. 2021-05-27 00:53:01 +03:00
Sergey Vartanov
ff88424a34 Fix building object type. 2021-05-26 03:55:12 +03:00
Sergey Vartanov
0285638eb5 Optimize imports. 2021-05-25 02:56:08 +03:00
Sergey Vartanov
b7ed5353f8 Speed up tests. 2021-05-25 02:53:34 +03:00
Sergey Vartanov
f1702ece36 Add way style test. 2021-05-25 02:47:17 +03:00
Sergey Vartanov
6aef415579 Add area style test. 2021-05-25 02:44:31 +03:00
Sergey Vartanov
4291bb9193 Add style tests. 2021-05-25 02:42:51 +03:00
Sergey Vartanov
c12ebf5f47 Move test initialization. 2021-05-25 02:42:04 +03:00
Sergey Vartanov
796d545cf6 Refactor tag matching; change scheme format. 2021-05-25 01:36:02 +03:00
Sergey Vartanov
3aa0bf841d Issue #7: add documentation. 2021-05-24 03:03:53 +03:00
Sergey Vartanov
00f888f94a Issue #7: add Japanese symbol for historic. 2021-05-24 00:54:30 +03:00
Sergey Vartanov
f0f1a8beb4 Add replace_shapes flag to scheme specification.
If flag is false, main icon shapes should not be replaced.
2021-05-24 00:44:03 +03:00
Sergey Vartanov
2ece66d5d0 Change scheme format.
Use "shapes" key instead of "icon", "add_shapes" key instead of
"add_icon", "exception" instead of "no_tag".
2021-05-24 00:32:35 +03:00
Sergey Vartanov
1bc7a1f726 Issue #7: add Japanese TV tower symbol. 2021-05-24 00:07:48 +03:00
Sergey Vartanov
aad7b25202 Change icon sorting in grid.
Sort icons in grid by shape identifiers instead of tag priority.
2021-05-24 00:00:38 +03:00
Sergey Vartanov
1aace77aef Issue #7: add Japanese symbol for castle. 2021-05-23 23:45:25 +03:00
Sergey Vartanov
5939c71921 Issue #39: add directed shapes. 2021-05-23 23:24:04 +03:00
Sergey Vartanov
7d6f3f4104 Fix #43: non deterministic icon grid generation. 2021-05-23 23:08:21 +03:00
Sergey Vartanov
617265dce5 Add processed tags set for labels. 2021-05-23 22:39:03 +03:00
Sergey Vartanov
0fc290d844 Remove CodeQL configuration. 2021-05-22 04:05:04 +03:00
Sergey Vartanov
ee6912fb0a Fix pytest invocation. 2021-05-22 04:04:38 +03:00
Sergey Vartanov
062b76fc08 Issue #42: get rid of old XML parser. 2021-05-22 03:56:16 +03:00
Sergey Vartanov
a946972caf Issue #42: use xml.etree parser.
Looks like it is a bit faster than the original parser.
2021-05-22 03:40:37 +03:00
Sergey Vartanov
37fabe627d Fix pathlib usage. 2021-05-22 02:06:09 +03:00
Sergey Vartanov
bb70935c19 Change scheme format; support pathlib.
Change name documentation as well.
2021-05-22 01:37:58 +03:00
Sergey Vartanov
c5bb1529f5 Speed up tests.
Load scheme and shape extractor just once for a test group.
2021-05-21 04:22:12 +03:00
Sergey Vartanov
1b40087b18 Issue #39: support flipping icons horizontally.
If tags has "direction" key, direction is mostly to the left (to the
West), and shape for the icon is right directed, we flip the shape
horizontally.
2021-05-21 03:04:49 +03:00
Sergey Vartanov
2f957e880b Add right direction checking.
Check whether all sectors of the direction set are directed to the
right.
2021-05-21 01:46:01 +03:00
Sergey Vartanov
3ea5088f36 Add main direction to sector. 2021-05-21 01:29:07 +03:00
Sergey Vartanov
d73e2b6a53 Add configuration to shape extractor. 2021-05-21 01:28:22 +03:00
Sergey Vartanov
a8da4fce0a Issue #7: add Japanese symbol shapes.
Do not use them yet.
2021-05-20 03:44:29 +03:00
Sergey Vartanov
77a0c0fdfe Add shape configuration. 2021-05-19 03:49:18 +03:00
Sergey Vartanov
c96462b2ee Support icon translating and scaling. 2021-05-19 02:58:33 +03:00
Sergey Vartanov
87789a9ef3 Add SVG transformation. 2021-05-19 02:58:33 +03:00
Sergey Vartanov
5d6dbb6c2c Add flip parameters. 2021-05-19 02:58:42 +03:00
Sergey Vartanov
f5a5bb17b9 Fix links in readme. 2021-05-13 04:22:21 +03:00
Sergey Vartanov
afdf9416d5 Refactor text labels. 2021-05-13 04:10:35 +03:00
Sergey Vartanov
c3828ec92f Enable icon tests. 2021-05-12 02:57:39 +03:00
Sergey Vartanov
bb3e2e3300 Update readme. 2021-05-12 02:25:06 +03:00
Sergey Vartanov
8ca013265f Fix some more Pylint warnings. 2021-05-12 00:53:44 +03:00
Sergey Vartanov
310a631217 Fix some Pylint warnings. 2021-05-12 00:49:35 +03:00
Sergey Vartanov
1cadabd173 Fix icon background offset in grid. 2021-05-11 03:31:17 +03:00
Sergey Vartanov
063e3c5c4f Support white part repainting. 2021-05-11 03:30:02 +03:00