We’re rewarding the question askers & reputations are being recalculated! Read more.

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
9 views

Finding average distance to nearest point

I would like to find out the average distance from high schools (represented as a point in QGIS) to libraries (represented as another point in QGIS) in New York's 32 districts. I have already ...
2
votes
1answer
27 views

Point to every other point as dataframe in R

I understand there are several tools out there that can help me accomplish my goal, but I think I'm running into more of a conceptual roadblock. I've tried to implement a fully reproducible example in ...
3
votes
2answers
49 views

Find 3 closest points in relation to another point

Using QGIS, I have two shapefiles: points representing enterprises (about 50k) points representing towers (about 300) For each enterprise, I need to figure out the three closest towers and their ...
0
votes
2answers
66 views

Criterion for measuring the distance between a 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, ...
8
votes
2answers
1k views

Shortest path from points in one layer to points in another layer via roads in QGIS

I'm looking for a way to calculate the shortest path from addresses to subway stations via a network of roads. I have the Road Graph plugin, however, the addresses and subway stations are point ...
4
votes
1answer
83 views

Cleaning GPS tracks from large jump / outliers

Can someone please explain the steps to take in order to eliminate the parts of these linestrings which jump across large distances (not along with the road network)? They were created from GPS ...
4
votes
2answers
6k views

How to use GeoSeries.distance to get the right answer

When I want the distance between two points [(117.454361,38.8459879),(117.459880 ,38.846255)] (longitude,latitude) on the earth, I take the GeoSeries.distance method, but the method does not give me ...
6
votes
1answer
174 views

Deleting “lonely” points in QGIS?

I have a large point dataset of about 5.3 million points. I would like to delete the "lonely" points using QGIS, for example all points with no neighbor within a 5 km radius. The extent of my point ...
2
votes
1answer
498 views

What does st_hausdorffdistance actually compare?

Does st_hausdorffdistance just look at discreet points used to construct a line segment or does it compare two line segments as a continuous set of points? Also, the points used to construct my line ...
1
vote
1answer
36 views

Deleting points based on number of neighbours using ArcGIS?

I have one point dataset of around 270,000 points. I have another larger point dataset of about 3.5 million points. I would like to make a 5 km radius around each 270,000 points of the first dataset....
3
votes
0answers
40 views

Calculating the geographical distance between two points (especially Gnomonic)

I tried to get geographical distance between two points by using spherical trigonometry, Mercator and Gnomonic projection. The detail of 2 points point A ( 15º 55’ S, 5º 44’ W) , B( 32º 19’ N, 64º ...
3
votes
1answer
65 views

Calculating distance (lat, lon) for geom point using PostGIS

I have point in my db (Postgres postgis): CREATE TABLE geometries (name varchar, geom geometry); With example data: INSERT INTO geometries VALUES ('Point', 'POINT(0 0)'); INSERT INTO geometries ...
3
votes
0answers
51 views

Distance between points

I have 200 locations of species presence. Now, I want to calculate the distance of nearest point for all 200 points. For example, if there is a cluster of points A,B,C,D,E,F,G,H, then what is the ...
5
votes
1answer
66 views

Creating Variable Distance Buffers using QGIS

I would like to create variable distance buffers for some points in QGIS 3.4. I have seen in previous posts that there used to be a tool for this in older versions of QGIS, but that this tool wasn't ...
1
vote
0answers
33 views

Draw several lines to represent the distance to a certain point for several points

It gives a certain point that I want to analyze. I want to see what is the distance of that point from the rest of the x points on the OpenLayers map ... The data comes from external JSON in the ...
1
vote
1answer
61 views

Calculating destination point using Python

I am trying to write a function that calculates the GPS (decimal) coordinates of a point that is far of a given distance from a given point. Let say that we start from point 1 (The stripe of Dublin) ...
3
votes
1answer
50 views

Distance between points along line

How do I determine the distance between points to the neighbor point that connected via the line(road)? In QGIS 3.8.3 I have tried v.distance and v.net.distance but they do not help. The line(roads) ...
2
votes
3answers
50 views

PostgreSQL - attach to point table the maxium distance value to edge of containing polygon

I'm trying to find the furthest distance from a point to the edge of the polygon it sits in. The polygons in this case have been converted to vertex points. I have two POINT tables in Postgres (and a ...
0
votes
1answer
15 views

When I run the Join function on two vector layers the distance field keeps returning “-1”

When joining two point layers by geographic location with the "Each point will be given attribute" selection, I keep getting a NEARDIST of -1.
1
vote
1answer
56 views

Using Geometry.distance_to() in ArcGIS API for Python

I'm calculating distances between points in arcpy or ArcGIS API for Python, and am probably doing something wrong. Hopefully, someone can show me what. Take this as an interactive session with ...
61
votes
1answer
375k views

Calculating longitude length in miles

Suppose I have geographic coordinates of "Saratoga, California, USA" as Latitude: 37°15.8298′ N Longitude: 122° 1.3806′ W I know from here that in case of latitude 1° ≈ 69 miles and that ...
1
vote
1answer
193 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
44 views

Distance between centriod of the polygon and each and every point of the polygon [closed]

I'm trying to calculate the distance between centriod of the polygon and each and every point of the polygon using GeoPandas Python I need to find the distance between centroid(18.9568383649 72....
17
votes
10answers
14k views

Which tools and methods can be used to create isochrones?

I'd like to get an idea for what's involved in creating isochrones for a series of sites, with a reasonable degree of accuracy to the estimates. A general outline would be great, though my scenario ...
3
votes
2answers
65 views

Distance between points inside LineString

I have a collection of geometries represented by a linestring. Each has at least two coordinates. Is it possible to write a SQL that instead of returning coordinates, return a distance between them. ...
1
vote
1answer
35 views

Moving points by multiple attributes automatically

I have a shapefile including sightings of birds (points), but the gps points are taken from where the sighting have been made, not where the bird actually are. And in the map I need to show the real ...
1
vote
1answer
48 views

Calculating distance between point (address) and every road in city using QGIS

I'm new on QGIS, and I'm trying to measure the distance between an address and every road in the city. I used NNjoin but I got only the shortest distance between the address and the nearest road. ...
0
votes
1answer
50 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
1answer
107 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 ...
8
votes
2answers
43k views

Performing Distance Calculation using Excel?

Is there a way (preferably in Excel) to calculate the distance (based on lat, lon) between two lists of points? My end goal would be, for example, to have a list of Starbucks and a list of McDonald'...
15
votes
5answers
24k views

Difference between Vincenty and great-circle distance calculations?

Python's geopy package features two distance measurements techniques: Great Circle and Vincenty's formulae. >>> from geopy.distance import great_circle >>> from geopy.distance ...
1
vote
0answers
22 views

Measure of isolation (better than distance to the closest)

I have square locations (see image). For my SDM, I need some measure of isolation of a square (related to the other squares or a particular specified set of squares). The most simple one would be to ...
1
vote
1answer
102 views

Creating points along line at ellipsoidal distance

I need to create points along a polyline in QGIS 3 at every 1000m of ellipsoidal distance and have tried several tools, as suggested in other answers: Points along geometry QChainage plugin Convert ...
0
votes
1answer
104 views

Drawing connecting lines between points to nearest within layer using ArcMap

I need to connect points within one layer to the nearest with polyline. Tool to the nearest would be ideal, but there is nothing in the attribute table. I tried to find tool in X Y coordinate, but ...
2
votes
1answer
220 views

How do v.distance 'upload' parameters actually work?

I'm trying to use v.distance (using QGIS 3.4) to calculate the distance in meters between a layer of water shutoff points and the boundary of the nearest building footprint polygon. Even better would ...
0
votes
1answer
105 views

Find all regions (lat, long, radius) that contain a point

A Region has a latitude, longitude (GEOMETRY('POINT')) and a radius. Using postgis, how can I query all Regions where the distance from pointParam and region.point is less than or equal to region....
1
vote
1answer
686 views

Calculating distance between points crossing antimeridian using R? [closed]

How can I calculate the distance between two points (lon/lat) if any of the points exceeds the antimeridian (+-180 longitude)? I am using the distVincentyEllipsoid {geosphere} to calculate the ...
2
votes
1answer
54 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 ...
5
votes
1answer
509 views

commuteDistance in gdistance package in R giving error

I am currently trying to run a function that "calculates the expected random-walk commute time between nodes in a graph. It is defined as the effective distance (resistance distance) between the ...
0
votes
0answers
31 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, ...
1
vote
1answer
57 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/...
2
votes
0answers
43 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 ...
1
vote
1answer
92 views

Calculate Geometry function returns underestimated distances

I'm making a map of the Colorado Trail and obtained a set of waypoints taken down the entire trail. I projected the set of waypoints from WGS84 (unprojected) to NAD 83 UTM13N after adding to the data ...
0
votes
0answers
28 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
23 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
126 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 ...
5
votes
2answers
2k views

Performing Point Distance analysis using Basic level license of ArcGIS for Desktop?

I am using ArcView Version 10.1 and I need to perform a point distance analysis like: What is the distance from A to B-Z, B to A-Z, C to A-Z, etc? What are the steps that I take to do this?
8
votes
2answers
4k views

Spatial distance analysis in QGIS

I'm quite new to QGIS and trying to figure out how to analyze the following problem. I have three layers: settlements point layer with 253 entries waste treatment facilities point layer with 24 ...
9
votes
4answers
28k views

Calculating minimum distance between points and polygons in QGIS?

I have two vector layers: one point and one polygon and I want to calculate the minimum distance of each point from the polygons (ie the distance from the closest point of the closest polygon). Is ...
1
vote
1answer
293 views

Python: Open a (line) Shapefile and calculate distance to point given as a longitude-latitude tuple

I have a pandas dataframe in python with longitude and latitude values of certain locations (see sample below): Index Long Lat 0 -98.58 ...