<div dir="ltr"><div>Hi all, </div><div><br></div><div>I'm trying to render marker symbols that are bigger than the feature geometry bounding box. When the feature is not visible (because it is out of the current extent) the symbol isn't rendered.</div>
<div><br></div><div>I think the code in the draw method of qgsvectorlayer.cpp is:  </div><div><br></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,0,128)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="color:rgb(128,0,128)">QgsFeatureIterator</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">fit</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">getFeatures</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">QgsFeatureRequest</span><span style="color:rgb(0,0,0)">()</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">                                        </span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(0,0,0)">setFilterRect</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">rendererContext</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(0,0,0)">extent</span><span style="color:rgb(0,0,0)">()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">)</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">                                        </span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(0,0,0)">setSubsetOfAttributes</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">attributes</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">)</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">);</span></pre>
</div><div><br></div><div>Ok, this is a expected behaviour, but is there anyway (using C++ API) to change this behaviour without extending QgsVectorLayer?  I suppose that if I could pass the renderContext with the whole layer extent it would do the trick. </div>
<div><br></div><div><br></div><div>Any suggestions or ideas?</div><div><br></div><div><br></div><div>Thanks in advance. </div><div> </div><div><br></div><br clear="all"><div><br></div>-- <br><div dir="ltr">Jordi Torres<br>
<br><br></div>
</div>