Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [distance-matrix]

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

0
votes
0answers
9 views

Point-distance analysis using time as an attribute

Is it possible to calculate "points within a certain buffer zone" for each point in a vector layer and do this by controlling time as an attribute field? I would like to analyse morbidity densities of ...
2
votes
1answer
56 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
72 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
69 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
60 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
132 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
46 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
84 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
65 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 ...
4
votes
1answer
457 views

Getting the departure time based on a desired arrival time for driving

Context: I'm working on a logical problem as part of my Msc. thesis in GIS. I want to calculate the departure time (output) based on a desired arrival time (input). I have chosen to use an API to ...
2
votes
2answers
68 views

What do you call a map that shows the closest distance to a set of points?

This is one of those hard problems to Google since I don't know the right words to Google! I have a list of 6,000 retail locations in the US, and I want to know, for any given point, how far away one ...
0
votes
0answers
77 views

QGIS Distance Matrix Output is always consists of zeros?

I have a shapefile with 35 points and I try to have the distance matrix showing the distance of each pixel with each other. I choose the input and the target file the same and the unique ID fields are ...
1
vote
2answers
134 views

Excluding point from Nearest neighbor search once it's been matched using R?

I have two lists of addresses, List 1 and List 2. I want to find the nearest neighbors of the list--but without assigning more than one point to any point. So say point 1A is the nearest neighbor of ...
1
vote
1answer
221 views

Distance Matrix with 2 point shapefiles and one street network

I have two point shapefiles (start/destination) and one sort of street network shapefile. I would like a to create a distance matrix from the start-shapefile to the destination points, using the ...
2
votes
1answer
161 views

Distance matrix (nearest neighbour) with polygons

I would like to calculate the closest distance between polygons in the same layer. The "distance matrix" tool only accept point layers. Is there a (easy) way to calculate the distance between edges ...
0
votes
0answers
33 views

Build distance tables from oceanic coordinates

I have a dataset with many coordinates (lat, lng) in the ocean. I want to create a matrix of distances between the coordinates, but I'm a bit unsure if the right way to do it is simply to calculate ...
2
votes
2answers
290 views

QGIS Distance Matrix - with line geometry output?

I have a series of Output Area centroids and I want to create a matrix of lines between each point (every point connected to every point), which is effectively what the distance matrix tool does (I ...
2
votes
0answers
149 views

Find the nearest neighbour for points in one layer to points in another, then measure the distance

USING QGIS 2.18.19 with python console (planning to upgrade to the newest QGIS after this piece of programming) I am struggling with finding the correct pyQGIS coding for this. I have a shapefile ...
2
votes
1answer
145 views

Getting distances between mutiple points and one “central” point using QGIS?

I have a GPS data including static measurements and would like to look more in detail on those static ones. Is it possible to take the point cluster from one measurement (I can extract it by time ...
0
votes
1answer
169 views

QGIS Distance Matrix execution fails

I am trying to use the distance matrix to measure the distance between a crime (input ID) to the closest subway entrance (target layer). The problem is that sometimes the matrix comes out with results,...
1
vote
2answers
321 views

Distance Matrix output

I'm using QGIS 2.18 Las Palmas, and I'm trying to build up a Distance Matrix of a series of points for a Mantel test. Specifically, I have a series of points and I want to calculate the distance of ...
0
votes
0answers
893 views

Creating a distance matrix for line and/or polygon layers?

At 2.18.16, the QGIS tool Distance Matrix computes pairwise distances between all points, either within one layer or between two layers. Here's a screenshot for a single layer. Note that only points ...
3
votes
1answer
151 views

Is there a standard measure of Remoteness?

I have a number of sites around the globe, and they are not uniformly distributed. I would like to use some measure of remoteness, in order to compare sites that are more or less remote. I guess ...
1
vote
0answers
79 views

QGIS-bin.exe stops working when trying to run NN-Join

I am trying to calculate nearest neighbor using the NN-Join add-in. This has worked well until now, but after I updated my data it only partly works. I have a point layer, and I have three other ...
2
votes
1answer
319 views

Calculate distance matrix based on network

I have the following layers in QGIS: origins points destination points a layer of lines that is the route I want to calculate the matrix with the distance from origin to destination using Network ...
1
vote
0answers
65 views

Distance matrix batch process for different area types in one layer

I have a layer of the centroids of all neighbourhoods in a city, with neighbourhood ID and borough ID as attributes of each point. The city is made from boroughs, which are themselves made from ...
0
votes
1answer
744 views

Calculate distance matrix in km units

I would like to create a distance matrix and have as output the distances expressed as kilometers (km). Here my current output, which I believe is in degrees and NOT in km: My coordinate system (CRS)...
2
votes
0answers
153 views

Network Analysis of Multiple points

Is it possible to do a network analysis along a path (road) from multiple points to one point in QGIS? I am trying to calculate the distance from the center of various suburbs to the city center. ...
3
votes
1answer
108 views

mean coordinates and measurement of distances

I am trying to find a location that minimises the total distance to a series of points, and compare it with the distance to an existing location. I used the QGIS tool mean coordinate(s) to calculate ...
3
votes
1answer
71 views

Why does my RAM cap out around 150 MB when doing the Distance Matrix analysis in QGIS?

I am currently trying to determine the 2 nearest points for a database of 8 million people against 425 locations. I have 2 csv files uploaded into QGIS one with a unique number for 8 million people ...
5
votes
1answer
436 views

Calculating shortest distance between points within polygon using QGIS?

I performed a transect in which I sampled several animals. The location of these animals are represented by a point shapefile. I am interested in calculating a pairwise matrix of distance (in meters) ...
3
votes
1answer
134 views

How can I use Distance Matrix tool in QGIS with metric distance for global data?

I have 2 point layers spread out all across the globe. I would like to use the Distance Matrix tool, and would like to get the distances in metres or kilometres. I'm aware that I have to change the ...
3
votes
0answers
72 views

How do I measure shortest distance where it crosses +/- 180 (the International Date line)

I'm trying to measure the shortest distance between two sets of points on the globe in QGIS. One set of points is close to -180 and the other close to +180, QGIS Distance matrix is giving me a ...
1
vote
0answers
39 views

Estimating road network distances when database queries are expensive

I have a large number N of points and I'd like to build their distance matrix with respect to a road network. Unfortunately, I am not able to perform all N^2 queries to build this matrix, so some ...
2
votes
4answers
610 views

Creating a Point at a specific distance between two Points

I am trying to create a new point shapefile and I am unsure how to create it. I want to create a new series of points that would be based on a specific distance between two points in an existing ...
0
votes
1answer
85 views

Obtaining contiguity matrix from layer of polygons using ArcGIS Desktop?

I have a layer of statistical areas, and would like to obtain the contiguity matrix, that is, the matrix W in which an entry w_ij equals 1 if i and j are neighbors (share a border) and 0 otherwise. ...
3
votes
1answer
401 views

Distance matrix returning incorrect values in QGIS 2.18

I'm having issues with the distance matrix tool in QGIS 2.18 giving output distances that do not match the distance using the measuring tool. I've checked previous threads and so far can't find an ...
-2
votes
1answer
168 views

Need to calculate distance (Node to Node) along the lines [closed]

I have a Shapefile (polygon), I need to calculate distance (Node to Node) along the lines in map unit(meter or kilometer). I want to do it in ArcGIS.
2
votes
1answer
764 views

Distance Matrix PostGis

Assuming I have a table or 2 dimensional array with only geometries and names (all in all 5k elements) name the_geom a polygon_geometry.... b polygon_geometry.... c ...
2
votes
0answers
246 views

Calculate Great Circle Distance between two point layers via way point

I need to create three distance matrices for around 550 points spread throughout Africa, Europe and Asia. The first matrix represents great circle distances, the second is the shortest distance along ...
1
vote
2answers
56 views

Error in pairdist calculation

I'm trying to calculate pair distances among the points of my dataset. I have point in EPSG:3857. This is the code I ran: I import the data, then: coordinates(datPb) <- c("X","Y") proj4string(...
3
votes
2answers
430 views

Where has the 'distance matrix' tool gone in QGIS 2.18.0?

Today I installed QGIS 2.18.0 and I wondered, where has my 'distance matrix' - Tool gone?
1
vote
1answer
2k views

QGIS Distance Matrix Output

I have a shapefile of points and want to measure the distance between each of them. After running the Distance Matrix command I get a matrix with distances as expected, but have no idea how to match ...
4
votes
0answers
313 views

Using Proximity tool in QGIS 2.16

I am using the proximity algorithm to generate a raster proximity map indicating the distance from the coast (points shapefile) of my study area and the center of each planning units (I have divided ...
2
votes
1answer
354 views

Problem with units in distance matrix after projection change in QGIS

In QGIS 2.16.3, I have a point file, originally in the WSG84 (EPSG:4326) projection. I wish to determine the distance in km between each point in this point layer and intend to use the distance matrix ...
2
votes
1answer
2k views

OSM table(Matrix) Api returning distance 0 for small routes

I am building a webservice which returns distance of various shops, from lat,long received from mobile. For that I want to use osm table api, but it return zero for search on lat,long: Click on link:...
1
vote
1answer
92 views

Finding furthest distance between two UK buildings that share same postcode? [closed]

What is the furthest distance between two UK buildings that share the same postcode? I'm not sure how to find this out myself.
0
votes
1answer
497 views

How to calculate distance matrices for points based on common denominator?

I am dealing with a vector layer containing ~3400 points. All of them have an individual identifying code (Name) and another one (Network) they share with others of the dataset since they belong a ...
6
votes
2answers
984 views

distance matrix with a linear feature

I would like to use the distance matrix tool (or a similar function) to look at distances between sites (displayed as point data) and large rivers (displayed as linear). I have been following this ...
1
vote
0answers
58 views

Creating shortest path up surface?

I have X,Y,Z points that I can create a surface in arc with. I wanted to know if there is a tool that would show me the shortest path up this surface to the highest point. This could be based off of ...