<div dir="ltr"><div>Hi Regis,</div><div><br></div><div>I would assume that in this use case the user would not be modifying the source polygons, but would make a copy of them which could be a memory layer and then resize them. I mentioned resizing small features so that they visibly would be better shown on the map, but the other use case would be when the user draws a polygon and would then like to shrink or enlarge it, then perhaps move it into position. QGIS already has the move tool, but I don't see one to shrink or enlarge polygon tool.</div><div><br></div><div>I understand how a point label's size can be modified based on some attribute, but can an expression be written that would allow a polygon size be scaled and centered about the source centroid, based on some attribute in the data. If that is possible I don't know how it would be done.</div><div><br></div><div>Thanks,</div><div><br></div><div>Calvin</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 22, 2017 at 2:53 AM, Régis Haubourg <span dir="ltr"><<a href="mailto:regis.haubourg@gmail.com" target="_blank">regis.haubourg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr">Hi Calvin, <div>what you describe requires to store the specific object size somewhere, which is the exact same requirement with data defined labeling (or any data defined stuff in QGIS, those widgets are everywhere). </div><div>Modifying the source layer is quite wrong, and sometimes impossible (readonly datasets). You can have a look to EasyCustomLabeling where I coded a duplication of the objects I needed to label into a memory layer. Persistence is made thanks to MemoryLayerSaver plugin that saves them in a separated .mldata file. In you case, a symbol is made of so much markers, sub markers that you can't just define one width or size parameter shortcut button (or mouse scroll + key modifier) so easily.  </div><div><br></div><div>This is anyway quite hacky and justify a planned and funded work for QGIS3 : Auxiliary storage. That work will provide a way to store data or other ressources inside the qgs project. That will provide a nicer and more portable method for custom labeling or styling. </div><div><br></div><div>Just to end up with your cartographic need, up to now, I've always managed to handle what you describe with conditional rules in expressions without having to manually storing values. I eventually had to store exceptions to rules in the following way:</div><div><br></div><div>Ex: Styling city point with size proportional to the number of inhabitants , except for one </div><div><br></div><div>CASE </div><div>  WHEN city = 'Grenoble' then  22 </div><div>  ELSE scale_exp("altitude", 0, 0, 1, 10, 0.5) </div><div>END </div><div><br></div><div>I hope that helps </div><div>Cheers Régis</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-8050988139956308323h5">2017-02-21 21:14 GMT+01:00 C Hamilton <span dir="ltr"><<a href="mailto:adenaculture@gmail.com" target="_blank">adenaculture@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><div class="m_-8050988139956308323h5"><div dir="ltr"><div><div><div>I have an project where I want a feature to be larger than life just so that it shows up on the map. Ideally I would like is to be able to select one of more features and with the mouse have it interactively resize them, but keeping them centered about their centroids. Once I am satisfied with their size I would either click a button to fix them or hit the Enter key. <br><br></div>I saw the Affine transformations plugin, but that takes too much thought. Is this capability already there and am just not finding it or has it simply not been done? If the latter is the case I may consider writing the plugin to do it although I think it would be nice for it to be a part of the standard QGIS editing functions.<br><br></div>Thanks,<br><br></div>Calvin<br></div>
<br></div></div>______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noreferrer">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noreferrer">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br></blockquote></div><br></div>
</blockquote></div><br></div></div>