# Questions tagged [distance]

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

1,567 questions
Filter by
Sorted by
Tagged with
24 views

### Finding distance bettween all connected points (intersections) in a network (on a line) without k-nearest

I am quite new to QGIS so I was wondering whether it is possible to find the distance between all points in a network, such that the distance between each one is determined by whether they are ...
25 views

### NNJoin plugin crash

I'm trying to run NNjoin plugin to compute nearest distance between my plot and buildings (urban) but I'm having this error : Here are my files (maybe not projected yet but it should be in ESPG 23839) ...
1 vote
686 views

### Calculating Euclidean distance in ArcGIS

I am willing to model the distribution of an amphibian species in relation to climate and land cover in MaxEnt. For this I have downloaded the WorldClim data and the Global Consensus Land Cover (https:...
1 vote
58 views

### ST_Distance from one location to several locations on the same table

I have a table that contains different city buildings called "gebaeude_salzburg". I want to calculate the distance of all the buildings of the type='school' and 'kindergarten' to the central ...
442 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 ...
28 views

### How to calculate a specific distance along a multilinestring from a specific point in QGIS

I have a shapefile of a road network and another one with some points. What I should achieve is calculating a fixed distance (e.g., 10 km) in all directions along the road network, starting from the ...
155 views

### Get convex hull of polygons if they are within a certain distance of each other otherwise leave their geometries alone

What the question says, I want to join geometries together (as a convex hull) if they are within a certain distance of each other, and leave them as separate geometries if they have no neighbors ...
71 views

### Multiple operations within Field Calculator using the same IF statement

I have 2 layers (Point_Orien_Vert - red points and Point_Centroides - green points), both are Point Geometry. I need first to check if the distance between one feature in Point_Orien_Vert and one ...
31 views

### QGIS shortest line between features cannot return 0,0?

I have been out measuring railway tracks. I need to find any deviations from a straight line on the individual rails. I have created a line between the first and last point in my measurement (snapping ...
35 views

### How to select lines within a distance of a certain point?

I am currently dealing with the following issue: I have a dataset with of the roads of a certain place in The Netherlands. Within this place I added two points. I would like to know all the roads ...
1 vote
59 views

### QGIS field calcuator expression distance between centroid and point feature of another layer

I look for an expression in QGIS field calculator, that calculates the distance between the centroid (red dot) of polygones (red polygones) of layer 1 and the nearest (point-) feature of layer 2 (...
253 views

### Using ArcGIS Pro tools to determine front of polygons in relation to street lines

I am looking for help to develop a process to identify the sides and lengths of parcel polygons in relation to streets to determine the 'front' of the polygon, i.e. facing the street, so I can then ...
113 views

### Calculating sum of Euclidian distances from one point to multiple points within buffer in QGIS

I want to calculate the sum of the inverse distances from one main point to multiple other points within a buffer around the main point in QGIS I have a point file with multiple home addresses (red ...
70 views

### Extract longest distance between a point and the edge of a polygon for multiple polygons in QGIS

I want to calculate the longest distance between the edge of a polygon and the point that is inside it (or if no point is inside, then the closest point). The polygons are catchments and the ...
26 views

### Why is r.grow.distance in GRASS GIS returning a raster with all values = 0?

I'm trying to create a raster map that contains "Euclidean" distances to roads from another raster that contains said roads, by using r.grow.distance in GRASS GIS. The command executes ...
2k views

### Calculating shortest distance between multiple Polygon borders to a common Polygon border?

I have 2 sets of Polygons and I need to calculate the shortest distance between the polygons on one layer to the single polygon (one feature) on the other layer! How can I do that? Any help on how to ...
334 views

### Calculating point density as attribute in point layer in QGIS

For each point in my layer, I would like to calculate the number of other points within x distance, and for that information to be in the attribute table. I have a method but it is a few steps. As it ...
826 views

### Calculating relative position between geocoordinates and distances

I am working on a Unity application and am using the Haversine formula to calculate the distance between two points. I know the overall distance + the distance along the latitude and longitude are ...
27 views

### GRASS build polylines based on category/ID (v.net.distance)

I have calculated shortest routes between citywide origin-destination pairs with GRASS and v.net.distance. These routes are segmented, however, and I would like to turn them into polylines based on ...
68 views

### How to calculate GPS offset given azimuth(bearing) angle and slope distance and inclination angle of the object

If there is an object (tree) which gives back the below data measured from a given GPS location: Azimuth angle Slope distance to the tree or object Inclination angle to the tree or object. How to ...
1 vote
382 views

### polygon vertex to vertex distance calculation in arcobjects

I have polygon with multipart (donuts) I want to calculate vertex to vertex distance. I tried to get outer ring vertex to vertex distance and it is working. Could you please tell me how to get inner ...
1 vote
201 views

### How to create a dynamic distance calculator for selected line feature classes?

I am working on a project at a park that I am interning at where the goal is to create a single feature with roads and trails together with some way to show the total distance of selected roads and ...
40k views

### Looking for a Tool to Calculate Distance Between Points (Between Layers)

I am a college student using ArcEditor 10.0 for a semester project measuring distance to hospitals from census tract centroids. This is my first time using ArcGIS, and I have no formal training. So ...
2k views

### How to find the two furthest points between a group of points?

I have a table with 20000 records and with those columns Shop, longitude, latitude, geom I would like to find a way to find the pair of ths farthest shops between a selection of shops For example we ...
1 vote
116 views

### How to Improve a Distance Model

I am working on a distance model that creates distance rings around a given point and assigns those rings a probability. The point is in the center of a 25 x 25 km area, and the model fails to assign ...
278 views

### How to draw 8 lines away from every point in a layer using QGIS?

In QGIS I have a layer of many points, and I am trying to draw 8 lines of radius, r, from each point outwards, in the eight windrose directions (N, NE, .. etc). What is one method that can be used to ...
75k views

### Finding nearest point in other GeoDataFrame using GeoPandas

I've got two geodataframes: import geopandas as gpd from shapely.geometry import Point gpd1 = gpd.GeoDataFrame([['John',1,Point(1,1)],['Smith',1,Point(2,2)],['Soap',1,Point(0,2)]],columns=['Name','ID'...
17 views

### Map location of unknown point coordinates with two known coordinates and distances between them [duplicate]

I have a problem where I need to find the coordinates of a point which is the intersecting point of two circles. I found a similar question on stackoverflow. I understood to some extent, but not able ...
404 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 ...
11 views

### Creating table from distance raster

I have made a distance raster in ArcMap using the Euclidean Distance tool from one town to another that appears to be OK (see attached image). I'm trying to determine the distance from each parcel in ...
43 views

### Calculating average of nearest neighbour distance between points in grid

As a novice ArcMap user, I would like to calculate the average of the shortest distances between each point contained in a vector grid. My inputs are two vector layers : a polygon grid and points. The ...
2k views

### Why ellipsoidal distance measured in EPSG:7030 in QGIS?

I measure distance (km) in QGIS (Ctrl+Shift+M) . In Ellipsoidal, it using CSR EPSG:7030. In Cartesian, they didn't say what projection is used. If it using ellipsoidal option, does it mean measured ...
116k views

### Drawing lines from points in QGIS

I have a point layer and need to draw a line passing through or in the vicinity of the points (up to 0.5m distance between the point and the line). The nodes of the line will receive the attributes of ...
214 views

### Locate features along routes: measurement unit output?

I am using ArcMap version 10.3.1: I have a polyline (also converted to a route feature) and points layer. All points lie on the line. I want to calculate the distance each point is from either the ...
359 views

### Criterion for measuring distance between group of points to origin

I wonder if is there any criteria to represent the distance of a group of points (in 2D space) to origin? A simple criteria is the mean of distance of each point. But as can be seen in the picture, ...
1 vote
908 views

### Google Earth Engine compute point-polygon distances

I am trying to compute distances from points stored in a fusion table to the nearest political border (also from a Table) in Google Earth Engine. I need to compute distances between points. I would ...
241 views

### Calculating distance while adjusting for obstacles in ArcGIS Desktop?

I have a global grid of points in the ocean and need to calculate the distance to and identify the closest 10 polygons along the coastline for the entire world while also avoiding crossing land. For ...
1 vote
41 views

### Minimized distance between points while staying INSIDE of a designated polygon

I am a fisheries student and am currently tracking fish movement in a lake. I am trying to assess their optimum/minimized distance moved between each sequential location for each fish. However, I can ...
1 vote
777 views

### R (gdistance): least cost path passing through and/or crossing cells with NA

Intro The 'gdistance' R package is really useful in calculating least-cost paths (hereafter LCP) between locations. I have successful used some published material (LINK) for my purposes. What I'd like ...
181 views

### Travel time for shortest path (by distance) in QGIS

I have a network with previously calculated and direction-dependent travel time for each edge (speed_fw for drawing direction and speed_bw for against drawing direction). I prepare the network in QGIS ...
1 vote
568 views

### Calculating distance between points within grid polygon

I'm very new to ArcGIS, and I would like to calculate the average distance between points within a grid for every grid. How do I implement this? My data look like this
32 views

### Accumulated distance between points

I have this piece of code that I can make lines between points and calculate the length of the line, but now I need to calculate the accumulated distance only between the X axis, I managed to use ...
860 views

### Converting between lat/long/azimuth and distance/heading

I have three points, p1, p2, and p3, and I'm trying to find the distance between p2 and p3. I have the latitude and longitude coordinates for p1 and p2 and have the p3 - p1 distance in meters and ...
440 views

### Calculating distance covered by points in shapefile using ArcMap

Is there a way to calculate the total distance covered by thousands of points in a shapefile in ArcMap 10.4? I am trying to apply a buffer for each point, then dissolve and find the centerline of each ...
73 views

### Calculate road distance between two points in PostGIS - Resultant distance is not accurate (not even close to the actual distance) [closed]

SELECT torigin1.id AS origin_id, tdest1.id AS destination_id, CASE WHEN ST_LineLocatePoint(troad.line_string, torigin1.geom) < ST_LineLocatePoint(troad.line_string, tdest1.geom) THEN ...
8k views

### Calculate distance between two lat/lon/alt points in Python

I'm trying to find out how to calculate the distance between two points with latitude, longitude, and elevation data. I found that geographiclib.geodesic.Geodesic.WGS84.Inverse() outputs a s12 ...
56 views

### QGIS raster proximity / distance results too small

Following advice at Raster analysis , Proximity (raster distance) & Units raster proximity, I reprojected my geographic-coords raster to projected (NAD83/UTM zone 17, EPSG:26917), set the project'...
446 views

### PgRouting Driving Distance crashing postgis server

I haven't used PgRouting much so I'm a little in the dark here. However, I am attempting a driving distance calculation like the one described by Underdark at Catchment Areas with pgRouting ...
1 vote