Commit Graph

34 Commits

Author SHA1 Message Date
b8bf98107f include needed headers for mapnik 2014-08-13 08:37:09 -07:00
ccbc9e7a2b fix usage of mapnik::parameters 2014-08-13 08:36:36 -07:00
1d43b86762 Merge branch 'master' of github.com:openstreetmap/mod_tile 2014-08-13 08:11:35 -07:00
b76d7a744b resize existing map rather than creating a new one 2014-08-13 08:11:31 -07:00
34dbe66acb Merge pull request #82 from Zverik/retina
SCALE option to produce retina tiles
2014-07-09 12:56:12 -06:00
7e9abfbb29 SCALE option to produce retina tiles 2014-07-09 18:23:41 +04:00
6600d38a54 Extend autoconf and automake to use an installed libiniparser
This helps systems with newer (and therefore relying on libiniparser) samba versions installed.
2014-05-29 08:56:52 +02:00
122adae7fb osx compile fixes 2014-05-23 14:09:13 -07:00
dcc919c5e4 support Mapnik 3.x 2014-05-20 17:10:00 -07:00
ebfd8aafbb support Mapnik 3.x 2014-05-20 17:08:12 -07:00
9d4e10e7c0 Parameterization options and mime type of renderd protocol 3 were not passed to slave threads
Expand some socket debuging information
2014-05-18 11:32:22 -06:00
13da3afe70 render_list was not blocking on requests and would swamp renderd with requests 2013-12-24 01:03:20 +01:00
4f531b682a Replace malloc+memset by calloc in render_expired.c
This improves startup time of render_expired, when using --max-zoom=20, as a
2GB array is initialized to 0.
2013-12-08 00:05:07 +01:00
66e5538dc4 fix gcc errors 2013-12-05 17:47:04 +01:00
5dffe058e6 fix gcc errors 2013-12-05 16:35:49 +01:00
e5d618459e fix gcc errors 2013-12-05 16:19:05 +01:00
681fbd4eb2 Limit sscan in URL parsing to not overflow the allocated bufferes 2013-10-23 21:03:55 -06:00
c0bc71162d Fix issues found via coverity scan 2013-10-23 20:09:56 -06:00
e2c4b62e67 Fix issues found via coverity scan 2013-10-23 20:09:27 -06:00
db982683ad Fix issues found via coverity scan 2013-10-23 20:08:33 -06:00
d17a27261c Fix some issues in the test framework found via coverity scan 2013-10-23 20:07:50 -06:00
99357a53ab Improve backwards and forward compatibility for renderd protocol v3/v2 2013-10-20 16:03:32 -06:00
1585e50d7a Fix compile on older mapnik version. This should fix #49 2013-10-18 09:16:56 -06:00
c4aabc5701 Enable mapnik style parameterization
Provide a parameterization function for internationalizing the names
2013-10-13 23:26:31 -06:00
e70bfafa20 Extend the storage backends to support options 2013-10-13 23:25:14 -06:00
5941e23ced Support options for tile layers in mod_tile.
If a tile layer has options enabled, the URL changes to

http://localhost/style/options/z/x/y.ext
2013-10-13 23:23:10 -06:00
fdc317a8f3 Update mod_tile to renderd protocol to version 3.
Include an "options" string and a "mimetype" string.
2013-10-13 23:22:08 -06:00
3b2fcd5ba2 Fix sending back NotDone from renderd immediately if
request doesn't fit into a rendering queue

RenderPrio, Render and RenderLow queues each only have a size of 32 entries. If these are full,
then requests overflow into the dirty queue. If this happens, renderd should send the NotDone
back immediately so that mod_tile doesn't wait for potentially a long time.

This however only worked for Render requests, but not RenderPrio or RenderLow. This patch fixes this.
2013-08-29 00:34:56 -06:00
c483c07338 Try and be more helpful with error messages if an exception is thrown while saving.
Also don't exit renderd entirely if an exception is thrown during saving.
2013-08-17 14:41:58 -06:00
b94be88ebb Add a OSGB36 projection to renderd
Add some tests for tile number to projected coordinate bounds
2013-08-16 02:36:27 -06:00
0ce9f43437 Allow to configure different aspect ratios of tiles.
For example for Plate Carree which has a 2x1 ratio
or OSGB which can use a 1x2 ratio
2013-08-16 02:35:31 -06:00
4c2faccb12 Improve CORS support
* Only treat OPTIONS as preflight if Access-Control-Request-Method  is set
* Only send Access-Control-Allow-Headers for preflight requests
* Don't send a bogus Access-Control-Allow-Headers value
2013-08-13 09:33:04 +01:00
1b4c56d8ed Add another priority level (RenderLow) to accommodate rerenders after style changes
In addition to Render and RenderPrio, add another priority level of RenderLow.

The idea is that if you rerender all tiles by touching planet-import-complete and
thereby likely overloading the server's rendering capacity you want to prioritize rerendering
of tiles that were explicitly marked dirty due to data changes over rerendering
due to planet-import-complete updates.

This is achieved by splitting rendering requests by if they are "old", or "very old".
As the tile expiry sets back the modification date many years, mod_tile splits
rendering requests based on how old the tiles are. If they are no more than a
certain threshold (currently set to one year) old, they are rendered with lower priority.
2013-08-10 23:05:28 -06:00
273973ed03 Clean up mod_tile directory by moving source files into a common src/ sub directory
also move includes into includes/
2013-08-09 18:46:10 -06:00