# Tag Info

### Drawing lines from points in QGIS

To create polygons from points, you can also use "Points to path", then "Lines to polygons" tools without need to install any plugin
• 562

### Converting polyline to polygon in QGIS

The "Polygonize" tool from the Processing Toolbox (Ctrl+Alt+T) still works fine for me on simple lines: It is however necessary that the lines intersect, or share common vertices. And lines ...
• 76.7k
Accepted

### Creating all possible line segments between all points using QGIS

You can achieve your goal using the Field Calculator. Using the Geometry Generator, with Linestring geometry type, use this expression: collect_geometries( array_foreach( aggregate('...
• 3,868
Accepted

### Creating line segments at point coordinates in QGIS

One possible tool is "Geometry by expression" in the Processing Toolbox > Vector geometry (search in the Processing Toolbox Ctrl+Alt+T). A Geometry expression to create lines (length= ...
• 30.9k

### Calculating line with the longest distance inside polygon in QGIS

You can use PyQGIS to measure the distances between all vertices of each polygon and find max: import itertools layer = iface.activeLayer() #Click layer in tree for feat in layer.getFeatures(): ...
• 73.8k

### Creating Isochrones in QGIS

Just recently, a new QGIS plugin, called OSM Tools, has been published. This plugin utilizes OpenRouteService API to compute routes and isochrones for various travel modes such as car, heavy vehicle, ...
• 401

### Drawing lines from points in QGIS

In QGIS 3 instead of the plugin mentioned above, you can find the "Points to path" tool in your Processing Toolbox (Ctrl+Shift+T). Works exactly the same.
• 4,109

### Calculating line with the longest distance inside polygon in QGIS

Bear in mind that someone correctly pointed out very soon in comments that I had misread the question. My answer gives the diameter of the minimal circle but this does not always correspond to the ...
• 3,145

### Creating all possible line segments between all points using QGIS

You can make use of the virtual layers. Go to Layer/ Add layer/ add-edit virtual layer and enter the following query. Feel free to add as many field as you want. The trick is to do a cross-join on the ...
• 42.1k

### Building the shortest route through all points in QGIS

What you're looking for is called "Travelling salesman problem". Let's assume there is a point and a line layers, see the image below. There are several approaches available: Approach 1 : ...
• 33k

### How to create a multipart polygon in QGIS?

For anyone coming to this with newer versions of QGIS, the function to do it is now called "Collect Geometries" rather than "Single parts to Multipart" so it's now Vector > Geometry Tools > Collect ...
• 121

### Creating Isochrones in QGIS

The plugin QNEAT3 offers a great tool for this creating isochrones or service areas offline based on your own network. You can run Iso-Areas as polygons or another algorithm: To get isochrones, ...
• 34.5k

### Nearest distance between point and line layers in QGIS

In QGIS I can suggest using a "Virtual Layer" through Layer > Add Layer > Add/Edit Virtual Layer.... Let's assume we have two layers 'points' and 'river' with their corresponding ...
• 33k
Accepted

### Split polyline by point using 'sf' package in R

If you snap the point to the line then you can split the line and then extract the parts from the resulting collection. Use a really small tolerance, I don't know how small it needs to be... > ...
• 64.4k
Accepted

### Generating lines at the end of each measurement with plugin in QGIS

Coming close to what you want, simply using geometry generator, you can use this expression to create the lines from each point to the cursor position where you click: make_line ( \$geometry, @...
• 71.5k

### Drawing lines to nearest points in QGIS

This should be possible without any plugin using the default Processing tools, particularly Distance to nearest hub: https://docs.qgis.org/testing/en/docs/user_manual/processing_algs/qgis/...
• 84.2k
Accepted

### Creating lines between points within distance in QGIS

Using the distance, you could create a "Virtual Layer" that connects nearby points. Go to the menu Layer > Add Layer > Add/Edit Virtual Layer... and enter the following query. Note ...
• 42.1k
Accepted

### Creating polygons with fixed extent based on point which represents S/W corner using QGIS

In QGIS, use "Geometry by Expression" tool (in a projected CRS). It will also add points information/attributes to polygons. Select "Polygon" as "Output geometry type" ...
• 77.1k
Accepted

### Getting Polyline (Linestring) coordinates from line layer in QGIS

First, add a field (name: geometry, type: string, length: 1000 keep it long). Then use the following script: lyr = iface.activeLayer() with edit(lyr): for f in lyr.getFeatures(): f["...
• 77.1k

### Creating lines between points with certain attributes using QGIS

Points to path has a 'group' expression optional setting Use this as your unique Id Order expression being the timestamp. Using this, you should get one line for each Id with the Id as an attribute
• 3,352
Accepted

### Connecting dynamically the 8 nearest lines to @map_extent_center in QGIS

Create the lines from all points to the center of the map canvas with your expression, but aggregate them into an array with array_agg(). Inside the array, order the lines according to their length, ...
• 71.5k
Accepted

### Converting polygon to lines without duplicate edges?

If you are not forced to use QGIS, another Open Source GIS software OpenJUMP http://openjump.org/ has a Planer Graph tool that may be exactly what you need. Here you can find the tool. If you need ...
• 66.3k
Accepted

### Drawing rows in field at the same distance from each other

You can use the Create Grid tool for this task. Also the Clip tool can be useful for removing lines outside the polygon boundaries.
• 7,191

### Joining point data in chronological order using timestamp in QGIS

Welcome to QGIS @Eleanor. Try the algorithm Vector Creation -> Points to Path in the processing toolbox. Then specify your timestamp and uniqueID fields as the "order" and "group&...
• 572
Accepted

### Creating radial lines from center of polygon to edge in QGIS

You can use "Geometry by expression" followed by "Multipart to singleparts". For each angle from 0 to 360-22.5 at 22.5 increments, a line is created from the centroid to a point ...
• 73.8k
Accepted

### Finding longest straight line within polygon in QGIS

When holes of the polygons have to be avoided So, this is an extension to my previous answer Calculating the longest distance within polygon in QGIS but with some changes in the Step 3, particularly ...
• 33k

### Finding longest straight line within polygon in QGIS

This is also an approximation. It finds the longest line between existing polygon vertices within each polygon. So the more vertices you have the better the results should be (but the executing time ...
• 73.8k

### Creating polygons with fixed extent based on point which represents S/W corner using QGIS

Using a Virtual layer, you can create a polygon of the desired dimension and move it to each location of the point layer. You can then save as the output if you want to persist the data. Go to the ...
• 42.1k
Accepted

### Drawing an arc with length proportional to a distance in QGIS

Use the expression below. The expression in action: Explanation how the expression works: The expression creates a wedge buffer using function wedge_buffer() with a buffer width (in degrees) that ...
• 71.5k