Skip to main content
7 votes
Accepted

Routing with several stops using QGIS

The solution requires some basic usage of PyQGIS. This code computes paths for every subsequent pair of points using the order specified in the "order" field. Then all the paths are merged ...
Leon Powałka's user avatar
5 votes

Properter to get travel time as cost for network analysis

Here's a short Properter which I'm working on that might provide part of the answer. It aims to modify shortest path calculations for a road network by excluding freeways (because I'm using it for ...
Steve's user avatar
  • 361
5 votes

Automating the selection of starting points in calculation of Shortest path (point to layer) in QGIS

A solution using the PyQGIS. Let's assume there are three layers, see the image below: start points : three red dots in the 'random_points_test' layer end points : three blue dots in the 'points_test'...
Taras's user avatar
  • 33.3k
5 votes

How to create a boundary automatically around points

Make sure your green points and connections share common ID field (say PART) with brown points. Define shortest link length (L) in each group and draw buffer around parent brown point with slightly ...
FelixIP's user avatar
  • 23.2k
3 votes
Accepted

Properter to get travel time as cost for network analysis

This is the properter that I put together from all the properter-examples that were posted. It works well. Note that the defaultSpeed is not used in my case (for peculiar reasons of my project), but ...
Fitzroy Hogsflesh's user avatar
3 votes

Using python QGIS network analysis library to calculate short path based on speed and distance?

I'm using Ubuntu 14.04, QGIS 2.8.1-Wien and python2.7. Feature.attributeMap() does not work. After much struggles with the undocumented way of implementing new ArcProperter's, here is my working ...
ErnestScribbler's user avatar
3 votes

Calculating distance between point and polygon in network in QGIS

To calculate the walking distance between each cell in the grid and the nearest football field using your road network in QGIS, you can use the following approach: Make sure you have your polygon ...
Alex-McGill's user avatar
3 votes

Why does QGIS get the whole connected component regardless of cost when calculating service area?

There are at least two problems: Travel costs for fastest travel type are hours - so a value of 0.5 means 30 minutes. A just superficial look at your screenshot shows that your network layer is in ...
Babel's user avatar
  • 73.2k
2 votes

Using python QGIS network analysis library to calculate short path based on speed and distance?

I think you don't need QVariant. I'm trying to create my own Properter for bike trips which (as a start) excludes freeways and roads that haven't been built yet. In my road layer, these are ...
Steve's user avatar
  • 361
2 votes

Line network integration analysis in QGIS

I guess the plugin you need is Space Syntax toolkit. It is a QGIS plug-in for spatial network and statistical analysis. It provides a front-end for the depthmapX software within QGIS.
Maxima's user avatar
  • 1,701
2 votes

Speeding up sDNA analysis

Speeding up analysis locally First question to ask is do you need betweenness centrality? This is the primary suck of compute time. Switch off betweenness and it's all much faster. Also, do you ...
Sideshow Bob's user avatar
  • 2,343
2 votes

Checking all 100 km routes through network for proximity to facilities?

I think there are two problems here, not one: Scenario: a) Have a Graph (road network) b) Have charging stations(points) c)You need a path (set of edges) to calculate distances, from the EV to ...
Alfredo Garcia's user avatar
2 votes

QGIS network analysis, points on graph cannot be reached

Is your road network fully noded? I.e. has separate lines for every intersection? That's a pre-requisite for the network analysis module.
ndawson's user avatar
  • 27.8k
2 votes

Network analysis using QGIS?

The easiest way (at least for me) was to use GRASS for this. In QGIS you load the road network and the points (bus stops). Open the tool box (Str+Alt+T) next and search for v.clean and v.net.iso. You ...
Phil's user avatar
  • 465
2 votes
Accepted

QGIS Least Cost Distance Points to Destinations via Roads

The solution is to use the GRASS algorithm v.net.allpairs. See here for documentation. Also see Spatial distance analysis in QGIS - not all steps are necessary for my solution, but it was most ...
ge0m3try's user avatar
  • 822
2 votes

Cumulative value/cost along shortest distance roads in QGIS

There is a grass tool to calculate the whole distance matrix at once: v.net.allpairs. This tool asks for a layer of "roads" and a point layer an it calculates all the matrix between points. After ir ...
César Arquero Cabral's user avatar
2 votes
Accepted

QGIS, Number of Lines through a Point (of over lapping multiline shapefile)

If you have a point layer and a line layer, then you can count the lines near by the points using field calculator: Open the attribute table of point layer Open the field calculator dialog (abacus ...
Zoltan's user avatar
  • 7,410
2 votes

Service area/accessibility analysis from point and avoiding polygon layer

Use raster cost approach The advantage of this approach is that it explicitely excludes land areas and still calculates regions behind island correctly (indirect path around islands). To calculate ...
Babel's user avatar
  • 73.2k
2 votes
Accepted

Setting edge drawing direction-sensitive attribute-based impedance (cost) in QGIS network analysis

Here's a rough approach. Let's assume a very basic network, with three points and three lines. Say you're looking for the Shortest Path (Point to Point) from A to B. The time in seconds in the forward ...
Tom Brennan's user avatar
  • 5,329
2 votes
Accepted

How to select lines/edges that overlap with a line layer in QGIS

You can explode your lines, so each segment is created as a separate line. Like this, each line has only two vertices. In this way, you can select those lines that overlap the paved or unpaved parts ...
Babel's user avatar
  • 73.2k
1 vote

QGIS QNEAT3 Iso-Area Polygon not creating polygon or data

Solution found in GitHub at No output polygons or contours in QGIS 3.16.3 (OS X). Seems to be issue with newer versions of iOS, QGIS, matplotlib, or Python.
Sarah631's user avatar
1 vote

Representing stationary elements in flow map

You can represent these points using a data driven size. To the right of the size field for the points with no movement involved, click on data driven override, select assistant. In the opening panel, ...
Babel's user avatar
  • 73.2k
1 vote

Generating edge table from nodes using QGIS

Just a short description, but perhaps it helps to create a workflow. I have worked on such network modelling exercise in ArcGIS Pro, but I am sure there is a similar workflow in PostgreSQL/PostGIS. ...
PGerrits's user avatar
  • 549
1 vote

Considering distance in network analysis (Gephi)

No one offered an answer, so I will add some information that might be useful to others in the future. I put my data into Gephi in three forms: weighted, with inverse weights, and with no weights. All ...
jsilverman's user avatar
1 vote
Accepted

ArcGIS Online Routing service

The first link you've referenced is a folder, and within that folder is a bunch of services. This is a "Sample Server", as such, it's used to demonstrate different workflows and patterns. ...
KHibma's user avatar
  • 16.9k
1 vote

Isochrones in R closing roads based on spatial overlays

You might have to build your own OSRM server (docker containers are available, its not too arduous if you know docker) then you'll to get the road data in OSM form and for your study area and load ...
Spacedman's user avatar
  • 65.1k
1 vote
Accepted

Dividing range of territory into squares with different colors from points with accident information using QGIS

You need to make a grid. In QGIS, this is done in the Vector - Research Tools - Create a Grid. The grid should cover the extent of your point data. For example, if you have the locations of all ...
wingnut's user avatar
  • 2,110
1 vote
Accepted

Counting population from grid based on travel time

Activate the "buffers" layer Click on field calculator Mark "new field", set a valid name for it, select "whole number" Copy this code in the window: aggregate('gridd',...
jpinilla's user avatar
  • 3,230
1 vote

Subtracting line features in QGIS

Answering to my own question. I tried a python script made by a friend. It had some issues so finally ended up doing batch processing: Extracted all the features to individual geopackage layers Did ...
Matti Pesu's user avatar
1 vote

Seeking Transit Feed (GTFS) Toolset for QGIS?

Using PostGIS, we successfully integrated GTFS data directly into our database and used bus stops to calculate accessibility to students using our existing PGRouting datasets which used street ...
Inactivated Account's user avatar

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