Commit graph

103 commits

Author SHA1 Message Date
jbenua
360d52b7ac
Merge pull request #8 from alexey-zakharenkov/improve-sustainability
Improve sustainability
2020-12-30 21:49:18 +03:00
Alexey Zakharenkov
4642948638 Elaborate search endpoint 2020-12-30 18:44:18 +03:00
Alexey Zakharenkov
d4429c3a86 Fix joining two regions in case when they were the only children of their parent 2020-12-30 15:45:41 +03:00
Alexey Zakharenkov
ec4d0a67eb Process ^ and $ metasymbols in search string 2020-12-30 15:28:21 +03:00
Alexey Zakharenkov
39540b91e0 Fixes after review 2020-12-30 14:23:07 +03:00
Alexey Zakharenkov
c1ca4c68b1 More robust work with mwm size predictions, including prediction model limitations 2020-12-29 12:32:33 +03:00
Alexey Zakharenkov
a944aee15c Refactor creation initial country division to utilize other common code 2020-12-25 12:33:26 +03:00
jbenua
273f208e75
Merge pull request #7 from alexey-zakharenkov/master-az
Autosplit and more
2020-12-08 16:08:00 +03:00
Alexey Zakharenkov
c4f6a72f62 Resolve conflicts 2020-12-08 15:51:06 +03:00
Alexey Zakharenkov
aa4149253e Pretty format js and html 2020-12-01 12:23:02 +03:00
Alexey Zakharenkov
baa77bd3a2 Fix function name 2020-11-24 12:08:47 +03:00
Alexey Zakharenkov
ee5bb44583 Global rename variables table=>borders_table, config.TABLE=>config.BORDERS_TABLE 2020-11-24 11:41:36 +03:00
Alexey Zakharenkov
147188de93 check_write_access decorator to prevent executing server methods when config.READONLY == True 2020-11-24 10:58:39 +03:00
Alexey Zakharenkov
d769352a51 countries initial levels into separate file 2020-11-24 10:44:23 +03:00
Alexey Zakharenkov
955813ed56 Use cursor context manager 2020-11-24 10:40:32 +03:00
Alexey Zakharenkov
0de4a5475c Repair and refactor querying small rings 2020-11-20 18:54:26 +03:00
Alexey Zakharenkov
b9d74cb617 More careful and unified verifying of parameters coming to server methods 2020-11-20 15:46:14 +03:00
Alexey Zakharenkov
4fb2652eaf Add description, simplify input processing in tiles2pb.py 2020-11-20 11:55:28 +03:00
Alexey Zakharenkov
b9c28019c1 Improve region search by substring 2020-11-20 11:33:40 +03:00
Alexey Zakharenkov
88670681f3 Eliminate code duplication when divide region and preview division 2020-10-29 13:59:46 +03:00
Alexey Zakharenkov
9515aeb17d Distribute auxiliary functions among modules 2020-10-27 20:47:10 +03:00
Alexey Zakharenkov
45c2df80c3 Extract xml-related work into a separate module 2020-10-27 12:26:45 +03:00
Alexey Zakharenkov
e758c7991a Some refactoring due to code review 2020-10-27 09:52:28 +03:00
Alexey Zakharenkov
097e158d69 Handle case when postgis returns NaN for a region area; passing warnings from backend to frontend 2020-10-23 12:51:19 +03:00
Alexey Zakharenkov
9ce510214e Refactoring etc. due to code review 2020-10-23 11:51:16 +03:00
Alexey Zakharenkov
c31a2caf0a SQL formatting 2020-10-23 01:13:45 +03:00
Alexey Zakharenkov
fd2541a36b Some formatting 2020-10-16 19:01:22 +03:00
Alexey Zakharenkov
51d35ef4d4 Fix borders backup and stats 2020-10-16 18:25:54 +03:00
Alexey Zakharenkov
3ea675364f Fix import borders from *.osm file 2020-10-16 12:44:20 +03:00
Alexey Zakharenkov
6ace96c581 Automatic mwm size estimation for countries that are not initially divided 2020-10-16 12:02:00 +03:00
Alexey Zakharenkov
9d7379f3f8 Repair 'Convex hull' operation 2020-10-16 11:23:44 +03:00
Alexey Zakharenkov
d46dca1df1 Repair 'Extract islands' operation; add automatic recalculation of mwm size estimation after some operations 2020-10-16 11:03:54 +03:00
Alexey Zakharenkov
ce461536a4 Show admin_level of parent region in the web interface 2020-10-15 23:57:38 +03:00
Alexey Zakharenkov
3dc6ceada6 Unbind 'Region from point' action from those related to a selected region 2020-10-15 23:23:50 +03:00
Alexey Zakharenkov
4a3942e971 Exclude code about roads that cross borders: it needs 'crossing' and 'points' tables and there are no scripts/instructions how to fill them 2020-10-15 12:16:00 +03:00
Alexey Zakharenkov
580a1ab9ac MWM size prediction model 2020-10-02 12:30:52 +03:00
Alexey Zakharenkov
b13e31bff1 Change db structure to use osm_places (not only cities/towns with population) 2020-09-29 14:00:12 +03:00
Alexey Zakharenkov
27c80f9879 Put file paths used by borders_daemon into config 2020-07-28 09:53:04 +03:00
Alexey Zakharenkov
8b50d11604 Allow division a non-administrative border into administrative units, but not in auto-split mode 2020-07-27 21:44:52 +03:00
Alexey Zakharenkov
08518a771c Do not show 'Divide' button in 'divide preview' mode in case of only one subregion/cluster 2020-07-24 14:59:31 +03:00
Alexey Zakharenkov
66a75c1a52 Improve autosplit edge cases: a cluster with 1 subregion now gets its name; a superregion that is split&merged upto itself is now stays as is 2020-07-24 10:48:16 +03:00
Alexey Zakharenkov
2e90ba48e5 Migrated to python3; id-based border identification instead of name-based; store border hierarchy; auto-split by population; docker 2020-07-23 14:01:48 +03:00
Maksim Andrianov
1df0c2f7ff
Merge pull request #6 from alexey-zakharenkov/forbid-join-region-with-itself
Forbid joining a region with itself
2020-03-18 13:06:04 +03:00
Alexey Zakharenkov
c80b6c07f5 Forbid joining a region with itself 2020-02-28 17:32:59 +03:00
Sergey Yershov
e75ef1a880
Merge pull request #5 from alexey-zakharenkov/fix-cycle
Fix lost of the last iteration in cycle
2020-02-27 11:17:05 +03:00
alexey-zakharenkov
55dbcf8c7a
Fix lost of the last iteration in cycle 2020-02-26 13:33:58 +03:00
Ilya Zverev
fc376dfa7a Case-insensitive searching 2016-02-20 12:12:30 +03:00
Ilya Zverev
402bc4d998 Fix rename field 2016-02-11 14:30:15 +03:00
Ilya Zverev
592982b6f3 Revert encodeURI 2016-02-10 13:49:56 +03:00
Ilya Zverev
0eb3cd0380 Fix param encoding 2016-02-10 13:41:29 +03:00