Commit graph

91 commits

Author SHA1 Message Date
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
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
Ilya Zverev
c4f41e4ca2 Encoding URIs, filter by ranks 2016-02-10 13:37:06 +03:00
Ilya Zverev
8c9e9f19b3 Search on Enter 2016-02-08 15:37:47 +03:00
Ilya Zverev
a8e766c403 Fix searching 2016-02-08 15:31:57 +03:00
Ilya Zverev
f03f45729c Searching 2016-02-08 15:16:34 +03:00
Ilya Zverev
3225251039 fix js 2015-12-18 20:45:24 +03:00
Ilya Zverev
e85cea64f5 Merge pull request #2 from mapsme/cros2
Crossing lines as markers
2015-12-18 19:50:17 +03:00
Ilya Zverev
11925978c4 crossing lines as markers 2015-12-18 19:49:24 +03:00
Ilya Zverev
e5740dcee9 Merge pull request #1 from mapsme/crossings
Highways crossing borders
2015-12-14 12:25:43 +03:00
Ilya Zverev
2903b6c3cf Fixes 2015-12-14 12:24:11 +03:00
Ilya Zverev
6786a3fbaf Display lines crossing borders 2015-12-14 11:59:03 +03:00
Ilya Zverev
034768d3b3 Update leaflet to 0.7.7, remove leaflet.draw 2015-12-10 11:21:49 +03:00
Ilya Zverev
dd65120f15 Fix some things 2015-12-09 19:49:38 +03:00