The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
6
votes
2answers
191 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 ...
1
vote
2answers
31 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 (...
0
votes
1answer
198 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 ...
1
vote
1answer
104 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 ...
5
votes
1answer
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 ...
1
vote
2answers
589 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 (...
4
votes
4answers
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).
2
votes
1answer
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 ...
0
votes
0answers
33 views

Matching MySQL Result to Great Circle Mapper

I can't figure out how to match the result of the Great Circle Mapper. SELECT 3959 * ACOS( COS(RADIANS(41.97444444)) * COS(RADIANS(28.42944444)) * COS(RADIANS(-87.90666667) - ...
0
votes
2answers
45 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 ...
20
votes
4answers
102k views

Find points within a distance using MySQL

I have a mySQL table with user name, latitude and longitude of the user. I would like to get a list of user who are inside the circle or square of a given latitude and longitude with given distance. ...
1
vote
0answers
22 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 ...
0
votes
1answer
220 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 ...
0
votes
1answer
168 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 ...
1
vote
1answer
29 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 ...
0
votes
0answers
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 ...
1
vote
1answer
150 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 ...
0
votes
0answers
14 views

Calculate distance between multiple arrays and landsat bands in IDL

I have a set of landsat 7 layers, that look like this: files = [ $ "D:\ArcGIS\Programmieren in IDL\Landsat Daten\landsat_b1.tif" $ ,"D:\ArcGIS\Programmieren in IDL\Landsat Daten\landsat_b2.tif" $ ...
0
votes
0answers
65 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 ...
7
votes
1answer
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 ...
0
votes
0answers
66 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 (...
2
votes
1answer
48 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 %...
2
votes
1answer
66 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 ...
1
vote
2answers
7k 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 ...
2
votes
3answers
560 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/...
2
votes
3answers
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....
1
vote
0answers
144 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 ...
12
votes
2answers
14k views

Calculating shortest distance from point to line using QGIS?

What is the best method to calculate the distance from the nearest road for a series of address points in QGIS, having a very big dataset? (QGIS 2.0.1, Win XP) I read the answers to previous similar ...
5
votes
3answers
2k 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 ...
0
votes
1answer
529 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. ...
1
vote
0answers
56 views

Calculating distances from one reference point to multiple points in one shp file

I am a total novice to GIS; I read some of the answers to similar posts, still have difficulties to do it. I am not that familiar with GIS or QGIS and am looking for a step by step approach. Here is ...
3
votes
1answer
128 views

Using Field Value as Search Distance Parameter in Select by Location in ArcPy? [closed]

I've been trying to use the select layer by location tool in a loop to select features that are within a specific distance to one feature class for each feature in a different feature class (each ...
0
votes
1answer
164 views

Walking distance with pgrouting for several locations

I'm intending to calculate the walking distance (not the linear distance, but the "real travelled distance") to several locations (e.g. social infrastructure). Thus I will have to create a routable ...
1
vote
1answer
38 views

Automating point feature class placement inside polygons using specific parameters?

I am trying to generate a point feature class of possible plot centers for a research project. The plot centers will be inside of defined forest stand polygons which are aggregated in various ways ...
0
votes
1answer
236 views

Error 999999 calculating Euclidean Distance?

I am trying to calculate Euclidean Distance in ArcMap and I keep getting: ERROR 999999: Error executing function. Failed to execute (EucDistance). I gave a maximum distance of 5000m, output ...
-1
votes
1answer
189 views

Calculate the next coordinate from given starting point and distance

On the answer to Calculating Latitude/Longitude X miles from point? what is the tc value? lat = asin( sin(lat1)*cos(d)+cos(lat1)*sin(d)*cos(tc) ) dlon = atan2( sin(tc)*sin(d)*cos(lat1),cos(d)-sin(...
1
vote
2answers
92 views

Calculating maximum distance between roads (Spatial Line Shapefile) in QGIS?

I’m writing my masters thesis and came across a problem I haven’t been able to find an answer to. I’m working with QGIS and a Spatial Line Shapefile that represents all streets in Tibet, taken from ...
3
votes
1answer
10k views

How to convert distance into latitude + longitude [duplicate]

I have start point (latitude) I know direction, lets say strictly north, and I want to calculate latitude which is 100 meters above the start point. The same for longitude. I believe there should be ...
0
votes
0answers
21 views

How to find specific bearing, distance and elevation of a satellite [duplicate]

I am trying to find a specific bearing, distance and elevation to a satellite. I know there are websites but I need a formula to do this. I need to be able to find these things from a set of co-ords ...
0
votes
2answers
69 views

Creating Custom Shapefile that can be snapped in location with no dragging using QGIS?

I am trying to create a custom shapefile consisted of 16 waypoints orientated around an origin point. the 16 waypoints are to be 2m apart from the central waypoint (like an axis, with 0 being the ...
2
votes
0answers
75 views

Creating points with linear referencing

I have traffic data that shows tracks that have start and end times (in YYYYMMDD-HHMMSS format) and the speed (m/s) the vehicle was moving. From that I've calculated total traveled distance (m) and ...
2
votes
1answer
119 views

Distance between reference point to many Points along a line

I have a Line layer and a Point layer in Qgis. The lines snapped to the points. I need the distance between the reference Point (number 12 in the image) to the other points along the line. I have ...
5
votes
2answers
352 views

Finding distance between point and polygon edge in eastward direction using PyQGIS?

I need to find distance in eastward direction from each point to the closest polygon edge: I can find shortest distance in any direction with: pointlayer = QgsProject.instance().mapLayersByName('...
2
votes
4answers
4k views

Using GDAL/C++ to calculate distance in meters

I'm using GDAL in C++, with WGS84. I want to calculate distance between two points in meters. The code snippet below tries to find the distance between 25N/75E and 25N/76E. The code, as is, returns 1....
1
vote
1answer
358 views

Finding shortest path without barriers using the sf package in R

Say I have three ships near PNG in the pacific. I want to know the shortest path between all three, while not going aground. This can be done with the ArcGIS function "cost distance" and "shortest ...
2
votes
2answers
4k views

Calculating distance between two points with QGIS 2.14.0

I have two shapefiles with the following information: List A: ID 1 | xA | yA | ID 2 List B: ID 1 | xB | yB | ID 2 {x;y} = {lat;lon} I want to calculate the distance between two points, e.g. ID 1: ...
2
votes
1answer
83 views

Distance betweeen classified Points

I got two sets of points. The first set has a unique ID The second set references to this ID (one-to-many). So I merged the two sets. Now every point in the joined table has the X and Y coordinates ...
1
vote
2answers
54 views

Finding distance between positions of same point on two different layers using QGIS?

I am trying to calculate the difference between the positions of the same point on two different layers. One layer is a shapefile, other layer is a text file, and each point has a unique identifier, ...
5
votes
1answer
353 views

What kind of margin of error can I expect in figuring distance?

I have reviewed Why is law of cosines more preferable than haversine when calculating distance between two latitude-longitude points? and that does not equate to the specific question that I wish to ...
1
vote
0answers
76 views

QGIS measure tool does not continue to measure within point symbol

We are using QGIS more and more, however, today a colleague noticed something strange when using the measure line tool. We have point features and different symbols of different sizes and colors are ...