Commit Graph

42 Commits

Author SHA1 Message Date
Sascha L. Teichmann
5442fab97d Fix issues found by staticcheck 2024-01-06 10:34:37 +01:00
Sascha L. Teichmann
da2b327985 Wait until all tiles are written out or are cancelled. 2022-03-01 21:02:08 +01:00
Sascha L. Teichmann
c507663826 Use a more general db client factory approach. 2022-03-01 14:47:14 +01:00
Sascha L. Teichmann
d98df1c1cd WIP: add tile updating in in web mapper with pg listen/notify 2022-02-28 11:07:50 +01:00
Sascha L. Teichmann
ae230d5abf Use db abstraction in webmapper. 2022-02-27 21:31:55 +01:00
Sascha L. Teichmann
6a1356f0eb When an tile is rendered the writing to disk can be done in background
concurrently to the rendering of the next tile.
2017-03-06 15:43:30 +01:00
Sascha L. Teichmann
e68e762322 Support unix domain sockets in redis clients, too. 2017-03-05 14:38:30 +01: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
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
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
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
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
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
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
ecd599e44d Terminate all log.Printf with a new line. 2015-07-20 14:19:41 +02:00
Sascha L. Teichmann
5172e02380 Some minor code cleanups in mtwebmapper. 2015-05-27 18:36:03 +02:00
Sascha L. Teichmann
33a53c11da Factored out some common stuff to separate file. 2015-03-02 13:14:29 +01:00
Sascha L. Teichmann
3e0e909a69 Added 'websocket' branch. Added mechanism to forward the coords of the updated base tiles. 2015-03-02 13:10:30 +01:00
Sascha L. Teichmann
4ea51eb744 mtwebmapper: Only allow update requests from a white list of remote hosts. Defaults to localhost. To allow all hosts use command line option -u='' 2014-11-15 13:40:39 +01:00
Sascha L. Teichmann
8452a26fcd Render transparent tiles if command line flag is set. 2014-10-26 18:36:47 +01:00
Sascha L. Teichmann
8630300332 Adjusted imports to make it compilable again. 2014-10-03 12:07:53 +02:00
Sascha L. Teichmann
2bea824153 mtwebmapper: simplified pyramid tile updater a bit. 2014-09-22 02:37:44 +02:00
Sascha L. Teichmann
11a4b9f471 mtwebmapper: Reduced the amount of copying from old tile. Code still reads a bit clumpsy. 2014-09-22 00:56:29 +02:00
Sascha L. Teichmann
8b6470fc9c mtwebmapper: Updating the pyramid tiles finally works but the amount of copying from the original can be minimized. 2014-09-22 00:25:24 +02:00
Sascha L. Teichmann
c428756beb mtwebmapper: First version of pyramid tile updater. Needs testing. 2014-09-21 17:30:19 +02:00
Sascha L. Teichmann
4e80236e26 mtwebmapper: Pass right base dir to pyramid update workers. 2014-09-21 13:29:03 +02:00
Sascha L. Teichmann
58d30b1323 mtwebmapper: Do not fire up too many base tile re-generator workers if there is not much to do. 2014-09-21 13:18:13 +02:00
Sascha L. Teichmann
33337d5df2 mtwebmapper: Added scaffold for updating the pyramid tiles. TODO: Implement th actual imaging stuff. 2014-09-21 12:57:21 +02:00
Sascha L. Teichmann
8c29975d27 Fixed tile offset. 2014-09-20 21:57:01 +02:00
Sascha L. Teichmann
216f641fa3 mtwebmapper: Move BaseTileCreator to common. TODO: Make mtseeder use it, too. 2014-09-20 15:21:01 +02:00
Sascha L. Teichmann
b3ce895294 mtwebmapper: renamed yRanges to tileDepths in preparation of moving the BaseTileCreator to common. 2014-09-20 14:39:51 +02:00
Sascha L. Teichmann
3e4c1aa2d9 mtwebmapper: To avoid possible races when serving tiles the same time as re-generating them the re-generation write them to temp files and rename them afterwards. 2014-09-20 12:28:38 +02:00
Sascha L. Teichmann
e899b13889 Regenerate base tiles when db signals changes. TODO remove duplicate code from mtseeder. 2014-09-19 13:06:04 +02:00
Sascha L. Teichmann
3f13738d41 Initial decoding from incoming block changes. 2014-09-18 15:21:40 +02:00
Sascha L. Teichmann
ed9e37e892 mtwebmapper: Cleaned up gorilla mux usage a bit. Added stub for post target to get changes from mtredisalize server. 2014-09-18 07:52:37 +02:00