Commit Graph

157 Commits

Author SHA1 Message Date
d31e678268 estimate how long the algo will take 2021-05-19 22:57:48 +03:00
5d430d34d1 construct the polygon only if there are enough points 2021-05-19 22:57:48 +03:00
6cefc87b19 selfcrossing-1-rev does not overlap 2021-05-19 22:57:48 +03:00
9b36dc5cb2 remove some reundant initializations 2021-05-19 22:57:47 +03:00
1ff38c12e9 Revert "remove redundant initializations"
This reverts commit 56c5cd10d7a8d0f45c7be028fa0688a8444e2a58.
2021-05-19 22:57:47 +03:00
50df7bc21c remove redundant initializations 2021-05-19 22:57:47 +03:00
ff1dd7af96 shorten tests a little 2021-05-19 22:57:47 +03:00
1c7d22bb99 less variable declarations 2021-05-19 22:57:47 +03:00
523f00c8c9 quit earlier after mutating a bend 2021-05-19 22:57:47 +03:00
56c92b71d9 remove redundant commentary 2021-05-19 22:57:47 +03:00
5491f574e6 move section of self_crossing to a separate function 2021-05-19 22:57:47 +03:00
d390d373a9 self-crossing bugfix 2021-05-19 22:57:47 +03:00
9f717f1e3a stop on errors 2021-05-19 22:57:47 +03:00
42bdf894f2 adjusted size and compactness index 2021-05-19 22:57:47 +03:00
ff28d6b14d remove debug statements, back to normal
punt it
2021-05-19 22:57:47 +03:00
f30354290f wip -- debugging 2021-05-19 22:57:47 +03:00
9f7a9c338e excuses excuses 2021-05-19 22:57:47 +03:00
7073c15b88 explain self-crossing: 2021-05-19 22:57:47 +03:00
80de8f7950 formatting 2021-05-19 22:57:47 +03:00
b2f2299c44 fix gentle inflections: better visuals 2021-05-19 22:57:47 +03:00
31f0a1961f visualizations 2021-05-19 22:57:47 +03:00
a2f2d62033 less parentheses 2021-05-19 22:57:47 +03:00
0b349d8681 isolated bends 2021-05-19 22:57:47 +03:00
6062ce9389 edit table name 2021-05-19 22:57:47 +03:00
f3f66cebcc convert to jsonb 2021-05-19 22:57:47 +03:00
95e27298cd bend_attrs is now a variable 2021-05-19 22:57:47 +03:00
5fda46533f bend attrs 2021-05-19 22:57:47 +03:00
77850b352b name all tables to wm_ 2021-05-19 22:57:47 +03:00
56d80516a4 add curvature 2021-05-19 22:57:47 +03:00
f973da1eb5 fix default types 2021-05-19 22:57:47 +03:00
878af3b2b2 less conditionals in bend_attrs 2021-05-19 22:57:47 +03:00
cf109dc454 fix integration tests 2021-05-19 22:57:47 +03:00
41a14a1ded style and comments 2021-05-19 22:57:47 +03:00
dc50ae173e fix the incorrect test 2021-05-19 22:57:47 +03:00
fb4a3eac6d fix bug in tests: detect_bends() works only on lines 2021-05-19 22:57:47 +03:00
e9d1587c8e improve observability 2021-05-19 22:57:47 +03:00
dc0a713f2e rename dbgname to name 2021-05-19 22:57:47 +03:00
fe289aa6ad rename columns 2021-05-19 22:57:46 +03:00
84d77a6102 less reliance on test tables 2021-05-19 22:57:46 +03:00
7a567f1b1a add i to ebendattrs 2021-05-19 22:57:46 +03:00
773bc97759 simplify debugging 2021-05-19 22:57:46 +03:00
a68cebcb4d minor: formatting 2021-05-19 22:57:46 +03:00
7ba61e6a41 it's a report, not an article 2021-05-19 22:57:46 +03:00
eea0509373 pi is a constant 2021-05-19 22:57:46 +03:00
ad28f9755b more 'inflection_angle' to its own function 2021-05-19 22:57:46 +03:00
9006899526 styling 2021-05-19 22:57:46 +03:00
f40407f494 update notes 2021-05-19 22:57:46 +03:00
c5b870b2ae bend_attrs now go to a dedicated type 2021-05-19 22:57:46 +03:00
b28755bbcd integration test demo 2021-05-19 22:57:46 +03:00
0de0a4204e build bend_attrs also for zero-area bendsarea 2021-05-19 22:57:46 +03:00
863b23f2ef calculate adjusted size too 2021-05-19 22:57:46 +03:00
711c050d53 prezentacija 2021-05-19 22:57:46 +03:00
269099d018 agg_rivers works for all rivers 2021-05-19 22:57:46 +03:00
8d4a1c1e60 fix bug in final line merging 2021-05-19 22:57:46 +03:00
5b805bde9c easier debugging 2021-05-19 22:57:46 +03:00
d1380ec907 more logging info 2021-05-19 22:57:46 +03:00
53dd8516c5 log sql statements 2021-05-19 22:57:46 +03:00
39d6cb22c4 drop table used to remove tables with data 2021-05-19 22:57:46 +03:00
b72905989e clean-tables target 2021-05-19 22:57:46 +03:00
8db38ac2a4 debugging goes on 2021-05-19 22:57:46 +03:00
a2ef0a06bd fix dumping of geometries 2021-05-19 22:57:46 +03:00
7a661f4dfa fix simple geometries 2021-05-19 22:57:46 +03:00
e78250df49 more explicit intermediate steps 2021-05-19 22:57:46 +03:00
9d7695bb33 debugging 2021-05-19 22:57:46 +03:00
4b0f214ef9 wip debug 2021-05-19 22:57:46 +03:00
6aa674a82f fix more syntax errors -- nemunas does not throw errors 2021-05-19 22:57:46 +03:00
c3321e5372 wip fix syntax errors 2021-05-19 22:57:46 +03:00
7c6f57a89b wip data import from OSM 2021-05-19 22:57:46 +03:00
e3f3a36e70 wip ST_SimplifyWM 2021-05-19 22:57:46 +03:00
5a076c32d3 return whether self_crossings mutated the bends 2021-05-19 22:57:46 +03:00
3c0fdd03e2 remove unused variable 2021-05-19 22:57:46 +03:00
1deefa4670 add excuses 2021-05-19 22:57:46 +03:00
bb38f52da0 unit tests for self-crossings 2021-05-19 22:57:46 +03:00
5657df8543 bugfix: remove leftover segment 2021-05-19 22:57:46 +03:00
3efef0864d remove incorrect direction approximation rules 2021-05-19 22:57:46 +03:00
dc4b352915 more debug statements 2021-05-19 22:57:46 +03:00
1aab0ac225 formatting 2021-05-19 22:57:46 +03:00
d6f90a3ffb somewhat similar result in one of the test cases 2021-05-19 22:57:45 +03:00
14eaa3a7d7 debugging 2021-05-19 22:57:45 +03:00
06314d77c0 (somewhat) fix index calculation 2021-05-19 22:57:45 +03:00
a37385e0d1 wip demo self-crossing: it's now incorrectly mutating things 2021-05-19 22:57:45 +03:00
87849132d1 more self-crossing and documentation 2021-05-19 22:57:45 +03:00
d66d1ac248 wip self-crossing 2021-05-19 22:57:45 +03:00
942cc4cc50 wip self-crossing 2021-05-19 22:57:45 +03:00
3afa2169c3 wip detecting crossings 2021-05-19 22:57:45 +03:00
d5eb0d7440 syntax shortening 2021-05-19 22:57:45 +03:00
5e47e90370 beginnings of self-crossing 2021-05-19 22:57:45 +03:00
e29761d2ef add some notes about self-line-crossing 2021-05-19 22:57:45 +03:00
2513567857 clean up debugging and test output 2021-05-19 22:57:45 +03:00
8cde484775 remove array_reverse() 2021-05-19 22:57:45 +03:00
a63a6c51a9 fix gentle inflections -- both tests pass 2021-05-19 22:57:45 +03:00
236d0bcbf0 trying to fix fig5 2021-05-19 22:57:45 +03:00
0e23fc0f7b tests for bends vs inflections 2021-05-19 22:57:45 +03:00
02f2ac3e60 add safety check 2021-05-19 22:57:45 +03:00
fab653ee3a inflections now work 2021-05-19 22:57:45 +03:00
87651369c8 debugging inflections 2021-05-19 22:57:45 +03:00
eaedce3976 docs and inflections 2021-05-19 22:57:45 +03:00
e76efda436 fix example inflection-1 2021-05-19 22:57:45 +03:00
198ea6d0e3 gentle inflection of a bend 2021-05-19 22:57:45 +03:00
4c6adcc71e 80 chars 2021-05-19 22:57:45 +03:00