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
0
votes
0answers
12 views

How to find distances between countries based on borders in R?

I'm trying to get the distances from one country to a list of other countries based on the countries border in R. I was able to find one example: Closest distance between countries but it is using the ...
1
vote
0answers
9 views

Distance between two vector lines in each east-west raster row (in QGIS)

I have 2m-resolution raster LiDAR data of a marsh edge from two moments in time and I am trying to calculate how much the marsh has "retreated" between the datasets. I used the LiDAR data to ...
0
votes
2answers
30 views

QGIS v/s MapInfo - Differences in Distance Measurements

Distance calculated in different software (MapInfo and QGIS) has given me differences in distance values. To be more precise, it's mostly happening when the distance is more than 25 miles. I doubt ...
1
vote
1answer
51 views

Calculating distance between points within river network using ArcGIS Pro

I have a shapefile of a river, and the coordinates of several points. I am interested in calculating the pairwise distance between each of those points along the river network. Is there any way to do ...
4
votes
0answers
48 views

Finding features with equal distance for houses in archaeological data using QGIS

My goal is to find house sketches in archaeological data. I have a shapefile from an excavation where all the archaeological features, mainly pits are measured as polygons. The polygons have different ...
1
vote
1answer
38 views

Recursive calculations on a river network

I have a dataset that contains network distances along a river network. This dataset was created using Topotoolbox in Matlab, with the node and segment information exported. I've been working on the ...
0
votes
0answers
58 views

Seeking formula for Distance Calculation on Mars

I have a database of craters on Mars in decimal latitude and longitude. The latitude ranges from about -90 to 90 and the longitude from -180 to 180 which feels right to me. Is there a formula to ...
0
votes
1answer
27 views

Calculating distance between polygons using ArcMap

I am a new user to ArcMap. I have two layers of polygon features and I want to calculate the minimum and mean distance between polygons of one layer and polygons of the other layer. I am guessing that ...
0
votes
1answer
20 views

Measuring distance between two points using digital elevation model (DEM) and ArcMap

I have a number of points mapped on a digital elevation model (DEM). The points were mapped on the DEM based on their GPS location (latitude, longitude). What is the best way to measure the distance ...
1
vote
1answer
61 views

Highlight duplicates at nearest distance

I have a point shapefile with several names and there are a lot of duplicate names in the data. I want to highlight the nearest duplicates in the data. How can I solve that in QGIS?
1
vote
0answers
21 views

Filtering duplicate records using space and time overlap

I have a dataset consisting of about 23,000 fire incidents obtained from years of fire brigade reports. The incidents have a lat, lon, and timestamp. The problem is that in the case when two (or more) ...
2
votes
1answer
39 views

Computing the line of equal distance among several polygons in R

I have a simple GIS problem I was not able to find the solution on the internet. My aim is quite simple: I have a polygons layer that contains several entities, and I would like to compute a new layer ...
1
vote
1answer
32 views

Identifying polygons that lie between two polygons using ArcMap

I am working on a single layer which includes an island constructed of multiple polygons (used to represent territories). I would like to look at dispersal between territories, specifically, how many ...
2
votes
2answers
52 views

How to make a Heat Map of Distance between a set of parallel lines in QGIS?

How to make a Heat Map of Distance between a set of parallel lines in QGIS? This question is an extension of Question posted on the following link: Distance between multiple parallel lines? I have a ...
0
votes
0answers
26 views

QGIS: Plug-in to determine optimal distance between coordinate and shape file [duplicate]

I have coordinates of power plants and I would like to determine their optimal distance (shortest distance) to electric grid lines (shape file). How could this be done in QGIS?
2
votes
1answer
81 views

Calculating distances between buildings, plots and road network

I have three layers, see image below: A polygon layer containing building outlines (Purple) A polygon layer containing plot outlines (Yellow) A polyline layer showing the road network ( Red) What I ...
5
votes
1answer
120 views

How to create distance map in QGIS3

I need to recreate maps like on picture in QGIS 3. They were created in ArcGIS 9.3. Have no idea how to do this, found no guides. The main problem are roads and rivers, because they are not specific ...
0
votes
0answers
36 views

What strategies exist to speed up point-in-multiple-polygon searches? [duplicate]

Consider a scenario where you have polygons representing the border of every country in Europe. You also have the Lat/Long of a user's mobile device. You now want to display which country that user is ...
5
votes
3answers
145 views

Calculating distance of all points to central point using QGIS

I'm using QGIS and the points on this map represent different periods of the day in which coyotes were observed. I am trying to figure out if coyotes are active at different times of the day based on ...
1
vote
1answer
33 views

Haversine distance versus Euclidean on an eqc “equi-distance” projection

I've got a network covering a large area, but the individual links are fairly small (<1km). For calculating edge lengths I'm trying to decide whether it would be better to use Haversine distance ...
0
votes
1answer
35 views

Three different distance values, which one should I use?

I'm implementing a script that (ideally) has a threshold of <1 meter. However, I have three different distances being pulled from these points that differ by multiple meters. I was wondering which ...
1
vote
1answer
36 views

Incorrect Shortest Paths

I compute shortest paths between ports. However, some of the resulting paths are simply incorrect. Consider the following example where coast is multi-polygon object of the planet's landmass (e.g. ...
1
vote
0answers
49 views

Measuring distance from centroid to polygon's boundaries in R

I'm still new to raster and sf and I'm having some trouble getting a distance between a point and a polygon for every time period. I have a sf object with MULTIPOLYGONS that refers to flood episodes ...
1
vote
0answers
35 views

Calculating mean value for all pixels within given distance for all pixels in study area using raster analysis in QGIS

I am working in QGIS I have a raster layer depicting the population density for a country. A portion of this raster layer is used as a study area. I want to know for each pixel in that study area what'...
6
votes
3answers
214 views

Find nearest line feature from point in QGIS

I have a line feature set and point feature set. I want to get the nearest line feature from every point. For this, the line features are converted to point using "Extract Nodes" tool. Then ...
0
votes
0answers
32 views

Distance and Functions in Google Earth Engine: Producing function that counts points at a given distance each year

I have tile centroids tileCentroids that cover a polygon in Sierra Leone. I also have a feature collection of points of interest in Sierra Leone saved as camps. The points are only present in some ...
1
vote
1answer
26 views

Distance between current and previous GPS Point BigQuery

I have a table with 150.000 rows containing DateTime, GpsLongitude and GpsLatitude columns. Timestamp difference between rows is 10 seconds. I want to calculate the distance between every current and ...
0
votes
1answer
90 views

Euclidean distance units for WGS84 files?

I have a lake raster file and I want to calculate the euclidean distance. My raster file is in EPSG 4326 and I use the r.grow.distance from GRASS GIS through QGIS plugins. What are the units from the ...
1
vote
2answers
76 views

Calculating perpendicular distance from centroid of polygon to multiple lines in QGIS

In QGIS 3.10.4, I have two shapefiles (polyline and polygon, layer name 'boundaries', 'lines' respectively), look like below: My goal is to calculate the perpendicular distance from the centroid of ...
1
vote
1answer
34 views

Distance raster from polygon features

I have a dataset of buildings as polygons in Qgis 2.14 (image below). I'd like to create a raster of distance from these features (ideally with arbitrary cell dimension), for which each cell expresses ...
1
vote
1answer
66 views

Calculating distance to the closest feature from different layer using Fiel Calculator

I am looking for the distance of the closest point (Layer 1) to my atlas object (Layer 2). I want to use the expression builder. Example: I have a House, which is also the atlas_feature, on 'Layer A'. ...
0
votes
0answers
21 views

Calculate shortest car distance — repeated over many points

I am using QGIS 3.10. I have a dataset with coordinates of many households. Separately I have coordinates of a number of sites. For each of these households, I need to calculate: Which is their ...
2
votes
3answers
60 views

Figure out location of city direction sign in image - friday fun project

So I came across this image and wondered where it could be located given the directions and distances. But I started to realise that the sign is all wrong. I'm guessing the Greek alphabet one is ...
2
votes
0answers
49 views

NNJoin in QGIS does not return any distance

I have two layers, one with ~100,000 points, and another with ~20 polygons. I'm trying to find: a. which polygon a point belongs to b. the distance from the point to that polygon I understand that ...
2
votes
2answers
87 views

Nearest point to another point with condition in QGIS 3

I have two different statewide layers of points. One set of points are locations of ballot dropboxes and the other points are residences. Both layers have a column for city. I'm trying to calculate ...
4
votes
2answers
137 views

Measure shortest distance between all points in a layer and a polygon's border line

How do I measure the distance between all points in a vector layer and a polygon (not to the polygon centroid, but to it's border line)? In the image points are fires and the polygon is a National ...
1
vote
1answer
38 views

How to get most accurate Point-Point distance queries in Europe with Spatialite

I have a GeoDjango app, currently on PostGIS, which I am converting to use Spatialite db instead. I have no specialised knowledge about GIS systems :( The locations table has a Geography column ...
0
votes
1answer
165 views

Calculating distance between two Linestring using Python

I have two linestring, each linestring represents a rail road. I am trying to calculate minimum distance between these two linestrings. Which function is efficient to do this? I have only come across ...
0
votes
2answers
75 views

Why are the 500 meters not 500 meters? And how do I add 500 meters in x/y direction to a lat/lon point?

I wanted to create a square cell on a map with size 500m times 500m. Therefore, I wrote the following code: from pyproj import Transformer bl_lat, bl_lon = 40.64423086189233, -74.0307935018417 ...
-3
votes
1answer
50 views

Is there an Excel, Stata, MATLAB, R or Python program or online website that converts geo-coordinates to distance at large scale? [closed]

I have the geo-coordinates (latitude and longitude) for more than 1000 counties (in Excel) in the US, and I want to know their distances to a particular county with known geo-coordinate. Is there an ...
0
votes
1answer
49 views

ST_HausdorffDistance() mismatch

I have been using PostGIS 3.0. The ST_HausdorffDistance() function calculates a symmetric distance between two polygons. However, Hausdorff distance is not a metric since it is the maximum distance ...
1
vote
1answer
70 views

Measure length (in pixels) between multiple points on an image?

I have a fairly high resolution map (jpg, not vector), with a known scale. How to measure the length in pixels between multiple points on an image? For a straight line it is simple, but how to do it ...
0
votes
1answer
60 views

Appropriate CRS for Close Distances in USA

I have a very big dataset in the form of longitude-latitude points in the US; with points from the entirety of contiguous US. I need to calculate the distances between points and check if they are ...
0
votes
0answers
66 views

QGIS 3x calculate distance between two points with coordinates

I have a problem, very similar to Calculating distance between two points with coordinates using ArcGIS Desktop where I would like to calculate the distance between two polygons (circles) with their ...
0
votes
0answers
44 views

Polygon buffer by distance

I am working with a world map shape file in the Spherical Equidistant Projection (Equirectangular) in QGIS 3.4. When creating a buffer using the VectorGeometry>Buffer function set for distance in ...
1
vote
0answers
113 views

Faster st_is_within_distance for points to lines

I am looking for a fast way to run a st_is_within_distance (or equivalent) in R, to find all the lines (y) within a given distance of each point (x). (This would be an equivalent of ArcGIS's "...
2
votes
1answer
43 views

When to use spatial regression for the proximity analysis

I am not sure about whether I should use spatial regression for the proximity analysis I am trying to do. I’ll just describe the scenario and goal: People claim that convenience stores lower nearby ...
0
votes
0answers
28 views

Does Euclidean distance consider multiple points nearby?

I have a hypothetical setting I am trying to use to better understand Euclidean distance. So of course this example will only work for the purpose of understanding a concept, rather than actually ...
2
votes
1answer
40 views

QGIS 3x automeasure distance for all lines in the layer

I have got 2 lines in my layer. I would like to measure their distance automatically. I found the tool, which might be helpful. This is the v.distance algorithm in GRASS, as advised in the link below: ...
1
vote
0answers
23 views

Add the distance along the route for intersection points of polylines

I have two sets of polylines, illustrated in the screenshot (roads in purple and bridges in blue). I want to find the distance along the route for intersection point of each bridges from the starting ...

1
2 3 4 5
26