Hot answers tagged

8

In the Processing Toolbox use the Extract Specific Vertices tool, for the Vertex indices use 0 for the first vertex and -1 for the last vertex. Which one you need will depend on the direction of the line. EDIT: Apologies, I didn't read your question properly, you said automatically. If it's just for display purposed you could use a geometry generator ...


6

Tested on QGIS 2.18 and QGIS 3.4 I can suggest using a "Virtual Layer" through Layer > Add Layer > Add/Edit Virtual Layer... Let's assume there is a polyline layer called "polylines" (blue lines). With the following Query, it is possible to create a point at the end of each line. SELECT st_endpoint(geometry), * FROM "polylines" The output point ...


5

You need to use Explode lines tool to explode the converted line feature into individual lines: Search for Explode lines in the processing toolbox and you will find it. I am using QGIS 3.4.


2

To use azimuth in this way you must make sure that the startpoint parameter corresponds to the part of the line that is connected to the central axis (the hub). Since azimuth() returns the clockwise angle (radian) from north, calling degrees(azimuth(startpoint,endpoint) on line 1788 from your example will only return 315 deg if startpoint is the hub. If ...


1

Under "Project Properties > General" Set the ellipsoid to WGS84 and units to km. Then use "Attribute Table > Field Calculator" The $length function can then be used to update a distance column correctly as it respects the current project's ellipsoid and distance unit settings.


1

Já tentou usar o complemento Networks? Você pode instala-lo pelo menu complementos, depois de instalado ele fica no menu processar/caixa de ferramentas. A página do complemento é: https://github.com/crocovert/networks/ Machine translation Have you tried using the Networks add-on? You can install it from the add-ons menu, once installed it is in the render ...


1

If your polylines is dense enough and of single type, you could use this approach: Set a "Single symbol" as symbolizer Change symbol layer type of a line to "Geometry generator" with type "LineString/MultiLineString" Set segments_to_lines($geometry) as expression. This function breaks your line into two-point segments and returns multigeometry Now you can ...


Only top voted, non community-wiki answers of a minimum length are eligible