Hi John,<br><br><div class="gmail_quote">On Mon, May 14, 2012 at 1:36 PM, John Donovan <span dir="ltr"><<a href="mailto:mersey.viking@gmail.com" target="_blank">mersey.viking@gmail.com</a>></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 <<a href="mailto:larrys@dakotacarto.com" target="_blank">larrys@dakotacarto.com</a>> wrote:<br>
><br>
> I tried your Grid Overlay plugin and this is what I found.<br>
><br>
> Same error as Etienne reported:<br>
><br>
><br>
> Traceback (most recent call last):<br>
> File "/home/tourigny/.qgis/python/<br>
> plugins/grid_overlay/gridpluginlayer.py",<br>
> line 63, in draw<br>
> self.symbol.renderPolyline(polyline, renderContext)<br>
> ...<br>
<br>
That's odd, I'm using 1.7.4 and Python 2.7.2, but I can'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'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">
> When I click the 'Set Style...' button I get this error:<br>
><br>
> Traceback (most recent call last):<br>
> File<br>
> "/Users/larrys/.qgis/python/plugins/grid_overlay/gridpropertiesdialog.py",<br>
> line 42, in chooseStyle<br>
> self, False)<br>
> TypeError: QgsSymbolV2SelectorDialog(QgsSymbolV2, QgsStyleV2,<br>
> QgsVectorLayer, QWidget parent=None, bool embedded=False): argument 3 has<br>
> unexpected type 'GridPropertiesDialog'<br>
><br>
><br>
> 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'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'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'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>