Hi John,<br><br><div class="gmail_quote">On Mon, May 14, 2012 at 1:36 PM, John Donovan <span dir="ltr">&lt;<a href="mailto:mersey.viking@gmail.com" target="_blank">mersey.viking@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Larry and Etienne,<br>
Thanks for being brave!<br>
<br>
On 14 May 2012 18:48, Larry Shaffer &lt;<a href="mailto:larrys@dakotacarto.com" target="_blank">larrys@dakotacarto.com</a>&gt; wrote:<br>
&gt;<br>
&gt; I tried your Grid Overlay plugin and this is what I found.<br>
&gt;<br>
&gt; Same error as Etienne reported:<br>
&gt;<br>
&gt;<br>
&gt; Traceback (most recent call last):<br>
&gt;  File &quot;/home/tourigny/.qgis/python/<br>
&gt; plugins/grid_overlay/gridpluginlayer.py&quot;,<br>
&gt; line 63, in draw<br>
&gt;    self.symbol.renderPolyline(polyline, renderContext)<br>
&gt; ...<br>
<br>
That&#39;s odd, I&#39;m using 1.7.4 and Python 2.7.2, but I can&#39;t imagine the<br>
API to have changed. It runs fine on both my Linux and Windows boxes.<br>
Looking at the C++ docs, indeed RenderPolyline() takes a QgsFeature as<br>
the second parameter, so I&#39;m not sure why it should work for me!</blockquote><div><br>1.7.4 method:<br>QgsLineSymbolV2.renderPolyline(QPolygonF, QgsRenderContext, int layer=-1, bool selected=False)<br><br>1.8 method:<br>

<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">QgsLineSymbolV2.renderPolyline(QPolygonF, QgsFeature, QgsRenderContext, int layer=-1, bool selected=False)</p> <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

&gt; When I click the &#39;Set Style...&#39; button I get this error:<br>
&gt;<br>
&gt; Traceback (most recent call last):<br>
&gt;   File<br>
&gt; &quot;/Users/larrys/.qgis/python/plugins/grid_overlay/gridpropertiesdialog.py&quot;,<br>
&gt; line 42, in chooseStyle<br>
&gt;     self, False)<br>
&gt; TypeError: QgsSymbolV2SelectorDialog(QgsSymbolV2, QgsStyleV2,<br>
&gt; QgsVectorLayer, QWidget parent=None, bool embedded=False): argument 3 has<br>
&gt; unexpected type &#39;GridPropertiesDialog&#39;<br>
&gt;<br>
&gt;<br>
&gt; Is that not implemented yet?<br>
<br>
Another odd one. GridPropertiesDialog, the class in which this<br>
function is defined, is inherited from QtGui.QDialog, so should make a<br>
valid parent to the symbol selector dialog. I&#39;ve set it to None on my<br>
machine with no ill effects.<br></blockquote><div><br>1.7.4 method:<br>QgsSymbolV2SelectorDialog(QgsSymbolV2, QgsStyleV2, QWidget parent=None, bool embedded=False)<br><br>1.8 method:<br>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">QgsSymbolV2SelectorDialog(QgsSymbolV2, QgsStyleV2, QgsVectorLayer, QWidget parent=None, bool embedded=False)</p><br>I can&#39;t even find this method in the current API docs. Just referenced in the error dialog, and last seen in the 1.7.4 API docs.<br>
<br>Didn&#39;t see these documented in the API changes part of the wiki [0]. Maybe there is a different, or more up-to-date, listing somewhere.<br><br><br>I tested your plugin with 1.7.4-4 on Mac 10.6.8 and it works fine. One suggestion: maybe allow the rotation for be about a chosen point, instead of only SE corner?<br>
<br>[0] <a href="http://hub.qgis.org/wiki/17/API_changes_for_version_20">http://hub.qgis.org/wiki/17/API_changes_for_version_20</a><br><br>Regards,<br><br>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota<br>

</div></div>