Commit Graph

155 Commits

Author SHA1 Message Date
Motiejus Jakštys
9918ac279f selfcrossing-1-rev does not overlap 2021-04-16 07:28:17 +03:00
Motiejus Jakštys
5d354b9b96 remove some reundant initializations 2021-04-15 18:24:09 +03:00
Motiejus Jakštys
c579fca4da Revert "remove redundant initializations"
This reverts commit 56c5cd10d7.
2021-04-15 18:22:49 +03:00
Motiejus Jakštys
56c5cd10d7 remove redundant initializations 2021-04-15 18:21:29 +03:00
Motiejus Jakštys
088146d536 shorten tests a little 2021-04-15 17:28:26 +03:00
Motiejus Jakštys
e9674e350e less variable declarations 2021-04-15 17:12:43 +03:00
Motiejus Jakštys
88f6b66f26 quit earlier after mutating a bend 2021-04-15 17:12:23 +03:00
Motiejus Jakštys
7502471808 remove redundant commentary 2021-04-15 17:06:58 +03:00
Motiejus Jakštys
c0d9a3de7f move section of self_crossing to a separate function 2021-04-15 16:55:47 +03:00
Motiejus Jakštys
7a7c0ad72b self-crossing bugfix 2021-04-15 14:12:18 +03:00
Motiejus Jakštys
192a19ba28 stop on errors 2021-04-14 20:16:50 +03:00
Motiejus Jakštys
f5da753322 adjusted size and compactness index 2021-04-14 16:48:11 +03:00
Motiejus Jakštys
5b3acf9aba remove debug statements, back to normal
punt it
2021-04-14 07:34:28 +03:00
Motiejus Jakštys
7a28b8404e wip -- debugging 2021-04-13 20:51:38 +03:00
Motiejus Jakštys
d193f7a0f7 excuses excuses 2021-04-13 10:58:03 +03:00
Motiejus Jakštys
5d3af7f783 explain self-crossing: 2021-04-13 10:05:52 +03:00
Motiejus Jakštys
6dc87fdb30 formatting 2021-04-13 09:20:50 +03:00
Motiejus Jakštys
26f864be54 fix gentle inflections: better visuals 2021-04-12 12:26:22 +03:00
Motiejus Jakštys
b51952abb5 visualizations 2021-04-10 19:40:04 +03:00
Motiejus Jakštys
3115957aeb less parentheses 2021-04-09 08:23:15 +03:00
Motiejus Jakštys
3515dab508 isolated bends 2021-04-08 16:03:52 +03:00
Motiejus Jakštys
8fb18f0795 edit table name 2021-04-08 15:31:53 +03:00
Motiejus Jakštys
7937aece8b convert to jsonb 2021-04-08 15:19:36 +03:00
Motiejus Jakštys
15eac8ba32 bend_attrs is now a variable 2021-04-06 18:29:25 +03:00
Motiejus Jakštys
d0972307e2 bend attrs 2021-04-06 17:48:25 +03:00
Motiejus Jakštys
0abcd16c99 name all tables to wm_ 2021-04-06 14:34:00 +03:00
Motiejus Jakštys
ac7549f493 add curvature 2021-04-06 07:51:39 +03:00
Motiejus Jakštys
531f69d6d4 fix default types 2021-04-06 07:23:37 +03:00
Motiejus Jakštys
fdc7835535 less conditionals in bend_attrs 2021-04-06 07:16:57 +03:00
Motiejus Jakštys
0d805d1be6 fix integration tests 2021-04-06 07:08:39 +03:00
Motiejus Jakštys
f824c532ab style and comments 2021-04-06 07:02:46 +03:00
Motiejus Jakštys
adf8c481f0 fix the incorrect test 2021-04-05 16:33:06 +03:00
Motiejus Jakštys
1607bfe225 fix bug in tests: detect_bends() works only on lines 2021-04-05 16:18:33 +03:00
Motiejus Jakštys
6cc76b96ef improve observability 2021-04-05 10:05:16 +03:00
Motiejus Jakštys
be8d8db454 rename dbgname to name 2021-04-03 20:08:32 +03:00
Motiejus Jakštys
e3c5cb7b1a rename columns 2021-04-03 19:42:12 +03:00
Motiejus Jakštys
6107a50f62 less reliance on test tables 2021-04-03 19:03:23 +03:00
Motiejus Jakštys
b4a0e9ed6d add i to ebendattrs 2021-04-03 18:18:34 +03:00
Motiejus Jakštys
fb6e178fb2 simplify debugging 2021-04-03 13:33:35 +03:00
Motiejus Jakštys
ee1c05cd83 minor: formatting 2021-04-03 12:46:45 +03:00
Motiejus Jakštys
7d0bd5a153 it's a report, not an article 2021-04-03 12:37:59 +03:00
Motiejus Jakštys
0403100d11 pi is a constant 2021-04-03 09:45:35 +03:00
Motiejus Jakštys
7475df5394 more 'inflection_angle' to its own function 2021-04-03 09:40:28 +03:00
Motiejus Jakštys
0c7424ae25 styling 2021-04-03 09:30:10 +03:00
Motiejus Jakštys
38b837d870 update notes 2021-04-03 07:36:24 +03:00
Motiejus Jakštys
041746be90 bend_attrs now go to a dedicated type 2021-04-02 19:00:46 +03:00
Motiejus Jakštys
9bce5b61a9 integration test demo 2021-03-29 14:57:44 +03:00
Motiejus Jakštys
5bbeeb360a build bend_attrs also for zero-area bendsarea 2021-03-28 12:05:50 +03:00
Motiejus Jakštys
c522f9d4f4 calculate adjusted size too 2021-03-28 12:00:48 +03:00
Motiejus Jakštys
84819fee14 prezentacija 2021-03-27 13:01:21 +02:00
Motiejus Jakštys
3c0f222334 agg_rivers works for all rivers 2021-03-25 12:04:29 +02:00
Motiejus Jakštys
e56932395d fix bug in final line merging 2021-03-25 12:01:43 +02:00
Motiejus Jakštys
6e5f66ee6b easier debugging 2021-03-25 11:34:30 +02:00
Motiejus Jakštys
5099c933b2 more logging info 2021-03-25 10:13:58 +02:00
Motiejus Jakštys
f838f0378a log sql statements 2021-03-25 09:57:25 +02:00
Motiejus Jakštys
73b5d76463 drop table used to remove tables with data 2021-03-24 16:01:12 +02:00
Motiejus Jakštys
25150f1cbd clean-tables target 2021-03-23 18:40:25 +02:00
Motiejus Jakštys
728665e590 debugging goes on 2021-03-23 18:28:36 +02:00
Motiejus Jakštys
9ca2cbd2ec fix dumping of geometries 2021-03-21 17:19:52 +02:00
Motiejus Jakštys
6e502de74b fix simple geometries 2021-03-21 16:55:17 +02:00
Motiejus Jakštys
37a3259965 more explicit intermediate steps 2021-03-21 16:52:31 +02:00
Motiejus Jakštys
8a651b2f51 debugging 2021-03-17 11:32:12 +02:00
Motiejus Jakštys
d9c155807d wip debug 2021-03-15 18:58:16 +02:00
Motiejus Jakštys
09f8e01a0e fix more syntax errors -- nemunas does not throw errors 2021-03-13 16:51:48 +02:00
Motiejus Jakštys
53dc925525 wip fix syntax errors 2021-03-13 16:49:01 +02:00
Motiejus Jakštys
4b2f8bd65d wip data import from OSM 2021-03-13 15:53:22 +02:00
Motiejus Jakštys
8b8f8c0ec4 wip ST_SimplifyWM 2021-03-11 19:05:15 +02:00
Motiejus Jakštys
82a58a08bd return whether self_crossings mutated the bends 2021-03-11 17:35:11 +02:00
Motiejus Jakštys
4cd7cd0b11 remove unused variable 2021-03-11 09:28:57 +02:00
Motiejus Jakštys
6555de359a add excuses 2021-03-11 09:28:06 +02:00
Motiejus Jakštys
aeb270925e unit tests for self-crossings 2021-03-10 17:30:17 +02:00
Motiejus Jakštys
26292e9f39 bugfix: remove leftover segment 2021-03-10 16:59:44 +02:00
Motiejus Jakštys
97ce2e6a7f remove incorrect direction approximation rules 2021-03-10 16:35:35 +02:00
Motiejus Jakštys
59ab1822b5 more debug statements 2021-03-10 16:32:50 +02:00
Motiejus Jakštys
44e5352c16 formatting 2021-03-10 15:56:08 +02:00
Motiejus Jakštys
6ff9250831 somewhat similar result in one of the test cases 2021-03-06 15:58:46 +02:00
Motiejus Jakštys
72a87b2749 debugging 2021-03-06 15:37:14 +02:00
Motiejus Jakštys
09e0199abc (somewhat) fix index calculation 2021-03-06 15:21:47 +02:00
Motiejus Jakštys
497735d0b1 wip demo self-crossing: it's now incorrectly mutating things 2021-03-05 17:49:32 +02:00
Motiejus Jakštys
d6e177f9ea more self-crossing and documentation 2021-03-04 18:16:11 +02:00
Motiejus Jakštys
79d72839fe wip self-crossing 2021-03-04 17:59:26 +02:00
Motiejus Jakštys
72f89360f7 wip self-crossing 2021-03-04 14:25:50 +02:00
Motiejus Jakštys
545aff111f wip detecting crossings 2021-03-02 18:34:44 +02:00
Motiejus Jakštys
9a70106e9f syntax shortening 2021-03-02 18:34:42 +02:00
Motiejus Jakštys
f26073151b beginnings of self-crossing 2021-03-02 15:11:10 +02:00
Motiejus Jakštys
b800fd308c add some notes about self-line-crossing 2021-03-01 10:22:40 +02:00
Motiejus Jakštys
0232080fb5 clean up debugging and test output 2021-02-26 19:21:20 +02:00
Motiejus Jakštys
58d3068a3b remove array_reverse() 2021-02-26 19:15:39 +02:00
Motiejus Jakštys
b97531447c fix gentle inflections -- both tests pass 2021-02-26 18:19:23 +02:00
Motiejus Jakštys
c57e4fde05 trying to fix fig5 2021-02-26 17:31:24 +02:00
Motiejus Jakštys
b9ffddee71 tests for bends vs inflections 2021-02-26 16:21:20 +02:00
Motiejus Jakštys
3286890f52 add safety check 2021-02-26 16:12:45 +02:00
Motiejus Jakštys
c2c883335c inflections now work 2021-02-26 16:10:31 +02:00
Motiejus Jakštys
733c7f409a debugging inflections 2021-02-26 10:41:38 +02:00
Motiejus Jakštys
5cb3f6aea6 docs and inflections 2021-02-26 10:27:40 +02:00
Motiejus Jakštys
07dd8011d3 fix example inflection-1 2021-02-23 18:49:39 +02:00
Motiejus Jakštys
7bef5ba36a gentle inflection of a bend 2021-02-22 08:44:23 +02:00
Motiejus Jakštys
f42354800b 80 chars 2021-02-20 14:32:23 +02:00
Motiejus Jakštys
18a601f204 documentation 2021-02-20 14:23:21 +02:00
Motiejus Jakštys
95baf98c8b a line is a full bend now 2021-02-20 14:10:34 +02:00