<div dir="ltr"><div><div><div><div><div>Alex, alright, should have looked at the source code before asking something that could be answered quite easily. :)<br><br></div>Few comments and observations after playing with the plugin this morning:<br>
</div>- QTiles currently renders tiles without applying antialiasing, resulting in jagged lines. IMO, disabling antialiasing should be optional, maybe through a checkbox in the rendering option window. I've enabled antialiasing by adding painter.setRenderHint(QPainter.Antialiasing) below line 167 in titlingthread.py<br>
</div><div>- The tile background color is hardcoded to be white (line 165, titlingthread.py); it might be better to take the background color from the project's background color setting? The project I used to test out QTiles has a gray background color set through the project settings, and the QTiles white background got me going "huh?" for a minute :)<br>
</div>- As it stands, the labelling rendering is kind of a mess. I understand this isn't something that can be fixed at the QTiles level. Might be worth coordinating with Larry Shafter to see whether there are quick fixes that could be applied to improve things. <br>
</div>- To take care of some of the label cut-off, would it be possible for you to not only render the 256x256 tile, but instead do something like this: render a 3 x 3 matrix of 256 x 256 tiles, and save only the central 256 x 256 region as the PNG tile. It wouldn't take care of all label issues, but it'd help reduce it.<br>
- One other thing that could be done at the QTiles level is to warn users 
when it detects that polygon layer(s) are using "most problematic" 
labelling settings (i.e. I'm thinking here of relying on centroid of 
visible polygon centroid, which results in labels duplicated many, many 
times for each tiles with big polygons, such as provincial / district 
boundaries)</div><div><div><div><div><div><div><div><br></div><div>Other than that, I'm loving it more and more ;)<br><br></div><div>Math<br></div><div><br></div></div></div></div></div></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Dec 31, 2012 at 8:46 AM, Mathieu Pellerin <span dir="ltr"><<a href="mailto:nirvn.asia@gmail.com" target="_blank">nirvn.asia@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>This is probably the best gift given out this christmas : )<br><br></div>Alexander, quick question, does QTiles render the tiles in the CRS defined by the project, or does it automatically switches to the Google Mercator? <br>

<br></div>Best,<br><br>Math<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 26, 2012 at 9:24 PM, G. Allegri <span dir="ltr"><<a href="mailto:giohappy@gmail.com" target="_blank">giohappy@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Wow, thanks for this very useful Christmas gift! <br>
I'm gonna test it next days for a real application ;-) </p>
<p dir="ltr">giovanni </p>
<p dir="ltr">Sent from Nexus</p>
<div class="gmail_quote">Il giorno 26/dic/2012 14:25, "Alexander Bruy" <<a href="mailto:alexander.bruy@gmail.com" target="_blank">alexander.bruy@gmail.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi all and sorry for cross-posting,<br>
<br>
we (NextGIS) are pleased to announce QTiles plugin for QGIS.<br>
<br>
QTiles designed to generate raster tiles from QGIS projects according<br>
to the Slippy Map specification [0] and supports two output types:<br>
directory and ZIP-archive.<br>
<br>
You can get plugin from official repo (don't forget to enable<br>
experimental plugins). Comments and bugreports are welcome.<br>
<br>
Merry Christmas and happy New Year!<br>
<br>
[0] <a href="http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames" target="_blank">http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames</a><span><font color="#888888"><br>
<br>
--<br>
Alexander Bruy<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</font></span></blockquote></div>
<br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>