New answers tagged

1

You can also use pyqgis. This doesnt take the "parallelness" into account, only distance. Although it could be adapted to do so. import itertools #To get all pairwise combinations of lines lyr = QgsProject.instance().mapLayersByName('lines')[0] #Change reproject_to = "EPSG:32633" #Change mindist = 1 #Change #Reproject so distance is in ...


3

You can easily achieve this by first rasterizing the road network using the GDAL tool Rasterize (vector to raster) from the QGIS processing toolbox using a desired resolution. In a second step you apply the GDAL tool Proximity (raster distance) that can be found in the same processing algorithm collection.


5

If you have no intersecting lines, use "Select by expression" with this expression including overlay_nearest() and change the max_distance: overlay_nearest(@layer, max_distance:=1) Be aware: your layer must be saved in a CRS using meters as units, thus don't use a geographic CRS like EPSG:4326 (WGS84). In this case, first reproject your layer. The ...


1

The LengthToPointCalculator will do the task you need: Calculates the length of a feature from its start until the closest spot to a point, and adds it as a new attribute. The point coordinates are taken from attributes in the original feature. For the LengthToPointCalculator, input point coordinates are an attribute of the line feature. If you have ...


2

You can modify the expression by using: line_locate_point (to get the distance from the start-point of the line to the point where the line intersects with the polygon (white dot on the screenshot below: the point point where the line intersects the polygon for the second time, = step 5 in the original solution) line_substring to get the substring (blue on ...


3

Calculate Distance of whole line - distance from the start point (pseudocode) - use this expression: length (geometry(get_feature('path','Jct_ID',"Point Code")))- line_locate_point(geometry(get_feature('path','Jct_ID',"Point Code")),$geometry) or, alternatively (where line 3 contains the expression for the line): with_variable ( '...


0

If you need a general near distance parameter in feet you can use the following calculation to convert decimal degrees to feet. Add a field - right-click for field calculator and multiply the decimal degrees field by 364567. It won't be exact but fairly close. Information was obtained from a nautical calculation website & verified with the measurement ...


Top 50 recent answers are included