Questions tagged [distance-matrix]

a distance matrix is a matrix (two-dimensional array) containing the distances, taken pairwise, of a set of points.

Filter by
Sorted by
Tagged with
-1
votes
0answers
13 views

Seeking options to calculate travel time and reachable locations [closed]

I need to help my organisation in comparing options to choose a provider that can support travel time isochrones, distance matrix and filer reachable locations within a certain travel time by Driving, ...
0
votes
1answer
57 views

Pairwise shortest distance between points in a road network

1. Problem I have the coordinates for over 5000 points (cities) that lie over a road shape file, as partially illustrated below: I'm working on R, and I need to find the shortest distance between all ...
0
votes
0answers
8 views

Modeler - QNEAT3 - selected destinations instead of “all origins” to “all destinations”

I would like to calculate the distance between points from table A (80 000 entities) , to points from table B (500 entities), filtering with a relation parent-infant (or just using a common field ...
1
vote
0answers
31 views

Unusual QGI3S “Exception: Unkowns”

I'm trying to process some OSM data extracted via Osmium. I've managed to process some of my smaller datasets, but as I've begun working on the bigger ones, I'm receiving some odd errors. Specifically,...
1
vote
1answer
34 views

OD Matrix algorithm in QNEAT3 plugin (QGIS)

I have two questions regarding OD Matrix algorithms in QNEAT3 plugin. If I set the cost strategy as the fastest path, would the output be the travel time? If yes, is the output in seconds? The ...
1
vote
0answers
31 views

Distance and time fields are null in the output of Matrix From Layer algorithm of ORS Tools plugin in QGIS [closed]

I tried to calculate the travel distance and the travel time using Matrix From Layer algorithm of the ORS Tools plugin in QGIS, but in the attribute table of the output, the duration and distance ...
10
votes
1answer
274 views

How do I interpret the results from the distance matrix?

In this dataset I have created the green dots represent coyote sightings while the yellow dots represent rabbit sightings. I am trying to determine if coyotes and rabbits are randomly distributed or ...
0
votes
0answers
16 views

Creating matrices of coordinates for a given geoTIFF

I have GeoTIFFs that are in a given projection, I'm trying to figure out what the easiest way would be to produce corresponding matrices for the the GeoTIFFs that hold the lat, lon, and meters ...
11
votes
2answers
718 views

Why is SQL Server 2019's STDistance Very Slightly Different Than The Vincenty Formula? (Same Up To ~0.0001km)

I'm trying to make a C language equivalent to STDistance. Through research, I've narrowed down what STDistance uses, which apparently is the (inverse) Vincenty Formula. The problem is, I've tried ...
1
vote
1answer
78 views

Improving PyQGIS distance matrix efficiency

I have written a custom processing tool, which I use within a large graphical model in QGIS. I am looking for a way to speed it up. First step of this processing tool is to connect every point of one ...
0
votes
1answer
24 views

Include ID in an spatial weight matrix R

I have a data frame like this one: dataSp <- read.table( text = ' ID LATITUDE LONGITUDE A -85 134 B 34 2 C 42 3 D 45 ...
2
votes
3answers
84 views

Terrain aspect similarity

I have a point data set with terrain aspect at the location of the points, measured in degrees. I want to compute the similarity of aspect between the points, e.g. 70° is similar to 90°. This is ...
1
vote
0answers
25 views

Incorrect Routing Times in ArcGIS Desktop 10.7

I'm trying to find an OD Cost Matrix for a sample of zip codes in LA, San Bernardino, and Clark (NV) Counties using TIGER Data found here: https://www2.census.gov/geo/tiger/TIGER2012/ROADS/ (the files ...
1
vote
1answer
41 views

Nearest neighbor distance for Arctic area that spans 2-3 UTM zones

Using QGIS3.10, I have tried Distance Matrix and NNJoin (distance results 0 - 10.32 for both, likely in degrees). I have 93 points of 2 types in one shapefile. I have the same distance issue if the ...
1
vote
0answers
109 views

QNEAT3 doesn't work on all networks

I have a point layer and three different network layers and am trying to create OD-Matrices for all the points using the QNEAT3 plugin. It did work out fine on two of the three networks, but the ...
2
votes
2answers
56 views

Measuring distance between certain relations in QGIS

I need to measure the direct distance between busstops in meters, not taking roads/networks into account. I have the WGS 84 Coordinates + globalIDs for 28.000 pairs. I already imported the Busstops ...
0
votes
0answers
32 views

Spatially constrained multivariate clustering

What's the current methodology for clustering geospatial data by features? Not in ArcGIS - rolling my own in a different framework. Example: I have some demographic dataset. Let's say this contains ...
0
votes
0answers
116 views

What are the units in the network analysis

. I'm working on a project that is checking to see if distance is related to colonization by invasive species based on human activity. In order to do that, I must calculate the distances between ...
1
vote
1answer
148 views

Distance to points tool giving errror ('Error in .pointsToMatrix(xy) : A points matrix should have 2 columns') in R

I am using the DistanceToPoints tool to make a raster where cell values contain the distance to the nearest point. r <- raster('./Raster.tif') s <- readOGR('./Shapefile.shp') dfp <- ...
2
votes
2answers
409 views

Calculate distances from points to multiple country borders in QGIS

I have a shapefile containing several thousand GPS locations located in multiple countries and another shapefile with country polygons (or alternatively also one with country border polylines). How ...
2
votes
1answer
108 views

Average distance between two different layers

I am a new user of QGIS (version 3.2.3) and I find myself in need to do some calculations. I am trying to find the average distance between two sets of points (i.e. schools and settlements) contained ...
0
votes
1answer
177 views

Creating multi-ring buffers around points in a single layer and for each point selecting neighbors within a specified radius in R

I have a CSV file of data on a set of 3000 points (locations) with respective coordinates and a number of attributes. I want to perform a regression analysis that takes cognizance of any spatial ...
5
votes
1answer
337 views

Distance Matrix of Shortest Paths from all m points to all n points through a network

This question was asked many times and I could reference endless GIS-SE links here. Most of them suggest using pgRouting, which is not an option here. I have to use QGIS (for other technical questions)...
5
votes
3answers
213 views

What is the proper way to calculate distance in km from degrees

For a genetic analysis of Australian humpback dolphins I am currently trying to assess whether or not genetic differentiation correlates with geographic distance in water. For this I have done the ...
0
votes
1answer
56 views

Distance matrix expressed in meters

I'm aware that this is the hundreth(possibly more) time someone asked about the distance matrix that is expressed in degrees, but should be in meters. I read most of the questions, online guides, etc.,...
0
votes
0answers
187 views

Transform XY coordinates from within a custom flat geometry to latitude and longitude

I am looking for a Python based tool/API (PyProj?) that will help me transforming a set of XY points from within a custom flat map to latitude and longitude. I have information about the latitude and ...
2
votes
0answers
27 views

Create a partial distance matrix in QGIS 3.4

I would like to calculate the straight distances between a series of points: in the first layer (rows) there are the locations of the domicile of my respondents; in the second layer (columns) there ...
1
vote
0answers
92 views

Nearest neighbours with Python [closed]

I'm learning Python and this has been a bit of a challenge! My DataFrame looks like this below. name geometry 0 Uimastadion POINT (24.93045 60.18882) 1 Hartwall ...
0
votes
1answer
63 views

Units used for distance calculations by distance matrix tool of QGIS [duplicate]

I can't seem to get the measure tool to match up with my distance matrix tool regardless of what measurements I use. There are conflicting answers on other posts about this question. Both of my layers ...
1
vote
1answer
216 views

QGIS Buffer distance vs Distance in Distance Matrix

I created Buffer (with Vector, Geoprocessing Tools) with 500 M distance from a point in the map (let's say Point A). I made another point (Point B) and it is not inside the 500 m Buffer. The Distance ...
2
votes
1answer
69 views

Distance matrix returns points in wrong order QGIS 3.4

I'm using QGIS 3.4 on Windows 10 and scripting in pyqgis. I have a layer representing building centroids that is in a projected CRS. I want to find the azimuth between each building and its nearest ...
1
vote
0answers
56 views

Balancing multiple supply and demand locations in QGIS

I am looking for a way to balance supply and demand with respect to distance, between two vector layers in QGIS. I have two vector layers 50x50m grid Supply (The red negative values) Demand (The ...
2
votes
0answers
67 views

Error when running distance matrix in QGIS 3.4.10

I just recieved this error when running the distance matrix in QGIS 3.4.10. I have been using this with success but am now receiving this error. I have checked the data and I cannot see anything ...
3
votes
1answer
330 views

Distance between two points - by ID in QGIS

I have a dataset of 350 or so individuals. Each individual has a start point (2 columns with Lat and Long) and end point (2 columns with Lat and Long). I would like calculate the distance between ...
2
votes
0answers
30 views

Shortest Paths Between Adjacent Points on a Network

With the project I'm currently working on I need to calculate how much the total length of the network increases as I expand it from one node to the next. I have the road network as a line layer (...
1
vote
1answer
167 views

Calculating minimum distance between all points of 2 different point layers using QGIS? [closed]

I use QGIS 2.8.3 or 3.4 whatever works better. I need to calculate the mimumum distance between all points of 2 different point layers. I was reading this post https://gis.stackexchange.com/a/62212/...
5
votes
2answers
795 views

No output in PyQGIS standalone script running Distance Matrix?

I am trying to create a standalone PyQGIS script which runs the Distance Matrix in QGIS 3, see below: ######### INITIALISE QGIS STANDALONE ################ import sys from qgis.core import ( ...
4
votes
1answer
132 views

PGrouting number of results in pgr_dijkstraCostMatrix() not right

When running the pgr_dijkstraCostMatrix() on a PostGIS database with 41000 id's I get only 144000 rows in the matrix. I would have expected much more. What am I missing? I parsed the OSM data with ...
2
votes
0answers
79 views

Grouping layers by attribute value and finding nearest neighbour using QGIS?

I am new to QGIS. I have two layers (layer_a and layer_b) consisting of two sets of points. If I want to find the nearest point in layer_b for each point in layer_a, I can just use the Distance ...
4
votes
1answer
807 views

Solving ‘Null geometry…’ error during distance matrix operation?

I have a tab delimited file with data about earthquakes epicenters and their intensities (signif.txt). I also have a shape file with point data representing populated places of the world (...
1
vote
0answers
102 views

Fail to conduct resistanceGA with run_gdistance

I am using a landscape surface resistance distance counting R packages called resistanceGA It can count commuteDistance with the assistance of another package gdistance It uses the following code to ...
1
vote
1answer
146 views

Calculating distance from centroid points to multiple polygon edges with SpatialLite

My question builds on a question previously asked (Calculating all distances from single points to multiple polygons). User @alexandre-neto provided an answer that I've worked on, but it isn't giving ...
2
votes
1answer
235 views

Travel Distance Calculation in QGIS

What is the best method calculating travel distance between destination and point layer in QGIS when using OSGB 1936 / British National Grid coordinate reference system?
3
votes
1answer
114 views

Fetching the nearest location of points, while accounting for bodies of water

I've got a database of points (in this case, schools) and in my app, users search for the nearest ones to them. Under the hood, we're currently using ElasticSearch to filter by latlng (using Geo ...
1
vote
1answer
391 views

Points Layer to Distance Matrix QGIS 3.6 - Noosa

I'm trying to calculate a sample distance matrix from four points in the BNG CRS: Using Vector-> Analysis Tools -> Distance Matrix, I get: Input point layer is a MultiPoint layer - first convert to ...
1
vote
0answers
558 views

Finding nearest distance between point and polygon layers in QGIS

I am using QGIS to undertake an analysis for a project. This involves a polygon shapefile, which represents a boundary of a site, and a series of points which represents the location of parks. I ...
0
votes
1answer
303 views

dist2Line - Error in dist2Line(…) could not find the function “dist2Line”

I have a csv file with points (about 20 millions georeferenced points) and a line shapefile. I want to find for each point the closest distance to the line. The line is not a straight line it's ...
1
vote
1answer
150 views

Measuring Distances between Points with the same timestamps using QGIS

I'm facing the problem that I want to calculate flight distances of Red Deer. I have a Layer with point Locations of animals; One attribute is the timestamp. I have another layer with point locations ...
2
votes
0answers
196 views

Distance matrix in QGIS shows distance zero to all points

I'm using QGIS version 3.4.2-Madeira. I have a point layer with 96 points in Germany and I want to calculate the 3 nearest neighbors of every point. I know this can be done with the Distance matrix ...
1
vote
0answers
108 views

QGIS: Distance matrix between points, constrained by a polygon

I am looking for a way to calculate a distance matrix between points, but not 'as the crow flies'. I want the distance to be calculated around a polygon layer. Example 1: I have several fishing lodge ...