Hi John,<br><br><div class="gmail_quote">On Mon, May 14, 2012 at 5:43 AM, 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">
On 13 May 2012 22:49, Etienne Tourigny &lt;<a href="mailto:etourigny.dev@gmail.com">etourigny.dev@gmail.com</a>&gt; wrote:<br>
...<br>
&gt;<br>
&gt; Basically I think there could be 2 concurrent and complementary ways<br>
&gt; to implement grids:<br>
&gt;<br>
&gt; 1) basic grid in core, similar to what is already in the composer map<br>
&gt; (and in my branch)<br>
&gt; 2) more refined grid(s) as plugin/vector layers, whose rendering order<br>
&gt; can be fine-tuned<br>
<br>
Nice work Etienne! Over the weekend, I&#39;ve knocked up a little plugin<br>
of the second type - a plugin layer that uses the new symbology<br>
system.<br>
<br>
It&#39;s marked as experimental, and there are a few things on the TODO<br>
list, but it can be found in my plugin repo:<br>
<a href="http://109.123.122.13/qgis/plugins.xml" target="_blank">http://109.123.122.13/qgis/plugins.xml</a><br>
<br>
One of the todo&#39;s is saving the styling information - I can&#39;t find<br>
where I can get the XML of the symbol for my writeXml() function. Any<br>
ideas?<br>...</blockquote><div><br>I tried your Grid Overlay plugin and this is what I found.<br><br>Same error as Etienne reported:<br><br>Traceback (most recent call last):<br>
  File &quot;/home/tourigny/.qgis/python/<div id=":136">plugins/grid_overlay/gridpluginlayer.py&quot;,<br>
line 63, in draw<br>
    self.symbol.renderPolyline(polyline, renderContext)<br>...<br><br>it also occurs when I cancel the dialog. The plugin layer is made regardless of cancelling dialog on initial plugin launch.<br><br><br>When I click the &#39;Set Style...&#39; button I get this error:<br>
<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">Traceback (most recent call last):<br>  File &quot;/Users/larrys/.qgis/python/plugins/grid_overlay/gridpropertiesdialog.py&quot;, line 42, in chooseStyle<br>
    self, False)<br>TypeError: QgsSymbolV2SelectorDialog(QgsSymbolV2, QgsStyleV2, QgsVectorLayer, QWidget parent=None, bool embedded=False): argument 3 has unexpected type &#39;GridPropertiesDialog&#39;</p> </div>Is that not implemented yet?<br>
<br><br>I noticed in your metadata.txt and __init__.py you assigned the Layers category, but the action doesn&#39;t show up there. Does it need to use the following to be added to/removed from the Layer menu? (worked when I edited gridoverlay.py):<br>
<br>self.iface.insertAddLayerAction(self.action_newGrid)<br>self.iface.removeAddLayerAction(self.action_newGrid)<br><br><br>Tested with QGIS 1.8 rev<style type="text/css">p, li { white-space: pre-wrap; }</style>.69ef4de on Mac 10.6.8.<br>
<br>Looking forward to using your plugin on the current map I am working with.<br><br><br>Regards,<br><br>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota<br>
</div></div>