# Questions tagged [distance]

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

1,197 questions
Filter by
Sorted by
Tagged with
32 views

### Creating Near Table between points in one layer that share an attribute with points in another layer?

I am trying to calculate the distance between some geographic features (point layer) and the capital of the country that they fall in. I have a shapefile of "features" and a shapefile of "world ...
30 views

### Calculate distance from polygon to nearest existing line in geometric network, along network routes

In ArcMap 10.6, I have a parcels layer and a sewage lines geometric network for a small town. Many of the parcels are still undeveloped. In an effort to accurately assess them for tax purposes, their ...
22 views

### How do I find the closest distance to a line and then find the length of the remainder of the line to a point?

I want to measure the distance of a shape to a line and then follow that line all the way to a point and calculate the distance traveled. Here is my current map. I want to store that distance value ...
754 views

### Finding points within elliptical area using PostGIS?

Using PostGIS 2.0.0 I need to filter the results of a function, which returns many POINTs, to find the ones that lie within an elliptical area (like a great circle line with a buffer around it) ...
383 views

### Finding distance between paired points in separate shapefiles (paired by attribute data)? [closed]

I have a point layer with site_code attribute data. I have another layer of points in different locations but with the same site_code data. How can I find the linear distance between points that are ...
497 views

### Calculating distance between point and MultiPolygon Geoseries object in Python [closed]

I want to calculate the distance of a point from the Multiploygon geoseries object created using cascaded_union function of GeoPandas. Following is my code: import numpy as np import pandas as pd ...
549 views

### Is there any difference between gdal_proximity.py and ArcGIS Euclidean Distance?

The gdal_proximity.py description says: The gdal_proximity.py script generates a raster proximity map indicating the distance from the center of each pixel to the center of the nearest pixel ...
203 views

### Finding nearest distance between point and polygon layers in QGIS

I am using QGIS to undertake an analysis for a project. This involves a polygon shapefile, which represents a boundary of a site, and a series of points which represents the location of parks. I ...
83 views

### Calculating the shortest distance coordinate to vector layer

I want to calculate the nearest distance from each coordinate in a vector layer containing more than 17 000 coordinates to another vector layer. I tried the GRASS v.distance tool but it gives the ...
396 views

### Difference between haversine formula & geodesic distance for calculating distance

Background I have Vehicle driving data which includes Lat/Long points of a particular route. I drive in that route for 2 times. The driving data in that route is around 20 minutes. (Approximately ...
3k views

### Getting result in metric from QGIS Distance Matrix tool in QGIS? [closed]

I'm trying to calculate the distance between points in layer with distance matrix tool. And keep getting strange results no matter what. Like this MASTER ------------SLAVE ---------------- DISTANCE ...
748 views

### Selecting points with MINIMUM distance of 10 km from vector line in country?

I have a huge amount of points and some lines in my QGIS map. I want to do a selection just of those points that are minimum 10 km far from the line. Any idea? I have no problem doing the opposite ...
26 views

### Finding a suitable sigma value for distance Gaussian decay function

I am trying to apply a Gaussian decay value to a set of distances measured in meters using the field calculator in QGIS. My distances range from circa 50 to 12,000 meters. I am using the following ...
14k views

### What tools in Python are available for doing great circle distance + line creation?

I need to use Python to create a great circle distance -- both a number, and preferably some kind of 'curve' that I can use to draw in a client-side map. I don't care about the format of the curve -- ...
51 views

### CRS of QGIS CAD tool and measure line tool

Does any one know what CRS the QGIS digitizing toolbox (CAD tool) and the measure line tool use? Because I couldn't find any way to manually set the CRS for the tools in QGIS 3, my assumption is ...
53 views

### Traceback Distance Matrix

I am using the QGIS Distance Matrix to calculate the distance of points along a line to that specific line. I used the tool before with 2 points layers and it worked well. This time I created a ...
236 views

### Adding columns with easting and northing of points using ArcMap?

I've got LSOA dataset with centroids weighted by population. What I am trying to do is get coordinates of those points (centroids) so that I can then calculate distances to centroids outside of ArcMap ...
65 views

### Route creation with specific length and elevation change [closed]

I'm currently working on a project for my computer science study. The goal is to make a service that allows the user to enter a distance and elevation change which will then result in a random route (...
87 views

### Measuring Distances between Points with the same timestamps using QGIS

I'm facing the problem that I want to calculate flight distances of Red Deer. I have a Layer with point Locations of animals; One attribute is the timestamp. I have another layer with point locations ...
121 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. Is there any idea on how to implement this? My data look like this
261 views

### Calculating distance between two Lat Long points with different altitudes? [closed]

If we assume that the altitude is held constant, the great circle distance is correct. However if the radius of the circle is not constant how can the distance be calculated? In my case the altitude ...
37 views

### How to compare centrality of points in different shaped and sized polygons

Suppose I have several polygons of varying shape and size, each containing a single point. I want to compare the centrality of each point, and determine which point is more central to its polygon. I'm ...
207 views

### Calculating daily travel distance from large dataset using QGIS?

My dataset is around 200 days worth of data on the daily distance travelled by a troop of monkeys. I've never properly used QGIS on my own so don't really know where to start. All of the days are ...
41 views

### Interpreting Cost Distance Tool (ArcMap) results?

I have a raster data where pixel value of each cell represents the potential minimum travel time across the cell in old world. I need to find the minimum travel time of some points from Addis Ababa (...
224 views

### dist2Line - Error in dist2Line(…) could not find the function “dist2Line”

I have a csv file with points (about 20 millions georeferenced points) and a line shapefile. I want to find for each point the closest distance to the line. The line is not a straight line it's ...
108 views

### Calculating mean recapture distance between points

I have a series of coordinates associated with ID and date (these points represent individual recaptures of individuals at different locations). I want to joins lines between the sequential recaptures ...
2k views

### Calculating “travelled distance” of a GPS track without including “stops”

I have a set of GPS tracks from a cycling event and I want to correlate their distance along the route. Problem is: when a rider stops, generally by entering a covered place, GPS keeps logging (low ...
623 views

### Measuring distance to coast in specific direction using PyQGIS? [closed]

I have a point layer and want to know the distance to the coastline (line or polygon layer) from each point in a series of directions (0, 10, 20, 30 degrees, etc). I have found this python script (...
2k views

### Does the Bing Maps API have a distance to coast service?

Does the Bing API contain a distance to coast service from an address? All we need to do is calculate the distance to a major coastline (Atlantic or Gulf of Mexico).
42 views

### Selecting lines by distance in a layer from a polyline in another layer using QGIS?

I have 2 layers containing polylines. I'd like to establish the closest distance at any point along the line of one layer to the the lines on a different layer. My assumption is that the Nearest ...
46 views

### Obtaining closest distance using ArcGIS Desktop?

I am using ArcGIS Desktop 10.5. I have a shapefile containing say 10 locations from a country with latitude and longitude. How can I look at each location (point) and getting the distance from ...
25 views

### Measuring distance traveled, in 3D using ArcGIS Pro?

I'm working in ArcGIS pro, I have tracking data from a bird's flight path and want to know how far the bird flew. I started with Google Earth KML Layer and imported to ArcGIS Pro. This layer has data ...
328 views

### Removing Outliers from point layer

I am a not so newbie user of QGIS but have no knowledge of Python. I have a large dataset of points. Each point has attributes, one of which is a group it belongs to. It is expected that the points ...
227 views

### Calculating shortest distance between two points on water, avoiding land?

Can someone explain to me (in beginner's terms) how to calculate the distance between two points that are on water, avoiding land? For example, these points are inshore in a bay, so I don't want the ...
30 views

### Migratory distance from Africa?

I have a raster data where pixel value of each cell represents the potential minimum travel time across the cell in old world. Now, I need to find the minimum travel time of some points from Addis ...
24 views

### Measuring distance between points yet within polygons using ArcGIS Desktop?

I have two data sets. One has points of populations and the other has one merged polygon of all suitable habitat types. I want to find the distance between all the point to one another, but without ...
207 views

### Geodesic distance from raster in python?

I am carrying out some analysis in python (using Anaconda), I have a binary raster and want to perform a geodesic distance calculation from all areas with a value of 1- I can do this within QGIS using ...
72 views

### Calculating closest distance from location to given route?

I want to calculate the closest distance from a location (lat/lon) to a given route. The route consists of approximately 20.000 location points. I could calculate the distance to every location point ...
2k views

### Difference between planar and Euclidean distance?

I wanted a straight-line distance. When I was calculating near distance on Arc GIS, I was only given the option between planar and geodesic distance. But people in my field keep referring to my ...
67 views

### What projection should I use to find true distance between two points?

I am a beginner of ArcGIS and I encounter a problem of true distance. I used "create fishnet" to have a grid map within 0-40N, 20E-90E. Suppose each two points are connected with a railway/road (...
58 views

### Calculate distance between buffer and geographic points for grouped subsets (and get tally)

The data I used can be found here. After importing my data, I select a subset of points (Nest2017 in column type) to create 30 m buffers around: library(dplyr) nests<-df %>% filter(type %...
78 views

### Distance from edge of each polygon to nearest point, such that points within each polygon aren't included

Using ArcGIS 10.5, I have a cluster of polygons that represent districts (together this cluster of polygons creates a nation). I also have thousands of points that represent offices. I would like to ...
8k views

### Generate random location within specified distance of a given point

In a simulation (not using any GIS), I need to generate a random location that is within a specified distance of a given location. I found a very helpful post here on this exact topic: How to ...
574 views

### Getting meters instead of degrees from GRASS v.distance?

I'm trying to measure the distance between points to a coastline. I have a shapefile of the "High Seas" which I got from NOAA's website here. http://www.nws.noaa.gov/geodata/catalog/wsom/html/...
2k views

### JTS GeometricShapeFactory generate an ellipse properly

This is what use to get a circle: GeometricShapeFactory shape = new GeometricShapeFactory(gf); shape.setCentre(new Coordinate(40.748754,-73.985460));//Empire Sate Building shape....
172 views

### Determining distances of points from closest line using MapInfo?

I have a set of points and a set of lines. I'd like to know distances of the points from the closest line... answering the question "how many points are within 500m to 1000m of one of the lines, how ...
3k views

### Why difference between Google Earth and QGIS distance measurement?

I am quite new to QGIS. I wanted to test if Google Earth and QGIS distance measurement tools are actually getting the same results. Turns out, they don't -at least not in my case. I'm pretty sure ...
582 views

### Distance based random point selection in r?

To avoid clustering in subsequent analysis I try to randomly select points of a SpatialPointsDataFram with a given distance between the points. The remaining part should be devided for test analysis. ...