This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

On-demand rendering with UTFgrid support?

0

What would it need to serve live rendered tiles (such as in mod_tile / Tirex) with UTFgrid .json files? mod_tile does not seem to support UTFgrid. Does Tirex?

TileStream only can serve pre-rendered MBtiles.

Is there any working alternative?

asked 26 Dec '12, 12:57

AddisMap_Alexander's gravatar image

AddisMap_Ale...
1.1k314062
accept rate: 0%

edited 26 Dec '12, 12:57


2 Answers:

0

TileMill actually can be used as an tileserver.

Edit the config.json and add the following (as shown in the TileMill docs)

  "listenHost": "0.0.0.0",
  "coreUrl": "127.0.0.1:20009",
  "tileUrl": "0.0.0.0:20008",
  "server": true

Tiles then would be surfed under for example:

http://0.0.0.0:20008/tile/ProjectName/z/x/y.png

and the UTFgrid info under

http://0.0.0.0:20008/tile/ProjectName/z/x/y.grid.json

answered 26 Dec '12, 13:16

AddisMap_Alexander's gravatar image

AddisMap_Ale...
1.1k314062
accept rate: 0%

0

The easiest way to get the {tirex|renderd}/mod_tile toolchain to support per-tile metadata - UTFgrid, Metawriter, or others - would probably be to extend the meta tiles used by these systems, which currently contain the PNG data only, to also include the extra data.

Since these systems usually render a larger area - typically, 8x8 tiles - in one go for performance reasons, and cut up the resulting PNG into tiles afterwards, you'd have to make sure the metadata is treated similarly.

answered 27 Dec '12, 10:16

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .