Plugin creators: Mauro Dedonatis (Urbino Univ., Italy, mauro.dedonatis@uniurb.it) and Mauro Alberti (alberti.m65 at gmail.com).
The original concept is by Mauro DeDonatis, while the implementation is by Mauro Alberti.
beePen is a Python plugin for drawing freeand annotations and sketches in an ad-hoc layer in QGis.
It is inspired by the corresponding tool in BeeGIS.
and based on the code by Pavol Kapusta in his Frehand Editing plugin. The plugin window is started by the "beePen" command (Fig. 1).
Fig. 1
beePen allows to create an annotation layer, that is characterized by three fields, storing: 1) the user-defined width (in map units); 2) the color and transparency of the pen;
3) the optional note to be associated with each element.
These value are automatically inserted based on the user choice in the plugin window (Fig. 2).
Fig. 2
The created line can be automatically simplified and smoothed by setting the parameters in the window (Fig. 3),
activated by pressing the "smooth parameters" button in the main plugin window (cf. Fig. 2).
The simplify tolerance parameter, a distance value in the same unit as the project CRS, regulates which points are
collapsed into a single vertex: ".. points are removed if the distance with the tentative simplified line is smaller than the tolerance"
(from
What is "Simplify tolerance" in QGIS's Simplify geometries tool?).
The smoothing is based on the Chaikin algorithm. The parameters are the same as the equivalent QGIS smooth function
(smooth method):
iterations - number of smoothing iterations to run. More iterations results
in a smoother geometry
offset - fraction of line to create new vertices along, between 0 and 1.0,
e.g., the default value of 0.25 will create new vertices 25% and 75% along each line segment
of the geometry for each iteration. Smaller values result in “tighter” smoothing.
minimumDistance - minimum segment length to apply smoothing to
maxAngle - maximum angle at node (0-180) at which smoothing will be applied
Fig. 3
To draw annotations, create a new annotation layer from the beePen window (see Fig. 2) or load an existing one with QGIS (and style it if necessary
with the "Style selected layers" command), and then draw annotations by selecting the pen tool (command with pencil icon in Fig. 4).
You can delete one or more annotations by drawing a line above them with the eraser tool (rightmost command in Fig. 4).