I need a quick way to create rectangles with set with & height in meters. Is there a straightforward way to do this? I am well aware that there are a number of ways to achieve this, but all that I have found (apart from the QAD plugin) are cumbersome workarounds. The keyword here is quick and easy.
Please note that the size of the rectangle is the priority. It will be moved around a bit until we decide on its final coordinates. So I would rather avoid solutions to my problem where the rectangle is drawn from coordinates.
Ideally I would like to click anywhere, enter height and with in meters and then move the polygon to its final resting place. I have used the QAD plugins rectangle tool to do this in the past but it seems to be currently broken.
Best Answer
Based heavily on this great answer by @xunilk, you can create a custom script which allows you select a feature from a point layer and insert the height and width parameters. You can create a script by going to:
Then use something like:
Make sure to save it in your
/.qgis2/processing/scripts/
directory.Example:
A simple point which has been added to the area of interest and selected. Then executing the custom script from the Processing Toolbox:
A rectangular buffer is created around the point based on the height and width parameters:
A quick check showing the perimeter (
300 = (100 x 2) + (50 x 2)
):You can also use the Measuring Tool to do a quick check for the height and width.