Commit Graph

219 Commits

Author SHA1 Message Date
Sascha L. Teichmann
fea2286237 Reverted accidentally committed profiling stuff. 2017-02-26 17:05:45 +01:00
Sascha L. Teichmann
3e3413566b Only do expensive area coverage calculation if there where blocks loaded from database.
If there are not, nothing changed, so nothing to recalculate.
Takes a good deal from the clock.
2017-02-26 12:57:38 +01:00
Sascha L. Teichmann
6b5f791a8a Use write lock when executing block deletion. 2016-07-27 16:38:54 +02:00
Sascha L. Teichmann
d6ddd047a4 Fixed and simplified redis network code. 2016-07-26 16:32:24 +02:00
Sascha L. Teichmann
60f43c9f52 Implementation of Redis command HDEL. Needs testing. For issue #18. 2016-07-26 16:15:10 +02:00
Sascha L. Teichmann
bae7e7c3e6 Made size of hashes LRU cache a parameter set by the webmapper. 2016-05-10 21:02:16 +02:00
Sascha L. Teichmann
7cbe2e516c Revert enabling websockets by default. Slipped in by accident. 2016-05-10 20:53:58 +02:00
Sascha L. Teichmann
69ee5af388 Implemented a simple LRU cache with max 256 entries for base tile hasing. TODO: Improve test. 2016-05-10 18:57:14 +02:00
Sascha L. Teichmann
5d1be98ae5 Cosmetics. 2016-05-08 23:27:11 +02:00
Sascha L. Teichmann
4c24a01607 Use empty structs instead of bools in changes. 2016-05-08 23:20:51 +02:00
Sascha L. Teichmann
da309c73d8 Removed obsolete comment. 2016-05-08 23:12:29 +02:00
Sascha L. Teichmann
496a60aa29 Simplified mask embedding in parent calculation of pyramid tiles. 2016-05-08 23:07:19 +02:00
Sascha L. Teichmann
da2a6a82d4 Simplified tiles update processing and forwarding. 2016-05-08 22:30:00 +02:00
Sascha L. Teichmann
0900bd16ce Finished logic to supress pyramid regeneration in mtwebmapper. Untested. 2016-05-08 15:38:50 +02:00
Sascha L. Teichmann
4bed73d9e3 Prepare tiles updater in webmapper to have unupdated base tiles. 2016-05-08 15:13:40 +02:00
Sascha L. Teichmann
9f1735eb29 mtredisalize: Renamed parser.go to redisparser.go 2016-04-25 11:46:59 +02:00
Sascha L. Teichmann
72bd5ec77a mtredisalize: Removed a useless level of abstraction in redis parser. 2016-04-25 11:43:50 +02:00
Sascha L. Teichmann
14ae6d3873 s/SqliteBackend/SQLiteBackend/ s/SqliteSession/SQLiteSession/ in mtredisalize. 2016-04-24 20:54:05 +02:00
Sascha L. Teichmann
d21fa6c027 Be more explicit about data flow directions of the channels in mtredisalize. 2016-04-24 20:47:55 +02:00
Sascha L. Teichmann
4dc43881c6 Added a few more comments to mtredisalize and unexport a few symbols. 2016-04-24 19:41:15 +02:00
Sascha L. Teichmann
7ac3c67e63 Made mtdbconverter pass golint by adding the missing comments. 2016-04-24 18:37:08 +02:00
Sascha L. Teichmann
ea57c7c35f Silence all warnings of golint not related to missing comments. 2016-04-24 12:41:58 +02:00
Sascha L. Teichmann
607b4de9ec Dedup code. 2016-04-23 21:09:23 +02:00
Sascha L. Teichmann
0db9b519a6 Implement fetaure request issue #17
mtseeder and mtwebmapper got an option to set the background color where no nodes are generated, yet.
2016-04-23 16:45:33 +02:00
Sascha L. Teichmann
0f01065fdf Merged. 2016-04-06 11:45:59 +02:00
Sascha L. Teichmann
58a44c2d40 Be more careful with host IPs which call /update. They are potentially IPv6. Fixes Issue #16. 2016-04-06 11:44:51 +02:00
Sascha L. Teichmann
4522708ddf Updates #15 Prevent a potential file handle leak in sending update notifications via POST to mtwebmapper. 2016-01-24 14:31:15 +01:00
Sascha L. Teichmann
f658d12641 Use github.com/bamiaux/rez instead of github.com/nfnt/resize for resampling the pyramid tiles. It is much faster but needs some testing. 2015-12-25 22:07:54 +01:00
Sascha L. Teichmann
dc2845abb1 Made pyramid seeding more spammy (user request). TODO: percentage output would be nicer. 2015-08-10 17:43:52 +02:00
Sascha L. Teichmann
e606e2700f Fixes #14. mtseeder and mtwebmapper now have command line flags -ymin=block and -ymax=block to limit the y range of mapping. Defaults to full range. 2015-07-27 19:03:47 +02:00
Sascha L. Teichmann
62a53dc26b Unified handling of printing versions of programs (--version). Setting version to 0.5 2015-07-26 22:04:16 +02:00
Sascha L. Teichmann
f6b5f9ce97 Removed totally outdated README of mtredisalize. 2015-07-26 16:48:19 +02:00
Sascha L. Teichmann
f6e5eb8510 Moved ordering of two int64 to common/math. 2015-07-26 16:40:50 +02:00
Sascha L. Teichmann
8817094001 Added missing copyright headers and updated dates on others. 2015-07-26 16:33:29 +02:00
Sascha L. Teichmann
becf017edc Small cleanup. Moved min to common/math. 2015-07-26 12:32:59 +02:00
Sascha L. Teichmann
e1eb03813f Add a -transparent-dim=percent flag to set the extra dimming of transparent materials each depth meter. 2015-07-26 11:55:38 +02:00
Sascha L. Teichmann
68bb1ee320 Avoid redundant decoding when sendind coordinate to change tracker or coverage index.
Don't try to store in coverage index if the key already exists.
Handle more potential database errors.
2015-07-25 22:18:16 +02:00
Sascha L. Teichmann
fed5b32469 Small nit. 2015-07-25 20:39:05 +02:00
Sascha L. Teichmann
06c8ef8f88 Fixed interleaved sqlite spatial query. 2015-07-25 14:15:06 +02:00
Sascha L. Teichmann
c9686a7f24 Fixed non-interleaved LevelDB backend. 2015-07-24 13:15:05 +02:00
Sascha L. Teichmann
fe6a551f06 Break some over-long lines. 2015-07-24 10:01:39 +02:00
Sascha L. Teichmann
29eeb5e301 Implemented usage of coverage index in non-interleaved LevelDB backend. Untested, yet! 2015-07-24 08:30:52 +02:00
Sascha L. Teichmann
d53cea250c Started coverage index support for non-interleaved LevelDb backends. 2015-07-24 08:13:24 +02:00
Sascha L. Teichmann
3fc89ad0f5 Removed dead code. 2015-07-23 21:14:35 +02:00
Sascha L. Teichmann
93d4aedffa Fixed non-interleaved sqlite support. 2015-07-23 16:20:42 +02:00
Sascha L. Teichmann
1921b8211b Some little experiment with a coverage index to speed up spatial queries if backend has no Z order support. 2015-07-21 22:01:10 +02:00
Sascha L. Teichmann
470b47f70a Fixed endless loop in Z order range query code in SQLite3 backend. 2015-07-21 12:53:55 +02:00
Sascha L. Teichmann
ecd599e44d Terminate all log.Printf with a new line. 2015-07-20 14:19:41 +02:00
Sascha L. Teichmann
2d00eb9567 Simplifications when decoding blocks from database to save some memory allocations. 2015-06-21 22:47:06 +02:00
Sascha L. Teichmann
5c239a7b60 Merged. 2015-06-21 18:37:43 +02:00
Sascha L. Teichmann
6f10be6d92 Removed another usage of fmt.Sprintf. 2015-06-21 18:36:26 +02:00
Sascha L. Teichmann
e8bb225d94 Fix a few golint naming nits. 2015-06-21 13:31:03 +02:00
Sascha L. Teichmann
b22e778902 Error log simplification ported from syndtr-goleveldb branch. 2015-06-21 13:17:10 +02:00
Sascha L. Teichmann
b74671ae63 Simplified error handling in Redis connection handler.
This also reduces the diff size to the syndtr-goleveldb branch.
2015-06-02 20:10:56 +02:00
Sascha L. Teichmann
5172e02380 Some minor code cleanups in mtwebmapper. 2015-05-27 18:36:03 +02:00
Sascha L. Teichmann
9d1b0cc7c6 Silence a few golint warnings. 2015-05-27 16:57:08 +02:00
Sascha L. Teichmann
f80d9e452c Don't use fmt.Sprintf when sending size of a redis bulk string. 2015-05-27 16:48:51 +02:00
Sascha L. Teichmann
a165bcd53a Removed some dead code. 2015-05-27 00:02:13 +02:00
Sascha L. Teichmann
29a5abeec4 Simplified Redis code a bit when writing booleans to client. 2015-05-26 19:25:26 +02:00
Sascha L. Teichmann
af469a3173 Merged. 2015-05-26 18:14:48 +02:00
Sascha L. Teichmann
75b2496fa6 Fixes issue #7. mtredisalize implements Redis PING command. 2015-05-26 18:12:55 +02:00
Sascha L. Teichmann
4d467f3158 Reverted accidentally default activation of websockets in d514399. 2015-05-25 13:04:28 +02:00
Sascha L. Teichmann
787fc959d0 Removed some dead code. 2015-05-01 14:04:23 +02:00
Sascha L. Teichmann
3b8faba353 Fixed small nit found by golint. 2015-03-14 19:03:25 +01:00
Sascha L. Teichmann
b029c473a8 Made maxBulkStringSize a command line option 'max-bulk-string-size'. It defaults to 32MB. 2015-03-14 19:01:00 +01:00
Sascha L. Teichmann
7a6d0a0d31 Fixed none vanishing manual update control when switching to auto update. 2015-03-13 17:06:50 +01:00
Sascha L. Teichmann
f71db790e7 Replace string.contains() with string.indexOf() which is better supported. 2015-03-13 16:25:19 +01:00
Sascha L. Teichmann
b54b2b6b91 Fixed vanishing players whem refreshing after switching back from auto-update. 2015-03-13 16:06:06 +01:00
Sascha L. Teichmann
4b4c620c35 Removed pointless logging. 2015-03-13 15:46:33 +01:00
Sascha L. Teichmann
c3b634669a Simplified auto update code. Removed pointless tile updating when there are only player updates. Removed redundant JSON parsing. 2015-03-13 15:43:59 +01:00
Sascha L. Teichmann
71636a5b4c Fix state switching auto-update/manual refresh. 2015-03-13 15:03:10 +01:00
Sascha L. Teichmann
dda0716053 To keep websockets alive send every eight seconds a ping to the server. 2015-03-13 12:29:55 +01:00
Sascha L. Teichmann
d2b6ff4fbb Orange is the new red. 2015-03-10 14:29:55 +01:00
Raimund Renkert
fa3c39297f Use leaflet awesome marker as icon for players. 2015-03-10 14:10:03 +01:00
Raimund Renkert
5567c7e882 Added leaflet awesome markers. 2015-03-10 14:09:19 +01:00
Sascha L. Teichmann
65caefaf85 Fixed track_players mod. 2015-03-10 12:57:00 +01:00
Sascha L. Teichmann
524fe451b1 Fixes small errors in handling players detection in mtwebmapper. 2015-03-10 12:49:10 +01:00
Sascha L. Teichmann
d242fb5cf1 Fixed stupid logic mistake. 2015-03-10 12:17:28 +01:00
Sascha L. Teichmann
09e24cda65 Optimize the case that nothing has changes concerning the players. This should not lead to broadcasting of notifications. 2015-03-10 12:08:14 +01:00
Raimund Renkert
6e9585ed67 Added marker icon for players. 2015-03-09 17:55:53 +01:00
Raimund Renkert
3c63fbf185 Added players layer and update data in manual and auto mode. 2015-03-09 17:55:19 +01:00
Raimund Renkert
b3ba074e28 Added leaflet ajax plugin. 2015-03-09 17:52:17 +01:00
Raimund Renkert
9523353167 Swapped X/Y coordinates for player. 2015-03-09 17:50:58 +01:00
Sascha L. Teichmann
28fc4d0734 Dont lock the player list all the time when serving the GeoJSON over /players. 2015-03-09 16:05:54 +01:00
Sascha L. Teichmann
c918b538db Broadcast player posistion to websocket clients this could be high traffic. 2015-03-09 15:37:57 +01:00
Raimund Renkert
99d4f700be Surround player name attribute with double quotes. 2015-03-09 15:01:47 +01:00
Sascha L. Teichmann
3f5bf6c240 Start with empty player list. 2015-03-09 14:32:14 +01:00
Sascha L. Teichmann
5d7b910a4d Read players from fifo. 2015-03-09 14:31:20 +01:00
Sascha L. Teichmann
ff08f2af94 Serve GeoJSON encoded players via /players. 2015-03-09 14:08:52 +01:00
Sascha L. Teichmann
cbfb594c83 Added JSON marshaller for players. 2015-03-09 14:01:30 +01:00
Sascha L. Teichmann
da51389935 Wire websocket forwarder with players updater. 2015-03-09 13:16:31 +01:00
Sascha L. Teichmann
ece8924355 Add stub for players controller. 2015-03-09 13:09:13 +01:00
Sascha L. Teichmann
d6b4bb6352 Replaced 'if (cond) { ...; return; } if (!cond) { ...; return; }' with 'if (cond) { ... } else { ... }'. 2015-03-08 13:39:02 +01:00
Sascha L. Teichmann
446a3ddc10 Small JS nits. 2015-03-04 12:10:07 +01:00
Raimund Renkert
c32e2646af Check the browsers websocket support and added flag to turn websocket on/off. 2015-03-04 11:05:36 +01:00
Raimund Renkert
7413221341 Replaced checkbox with toggle button to start automatic updates. 2015-03-04 10:36:59 +01:00
Sascha L. Teichmann
f708a7c44b Added forgotten semikola in JS. 2015-03-04 09:33:07 +01:00
Sascha L. Teichmann
b71f8bd208 Removed the radix 10 from parseInt calls as it is the default. 2015-03-04 08:55:20 +01:00
Sascha L. Teichmann
49c95f15ca Added missing auto update javascript file. Implemented smarter invalidatioon code based on server notification. 2015-03-04 00:39:35 +01:00
Sascha L. Teichmann
0b7c8b6afe Applied rrenkert's patch to have an autoupdating client. 2015-03-03 15:22:00 +01:00