Hot answers tagged

6 votes

Travel time calculator QGIS

You can either use pgRouting or if not using your data but the OSM street network would be fine, use the OSM Route plugin: Enter a start point and fill out the Accessibility Analysis options.
bugmenot123's user avatar
  • 10.2k
5 votes

Travel time calculator QGIS

For whoever also stumbles on this question. Now for more than 2 years since the inital question was raised and QGis 3.X has become more mature, one could achieve this by ORS tools or QNEAT3 ORS ...
JosE's user avatar
  • 63
4 votes
Accepted

How detailed should I make the shapes.txt for a General Transit Feed?

It is all preference, so think about it from the perspective of users, and balance that with how difficult it is to produce, and how much the details stray from the road. I have used GTFS extensively,...
alphabetasoup's user avatar
4 votes

Projecting Cross-Track distance on great Circle?

EDIT: I deleted my previous answer as it was wrong. First big mistake I made was performing dot and cross products using spherical coordinates. One needs to convert them to Cartesian first. (I didn't ...
Jason's user avatar
  • 141
4 votes

How to automatically generate a route between locations?

OSM Tools: My recommendation would be to use OSM tools for QGIS which you can download as a plugin. OSM tools was created by Nils Rode and is an adaptation of the OSMroute plugin which uses the ...
AWGIS's user avatar
  • 3,160
4 votes
Accepted

Summing attribute values of overlapping polyline portions in ArcMap?

I solved this problem with clues from @FelixIP's answer, and great help from the answer I found at How to sum line features. Step 1: Make sure all overlapping lines are actually overlapping. Using ...
DXV's user avatar
  • 255
4 votes
Accepted

Drawing series of lines from hub in QGIS?

You can use the Join by lines (hub lines) tool for this. This algorithm creates hub and spoke diagrams by connecting lines from points on the Spoke layer to matching points in the Hub layer.
bugmenot123's user avatar
  • 10.2k
4 votes

Display lines which share segments by offsetting them only where they overlap?

I truly believe that I have got your question correctly. Thus, you want an offset where transport lines share same geometry otherwise they have to remain at the same place. Let's assume there is a ...
Taras's user avatar
  • 29.9k
4 votes
Accepted

Clicking on route and obtaining measure or distance for that clicked point using QGIS

Unlike Arcmap you don't need a separate tool or even a plugin to access this information in QGIS (at last from version 3.4, maybe in earlier version as well). By using the "identify features" tool ...
J.R's user avatar
  • 14.5k
4 votes
Accepted

Storing shortest path route - QGIS 3.22.9

Use this expression to get a comma separated list of LinkID values from the layer called network: array_to_string (overlay_contains ('network', LinkID)) The expression, used here for visualization ...
Babel's user avatar
  • 63.1k
4 votes

Making the coordinate trace looks more smooth without road network

Identify the point exactly in the middle of the two building polygons: Find the two closest polygon to each point and get the point on these polygons closest to the initial point. Connect these two ...
Babel's user avatar
  • 63.1k
3 votes

Creating route (by hand) over a road shape in QGIS?

If you have vector roads data then the new (>2.14) trace tool in advanced feature editing should work for you.
Ian Turton's user avatar
  • 79.9k
3 votes

Using Network Analyst to retrieve the shortest bus route with many lines

Consider adding "Point" cost barriers. See Barriers.
Jeff's user avatar
  • 399
3 votes

How to draw route from OSRM on right road using OpenLayers?

With Latest API use overview simplified (default), full, false Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. curl 'http://...
Usman Aleem's user avatar
3 votes

How to draw route from OSRM on right road using OpenLayers?

The route geometry you get is a encoded polyline. You can create a route from it as follows: // route is ol.geom.LineString var route = new ol.format.Polyline({ factor: 1e6 }).readGeometry(...
Girish Sai's user avatar
3 votes

Walking route that covers the largest area in shortest distance

This is a really interesting question. I think that the zig-zag is the optimal geometry because this is the path that light would take if both boundaries were mirrors. The slight overlap in area is ...
Krishna Anujan's user avatar
3 votes

How to automatically generate a route between locations?

If your road network is a local file or database, QGIS 3.0 has a Processing algorithm which will generate a routable version of it and can generate routes between all the point features in a source/...
ndawson's user avatar
  • 27.3k
3 votes

Summing attribute values of overlapping polyline portions in ArcMap?

INPUT: WORKFLOW: arcpy.Dissolve_management("ROUTES", "..SCRATCH.gdb/SEGMENTS", "SINGLE_PART") arcpy.SpatialJoin_analysis("SEGMENTS", "ROUTES", "....
FelixIP's user avatar
  • 22.5k
3 votes

Showing route between two points in OpenLayers 3

Unless you simply want to link the points with a straight line you would need to use a route API. The are several alternatives which work by making an xhr get request which returns a json containing ...
Mike's user avatar
  • 12.1k
3 votes

How to find lat/long of point knowing cross track distance

Given the coordinates of A, B and C, and knowing that the angle in D is straight, we do not need to know the distance between B and D. We could calculate it, but in truth it is not necessary to know ...
Gabriel De Luca's user avatar
3 votes

Calculating isochrone for linestring

You could do this using QGIS and the TravelTime plugin. You can turn lines into points using method 2 in this tutorial https://wiki.tuflow.com/index.php?title=QGIS_Convert_Lines_to_Points. Once you ...
Louisa Bainbridge's user avatar
3 votes

Calculating isochrone for linestring

You can also do it with the QNEAT3 Plugin: https://plugins.qgis.org/plugins/QNEAT3/ I have a line which is 7.7 km long, represented by 1112 points, so ca. one point every 7 meters. To get the points ...
Babel's user avatar
  • 63.1k
3 votes
Accepted

Creating multiple routes with several stops using QGIS

You can use this script: (Reference) # CHANGE LAYER NAMES networkLayer = QgsProject.instance().mapLayersByName('networkLayerName')[0] pointLayer = QgsProject.instance().mapLayersByName('pointLayerName'...
Kadir Şahbaz's user avatar
3 votes

Calculate grid cells enter/exit timings from overlayed timed route

In QGIS 3.22 there is the option to rasterize 3D lines, interpolating the vertices (Burn value extracted from the “Z” values of the feature): https://docs.qgis.org/3.22/en/docs/user_manual/...
Gabriel De Luca's user avatar
3 votes

Making the coordinate trace looks more smooth without road network

Create a regular polygon grid with cell distance a bit smaller than the distance between the buildings (see screenshot). Check for each point within which cell it is and snap the point to the cell's ...
Babel's user avatar
  • 63.1k
3 votes

Calculate road distance between two points in PostGIS - Resultant distance is not accurate (not even close to the actual distance)

A more versatile, more performant approach: SELECT ori.id AS origin_id, dst.id AS destination_id, ST_Length(tr.line_string) * ABS(dst.frac - ori.frac) AS road_distance FROM troad AS tr CROSS ...
geozelot's user avatar
  • 28.8k
2 votes

Using OSM for routes?

The other answers on this page provide some great specific details - but I think a more general answer to the question is in order (not least for future viewers with similar problems): There are many ...
Rostranimin's user avatar
  • 2,960
2 votes

What are the existing datasets of world maritime routes?

This repository has shipping route network data available as geopackage files at various resolutions from 5km to 100km https://github.com/eurostat/searoute It's an extension of this dataset: http://...
andrii's user avatar
  • 21
2 votes

What are the existing datasets of world maritime routes?

Please check this one, give corresponding credits to authors https://www.nceas.ucsb.edu/globalmarine/data Enjoy EDIT: Shipping routes are there: raw_2008_shipping_mol.zip https://knb.ecoinformatics....
L Ciro Marcano's user avatar
2 votes
Accepted

Travel planning - Finding farthest points of a polygon

Non-Convex Polygon You should draw the Medial Axis Transform (skeleton or center-line) of the polygon. Options to do this: Create Centerlines use CGAL with arcobjects Then utilize the centerlines ...
Farid Cheraghi's user avatar

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