Commit Graph

156 Commits

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