[Qgis-user] Creating polygons using bearing and distance

Dylan Copeland nrmo at icloud.com
Tue Aug 20 03:00:38 PDT 2019


Hi All,

I have in the past created polygons by importing a csv as a wkt. I did this by in the csv creating all points of the polygon by coordinate (e.g. POLYGON ((592540 6520776,592530 6520776,592530 6520766,592540 6520766,592540 6520776)). But what I really want to do this time is to create 10 metre square polygons by defining the initial point and then specifying the bearing and distance to the next point and so on. 

I have tried many subtle variations on this theme: POLYGON ((592540 6520776 180 10, 90 10, 360 10, 270 10)), where the starting point is identified, the bearing is defined, and the distance of 10 specified, but the closest that I seem to be able to get is a long, thin line that seems suspiciously close to 6,520,776 metres long with a bearing of ~185.

Ultimately, what I am trying to do, is draw a polygon where the rotation is defined by the azimuth value from a photo point in the corner (ie, if the azimuth of the respective photo is 135 then I want that value to be the bearing from the photo point corner of the polygon to the corner diagonally opposite).

There’s a lot of polygons that I need to define this way (although at this point it might have been quicker just to draw them all individually), and I am much more comfortable slogging through a spreadsheet than dabbling in Python. 

Any suggestions on how to make this work, or alternatives to achieve the same outcome, would be greatly received.

Thanks, 
Dtlan



More information about the Qgis-user mailing list