For network consistency issues every polyline in layer A must have a point in layer B at start and end nodes.
Lately we've realized our network editors usually forget to add this points to layer B so I'm looking for a way to automatically create this points every time a new polyline is drawn, but checking first if there's no point at the polyline start or end nodes.
Is there any way of doing this using QGIS?
Generally each editor edits their own files: several point, polyline and polygon shapefiles or a single geopackage. There's a small number of editors working with data in Oracle but I want to focus on the easier scenario first.
Editors create or modify polylines when they need to. There's no exact frequency. Maybe once or several times a day or maybe once a week/month.
The workflow should be:
- Create or modify a polyline
- If a new polyline is created, create a point at its start and end nodes if they are missing. (If a new polyline is snapped to an existing one that one should already have points at its nodes so that should be checked.)
- If an existing polyline is modified and the start or end nodes are moved, the related points should be moved too.
- New points should get the new polyline unique id in an attribute field.
- Edit other related layers.
It's important that points are created right after the end node of the new polyline is created because the order points are created is important (the unique id of points help us track the order they were created).