<p>I am trying to write one. You can see the code at <a href="https://github.com/sri-soham/mapnik-utf8grid-tester">https://github.com/sri-soham/mapnik-utf8grid-tester</a> . I am able to generate tiles for the given x, y, z but the utf grid is coming up empty.</p>
<p>As I see it, the problem is with writing features to grid with grid-renderer. Relevant code being</p>
<pre><code>mapnik::grid_renderer<mapnik::grid> ren(m_map, my_grid, 1.0, 0, 0);
std::vector<mapnik::layer> const& layers = m_map.layers();
ren.apply(layers[0], attributes);
</code></pre>
<p>in this file <a href="https://github.com/sri-soham/mapnik-utf8grid-tester/blob/master/map_tile.cpp">https://github.com/sri-soham/mapnik-utf8grid-tester/blob/master/map_tile.cpp</a> .</p>
<p>I am new to mapnik and c++. Any pointers in getting this right?</p>
<p>Thanks</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/mod_tile/issues/58#issuecomment-290906077">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AD2-7v9wdD8dXDCHJBQno3flp5zkPKCsks5rrg1WgaJpZM4BSjH-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7scKb9YCJl30sApMugR9MhbE1Ba3ks5rrg1WgaJpZM4BSjH-.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/mod_tile/issues/58#issuecomment-290906077"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/mod_tile","title":"openstreetmap/mod_tile","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/mod_tile"}},"updates":{"snippets":[{"icon":"PERSON","message":"@sri-soham in #58: I am trying to write one. You can see the code at https://github.com/sri-soham/mapnik-utf8grid-tester . I am able to generate tiles for the given x, y, z but the utf grid is coming up empty.\r\n\r\nAs I see it, the problem is with writing features to grid with grid-renderer. Relevant code being\r\n\r\n```\r\nmapnik::grid_renderer\u003cmapnik::grid\u003e ren(m_map, my_grid, 1.0, 0, 0);\r\nstd::vector\u003cmapnik::layer\u003e const\u0026 layers = m_map.layers();\r\nren.apply(layers[0], attributes);\r\n```\r\n\r\nin this file https://github.com/sri-soham/mapnik-utf8grid-tester/blob/master/map_tile.cpp .\r\n\r\nI am new to mapnik and c++. Any pointers in getting this right?\r\n\r\nThanks"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/mod_tile/issues/58#issuecomment-290906077"}}}</script>