New answers tagged

1

In QGIS 3 (at least in QGIS 3.10) there is a processing tool for that purpose: "Points along geometry"


1

Let's assume there are two polygon layer "poly_unique"(orange) and "poly_groups"(green), with its corresponding attribute tables accordingly, see image below. Proceed with Plugins > Python Console > Show Editor and paste the script below # function that converts a string into a list def to_list(var): output = var.split(",&...


0

A solution similar to what @MrXsquared offered using PyQGIS but IMHO it is less detailed. Let's assume there is one point layer "start"(pink), with its corresponding attribute table accordingly, see image below. Proceed with Plugins > Python Console > Show Editor and paste the script below # imports from qgis.PyQt.QtCore import QVariant from ...


0

Solution for two point layers using PyQGIS. Let's assume there are two point layers "start"(pink) and "end"(dark green), with its corresponding attribute tables accordingly, see image below. Proceed with Plugins > Python Console > Show Editor and paste the script below # imports from qgis.PyQt.QtCore import QVariant from itertools ...


2

Split line at vertices followed by get count should do the trick. Feature-to-line or Polygon-to-line may also work, they are subtly different in terms of how they handle intersection line segments.


Top 50 recent answers are included