Commit Graph

64 Commits

Author SHA1 Message Date
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