[Qgis-user] Shape Tools New Capabilities - Compass cardinal directions

C Hamilton adenaculture at gmail.com
Fri Mar 10 04:04:08 PST 2023


I thought I would highlight a couple of updates to the Shape Tools plugin.
For those who are not aware, Shape Tools has a measuring tool that not only
includes the distance from point A to B, but also displays the azimuth from
A to B and from B to A. It shows each segment with these features and the
total distance. It also has a measurement layer algorithm that creates a
new layer from a polygon or line layer with already styled measurements of
the line segments.

The recent addition is to also include the compass cardinal directions such
as N, S, E, W or NE, WSW, or NEbE depending on the number of compass points
that are selected. This has to be enabled from Vector->Shape
Tools->Settings and then look for "Points of the compass" and you can
select None, 4, 8, 16, or 32. It defaults to None.

The other addition is a related expression function with some examples

st_compass( azimuth[, number_of_points, mode] )

st_compass(33) → 'NNE'
st_compass(33, 8) → 'NE'
st_compass(33, 32) → 'NEbN'
st_compass(33, 16,'full') → 'north-northeast'
st_compass(33, 32,'full') → 'northeast by north'
st_compass(33, 32,'trad') → 'Quarto di Greco verso Tramontana'

Enjoy,

Calvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230310/e3504cbb/attachment.htm>


More information about the QGIS-User mailing list