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
1
vote
1answer
36 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
19 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
112 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
45 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
54 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
31 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
59 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
21 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
31 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
40 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
20 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
26 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
17 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
78 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
23 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
106 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
28 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
18 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
44 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
42 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
38 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
179 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
40 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
38 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
35 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
71 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
28 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
66 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
57 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
56 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
48 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
60 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
38 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
33 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 ...
1
vote
0answers
36 views

How to measure the distance between two points follow the track?

I have three points shapefile and 1 line shapefile. I tried to use v.distance but it only got directly distance. How can I measure them by track?
1
vote
1answer
104 views

Calculating distance between point and selected pixel in R?

I would like to obtain the distance between a point and a selection of pixel on raster image. Here the process: I read my JPEG image and extract colors I want: img.raster<-stack(***) names(img....
0
votes
1answer
31 views

Calculating distance between each pixel of rasterstack image?

I am new on R and I have an image of class "rasterstack" of only 3 colors: Red, Green and blue as illustrated: I use this function: image = stack(img.red, img.green, img.blue) I would like to find ...
1
vote
1answer
31 views

Farthest from Edge in Raster-QGIS

I have a raster image (green colour in image). I would like to find the point in this raster that is the farthest from the edge i.e. that point from which the largest number of uninterrupted cells in ...
0
votes
0answers
33 views

Calculating a coordinate based on approximate distances from known locations [duplicate]

My goal is to calculate a position based on approximate distances from known nearby locations. The distance observations include inherent error. The number of known locations is often 12 or more. ...
0
votes
1answer
56 views

Nearest Neighbor - return object ID in R

I have a csv file that contains the GPS coordinates of about 100 villages and their unique ID. I have an other csv file with the GPS coordinates of some potential destinations and their unique ID. I ...
0
votes
0answers
17 views

Using output of ArcGIS Euclidean distance tool?

How do I use the output of the ArcGIS Desktop Euclidean distance tool? It gives raster output and I want to generate a table enlisting the distance between various centroids from one centroid.
1
vote
1answer
120 views

Calculating minimum distance in meters of two polygons (defined in lat/long coordinates)?

I'm new to GIS and I'm a bit lost in the terms and concepts, so I'm not sure I'm asking a valid question, but I need to calculate the minimum distance (in meters) of two polygons which are defined in ...
1
vote
0answers
34 views

QGIS3 difficulty drawing 150km distance buffer and showing this on the map

I wanted to construct a 150km distance buffer around a city in North America. I changed the project co-ordinate system of the point to WGS84 Mercator North America from WGS 84 Lat/long to enable the ...
4
votes
1answer
113 views

Match linestrings using Fréchet distance

I have two datasets of roads (both in WGS84). One has nicely digitized geometries, but lack some of the attributes and the other has heeded attributes, but digitized terribly. I want to transfer ...
1
vote
1answer
161 views

Difference between ol.proj.getPointResolution() and ol.sphere.getDistance()

Is there anyone who can explain the difference between ol.proj.getPointResolution() and ol.sphere.getDistance()? I have tested it, and ol.sphere.getDistance() is a little bit shorter than ol.proj....