Questions tagged [distance]

The measure of separation between two entities or locations that may or may not be connected, such as two points.

Filter by
Sorted by
Tagged with
2
votes
1answer
44 views

Getting nearest point but with a filter conditional in QGIS 3.4?

I have two point layers in CSV files, each with about 500 points/rows. Each point in both layers has a year column (attribute). I know how to use Distance Matrix to find the nearest point. BUT: For ...
0
votes
0answers
26 views

Finding neighbors of latitude longitude pair location

I have a list of points (more than a few million) defined by latitude and longitude. I want to find out the neighbors of each point. For example, I want to know for each point, what the nearest point, ...
2
votes
0answers
39 views

Calculating line length to both sites in QGIS

Is there a function or a plugin for QGIS that works like this? I have a line, for example, 7 km I click on that line at any point A popup or something gives me the distance to the left an to the ...
0
votes
0answers
25 views

Distance from point to line with positive and negative values (near tool?)

I am trying to calculate the distance between collected points and a generated shoreline, but I also need to know if the points are inside the shoreline or outside the shoreline. I have been using the ...
1
vote
0answers
22 views

Recognized, calibrated test points for a rangefinding function?

I'm trying to find out if there are scientifically accepted calibration points to measure the effectiveness of a geodetic distance finding function. So far I've been using the listed latitude / ...
3
votes
1answer
113 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 ...
0
votes
1answer
46 views

Apply symbology based on an algorithm (ArcGIS)

Been battling this problem for a long time now, so hoping someone here can shed light on a possible solution. The problem is that I have 100 points and I want to apply a color palette to the points so ...
0
votes
0answers
12 views

Error when running v.net.distance

I'm running grass76 on CentOS 7. When I have a network map (generated using v.net) with layer 1 having the arcs and layer 2 and 3 having the sets of nodes that I need to connect. Details are as ...
1
vote
0answers
19 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
47 views

Creating Voronoi diagrams using JTS and the manhattan or minkowski distance metrics

In Java I am using the JTS library. Is it possible to use this library to generate Voronoi sites using different types of distance functions? https://locationtech.github.io/jts/javadoc/org/...
3
votes
1answer
49 views

Nearest line to polygon based on equal attribute

I have a polygon shapefile and a line shapefile with several thousand features each. I want to get: The nearest distance between a polygon and a line that have the same attribute (e.g. ID). Example ...
1
vote
1answer
37 views

0.5° × 0.5° to meters

This paper https://www.sciencedirect.com/science/article/pii/S1352231017300936 mentions using a 0.5° × 0.5° resolution grid, and I've tried googling to find out what that means in meters but I come ...
1
vote
1answer
21 views

Apply function from rgeos package to data sets

I am using gDistance function from rgeos package to calculate the nearest distance from points to a polygon. Originally I used for loop to calculate the distance for each row in my points data set, ...
2
votes
2answers
123 views

Get latitude and longitude differences by clicking in two locations on the map

Is it possible in QGIS 3.x to click in two places on the map and to get back the X and Y distances between these two locations (latitude and longitude differences). I was hoping there is a plugin ...
0
votes
2answers
49 views

QGIS changing map options distance units

I want to change the map distance units option in QGIS from metres to centimetres. I am currently using projection British National Grid EPSG 27700. I would like the print composer to print a map ...
0
votes
1answer
24 views

Raster analysis , Proximity (raster distance)

This is my first message here. I am trying to create a proximity map with the Raster analysis tool. My problem is that I only get two options for distance units , pixels coordinates and georeferenced ...
3
votes
2answers
80 views

Calculating geodesic distance along a path (lat/lon points) at once?

Using Python 3.7 with Jupyter Notebook on a Win10 x64. I have a list of lat-long tuples representing a path and I want to calculate the total length along that path in meters (or km, miles etc). I ...
1
vote
0answers
33 views

Cross section profile distance not providing accurate distances?

I have created a DEM file, which I am using to draw a cross section along a line to see the variation of height from point A to point B along land seen below. When it use the Profile tool on the ...
0
votes
0answers
22 views

Calculating distance between polylines from same feature class using ArcGIS Desktop?

I have a feature class with multiple lines outlining the extent of a glacier through time. I would like to calculate the distance between consecutive years (i.e two polylines from the same feature ...
2
votes
3answers
60 views

Finding accurate distance of a drawing in QGIS

Attached shows a rough drawn image of a pipeline track. I need to measure the pipeline track from one end to the other, e.g from the red and blue square to the other red and blue square, e.g from the ...
0
votes
0answers
24 views

Converting distance from km to degrees (WGS84)?

Is there an equation in which I can convert distance in kilometers into degrees? I am performing a Kriging analysis and when I am measuring the distance between the input points (for LAG and Major ...
0
votes
0answers
37 views

Creating a distance map from OpenStreetMap data

I would like to create a distance map using OpenStreetMap objects as input objects. To explain what I mean with distance map, let's look at the wikipedia definition: A distance transform, also ...
1
vote
1answer
41 views

Optmizing PostGIS minimum distance query

I have the field_1 of my Table_1 that must have the minimum distance between the geometry of my Table_1 and any geometry of my Table_2. To do so, I used a CROSS JOIN (Full Cartesian Product) between ...
0
votes
0answers
21 views

Maximum mathematical variation between non-government, non-state, physically contiguous zip codes?

I'm programming a matching list for street addresses, and I'm trying to prioritize different aspects of the address based on likelihood of similarity if both addresses are the same physical location. ...
0
votes
0answers
37 views

Error in RGEOSDistanceFunc(spgeom1, spgeom2, byid, “rgeos_distance”) : negative length vectors are not allowed

What does the error in the title mean? I'm fairly new to GIS and can't understand which negative length vectors R is talking about? Here is what I'm doing: I have a csv of lat/long locations of ...
1
vote
0answers
21 views

Find closest points using S2, given point and radius

I'm trying to use the go s2 package to find closest points, given a point and a radius (meters). I'm modeling my alg. after dynamodb-geo.js as I'm storing my points in DyanmoDB. I can't seem to get ...
3
votes
2answers
81 views

Calculating distance between multiple lines of points in QGIS?

I'm looking to calculate a distance from a sensor reading to that of the nearest sensor reading on a different sensor line, all held within the same points file. Ideally using QGIS. The image below ...
1
vote
0answers
26 views

Distance in advanced digitizing not working properly?

I'm trying to remap a papermap of a festival with QGIS. I tried to use the advanced digitalizing tool to set the right distances and angles between the point but noticed that the distance I put in isn'...
0
votes
1answer
114 views

Calculating the distance of each pixel in a raster from a point in PostGIS [closed]

I have a raster in PostGIS and a table of points. I want to calculate the distance of each pixel to each point. How can I do that? For example, if 9 pixels and 3 points, then I want to calculate 27 ...
1
vote
0answers
35 views

Calculating nearest distance between points and Spatial Polygons in R? [closed]

So right now I have pretty large datasets, about 200,000 (lat,long) locations and a Large SpatialPolygonsDataFrame with a polygons list of length 428386 spread in a single city of around 450 square ...
1
vote
0answers
19 views

Find distance between points and borders

I'd like to ask for your help for the following problem. I would like to find the distance for each points from the nearest border, represented by the polyline feature here. I was thinking about ...
2
votes
0answers
45 views

Getting minimum distance of points with scalable algorithm

I have a number of geographical coordinates with latitudes/longitudes: id | name | lat | lon 1 | New York | 40.730610 | 74.0060 2 | Philadelphia | 75.1652 | 39.9526 3 |...
1
vote
0answers
53 views

Shift a lat/lon coordinate based on a distance and direction?

I have a coordinate in (lat/lon). I want to find a new coordinate shifted from this point by 'x' meters in the direction given by a compass bearing (degrees). The distance offset I am hoping to ...
1
vote
0answers
21 views

Similarity between two sets of lat/long points

I am trying to measure the similarity between two trajectories (two sets of lat/long points) which are the outputs from two APIs. I am trying to measure the difference between the routes given by ...
2
votes
0answers
41 views

Is there a difference in using Haversine distance vs re-projecting coordinate frame?

I have a GeoTIFF raster file in the EPSG 4326 (WGS 84) geographic coordinate system. I want to crop a 20 km x 20 km square around a particular (lat, long) coordinate, and save that as a new raster. ...
5
votes
4answers
211 views

Finding distance between buildings and nearest road using QGIS?

I am very new to working with GIS data. I am currently using the QGIS tool to work with the data. I have two datasets: Buildings - polygon shapefile with information about different buildings in a ...
1
vote
0answers
53 views

How to calculate walking distance between multiple addresses? - QGIS

I am working with historical data and I would like to calculate the walking distance between multiple addresses. For instance, in my excel dataset I have someone who lived on 1 Laurierstraat in ...
1
vote
0answers
41 views

Wrong units in QGIS distance matrix

I am trying to teach myself QGIS. I have been following the following notes: http://www.qgistutorials.com/en/docs/nearest_neighbor_analysis.html While trying to reproduce the results from the link ...
2
votes
1answer
38 views

Distances between points British National Grid (BNG)

I have a point dataset expressed in British National Grid (about 10,000 points distributed all over the UK). I want to do some cluster analysis and I am aware that distance distortion might have an ...
1
vote
2answers
96 views

Distance between two points on QGIS 3.4.7 and Python 3.7

I am under the 2154 CRS (RGF 93). I want to calculate the distance in meters between two point knowing their coordinates. Let's consider two points : A(474828.85, 6756169.31) and B(874895.75, 6756159....
0
votes
1answer
32 views

Computing x and y distances between two raster maps using GRASS GIS?

I am working with a maximum water elevation raster in which, similarly to using r.grow.distance, I am trying to extract the distance from the each null cell to the nearest water elevation cell. ...
0
votes
1answer
30 views

Calculating distance between points following flow direction on ArcMap?

I delineated flow directions in a watershed on ArcMap (10m DEM). Then I want to calculate distance between two points 'following' the flow direction in each raster cell, not a straight line distance. ...
4
votes
1answer
77 views

QGIS 3.4 distance matrix returns the wrong point

I'm using Distance Matrix to find the closest point between one set (4 points) and another set (4 points), detailed below. All results look okay except one, where the returned point is not the closest....
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 ...
0
votes
0answers
74 views

How to compute distance between two spherical Mercator points

I am computing the Mercator points according to the top answer at Convert latitude/longitude point to a pixels (x,y) on Mercator projection. Now that I have two Mercator points on a spherical ...
2
votes
1answer
70 views

Get weird result when calculating distance between two points, using latitude longitude?

I use algorithm (see: calculating distance between two points) to calculate distance between two points. but it get wrong result, see Java code: /** * group1:set latitude to 89 */ // set ...
1
vote
1answer
49 views

Table to Distance Between in PostGIS

I am a new user in PostGIS. I need to create a table with the ID_DIR of table A, ID_SQ of table B and have a new column called "Distance" that would be the distance between the ID_DIR and the ID_SQ in ...
0
votes
1answer
69 views

Batch travel distance calculation in QGIS

How to calculate the walking distance between postcodes and destination in QGIS? I have the following shapefiles: 1 layer containing the destination; 1 layer containing 1,000 postcodes. I've ...
0
votes
0answers
53 views

Calculate driving distance between coordinates using ArcGIS Pro?

We need to calculate the driving distance between students and the nearest PreK center. The issue with using the Cost Matrix is the cost. We have 250,000 students and around 2,500 centers. I ...
0
votes
1answer
35 views

Obtaining pixels between 2 raster layers (border)?

I have a rasterStack obtained from a stack of 3 raster layers by: image = stack(A, B, C) I would like to calculate the distance between the pixels of layer A and pixels of layer C. After ...