[Qgis-developer] Resize QGIS line or polygon about its centroid

C Hamilton adenaculture at gmail.com
Thu Feb 23 06:20:07 PST 2017


My real purpose here was to see if I had missed the tool that I would like
to see in QGIS. Sometimes with the more complex plugins there are
capabilities there that are not at first obvious. It appears to me that an
interactive geometry resize tool does not exist, but I could create it. I
wanted to make sure I wouldn't be duplicating effort. Here is how I would
like it to work:

1. Select a layer and one or more features.
2. With the resize geometry tool selected, as the user clicks on the map
and drags up and to the right the geometry would be enlarged about the
feature's centroid. If the user drags down and to the left it would be
shrunk and if the user keeps dragging it would ultimately be flipped.
3. One of the options would be to constrain the aspect ratio, but latitude
and longitude resize would be independently affected without the aspect
ratio constraint.
4. I would have at least two modes for the resize. One would be based on
the CRS of the layer. The other would be to do all the math using
geographiclib routines or Vincenty's distance formula which I already have
coded.
5. When the user clicks and starts dragging, a copy of the geometries would
be made to create a highlight to visually see the drag. When the user
releases the mouse then the actual geometry would then be transformed.

Just to ask one more time, is anyone already working on this? If not, then
I will create the tool. Does anyone have any other thoughts or suggestions?

Thanks,

Calvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170223/d8b33c41/attachment-0001.html>


More information about the Qgis-developer mailing list