# Questions tagged [distance]

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

1,183 questions
Filter by
Sorted by
Tagged with
604 views

### Mean distance among relocations of individuals in R

In R, I need to calculate the grand mean of distance between all the relocations of the same individual. I have a dataset similar to this: individual<- c(a,b,a,b,a,c,a,b) x<-c(167685,167945,...
172 views

### R or ArcGis: average per polygon of the shortest distance to a river from each point in that polygon

All the shapefiles necessary can be found here. These are shapefiles of lakes, and rivers. Downloading one shapefile as an example should be enough to get me on the right track. The nuts file can be ...
158 views

### Stream network distance between specific paired points [duplicate]

I have a stream network dataset and am attempting to do a distance analysis between paired points located in two different layers. Ex. I have 500 points in layer A with given coordinates, and then 500 ...
314 views

### What is the relationship between the bearing the 'road' distance between two points?

Given the two points, we know how to calculate the shortest distance between them, and the bearing from one point, in order to reach the other point. Also, we know the loxodromic distance between ...
1k views

### How to select within a distance using QGIS [duplicate]

With QGIS 2.12.3, I have two projected EPSG:2927 point shapefiles, A and B. I would like to create a selection of A points that are within 100 meters of any B point. This is easy in Arc, using the ...
92 views

### Points proximity to polygons in ArcGIS for Desktop?

I have a point feature class with 1725 records (spread out over NYC) and a polygon feature class with 13 records (also spread out over NYC). What tools or processes can I use to figure out what ...
103 views

### Generate Near Table (path distance)

I have a number of points and want to get path distance to all "wetland" polygons within 1km. This is very easy with eucDistance in Generate near table, is there a was to alter this to give path ...
57 views

### Given distance (in meters) what is the angle in geographic reference systems? [duplicate]

In QGIS and other systems sometimes I have a layer in geographic reference system (typically WGS84, EPSG:4326) and I'd like to calculate a buffer of say 5000m around a point. So, given a point ...
51 views

### Get latlong at a distance on a path

I have 2 decimal point in lat/lon. I want to divide the line drawn by lat/lon into parts each at a specified distance, lets say 'x' -- all except the last segment will be of length x -- and I need the ...
1k views

### Distance between a Point and Linestring: PostGIS/GEOS vs. Boost

I am currently using the GEOS library through OGR and data from a PostGIS database to work with geospatial data. I now found myself in the need to use some of the algorithms Boost.Geometry and Boost....
248 views

### Finding census block with highest pop. value within census tract using QGIS?

In QGIS, I'm trying to plot a centroid of only the census block with the highest population within each census tract. So there should only be one point per tract- that of the block with the greatest ...
85 views

### Devising measure of vertical distance from spring line?

I am building a model (using Logistic Regression) to explore the relation between a binary categorical dependent variable (parcels agricultural production quality) and several predictors, among which ...
1k views

### Calculating distance between coordinates [duplicate]

I would like to calculate the distances between a list of coordinates (classic GPS coord.). From coordinate A to B from B to C from C to D and so on, and so forth. Is there any program, or website, ...
114 views

### ArcGIS 10.1 Cost Distance Calculations

I have a study area that is a polygon feature class, and am running the Cost Distance Tool on it in ModelBuilder. However, everytime I run the tool, it only calculates a cost distance and cost ...
618 views

### Calculating distances between boundaries of polygons with Python

I have two sets of shape-files which have to be worked on within a Python Script. Those two Shape Files might differ from each other (same thematic content, but 2 different epochs). If there occurred ...
361 views

### calculate least cost pathways for a region and create distance rasters to rivers [duplicate]

How do you calculate all the least cost pathways that exists for a region? I would like the output map to display all routes (and was wondering whether this can be done in one set of operations). I ...
2k views

### Using Find your nearest type function with large dataset? [closed]

In a previous employment, I needed to display a "Distance to stockist" on our website. It would get your current co-ordinates (from a postcode or HTML5 geolocate) and then display a list of nearby ...
329 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 ...
263 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(...
52 views

### Does ArcGIS linear distance tool calculate exact distance on ground?

We can calculate linear distance in ArcGIS Desktop. Is the distance to be calculated the exact ground distance?
363 views

I have a road layer and point features of some bus stops from the same area. I want to find the road distance between the bus stops. Please help me find it. I have QGIS, ArcGIS, and FME.
52 views

### Drawing distance lines between two points [duplicate]

I want to be able to generate a distance line between two points on the map, which also has the distance as a label (similar to the second image seen on Google maps or in the first image from the red ...
68 views

### How to check if one grid ref is within 1 km of another grid ref

How to check if one grid ref is within 1 km of another grid ref Data is in northings/eastings. Where there is more than one grid ref within 1km, I need the nearest. Granted once we have the ...
132 views

So i have coordinate (A) with x longitude and y latitude. What i want is create new coordinate (B) where distance (meter) beetween both of coordinate and direction (0 - 360) based on user input. What ...
65 views

### Distance betwen points based on hydrological net using ArcGIS for Desktop?

I need calculate the distance between all points but not linear distance. I need to calculate the distance based on the hydrological net. I have one point layer and one shape that belong to the ...
325 views

### Buffering algorithm [closed]

Does anyone know the algorithm of buffering? I had difficulty in drawing buffers. So I tried many values to acquire 1km buffer. I found value 0.008966 produces 1km buffer. Then I calculated inverse ...
105 views

### Measuring a Buffer

If I create buffers around coordinate points using a linear unit of measurement, is the distance I input the radius around the point or diameter? For example, if I input 800 meters, will it form a ...
316 views

### Distance between two cities at equal latitudes [closed]

NY is at 41 lat and -74 longitude. Barcelona is at 41 lat and 2 lon. If I were to travel along 41 degrees latitude (NOT the shortest path). How many kilometers would I travel? Assume R = 6378KM.
234 views

### Finding GPS coordinates of point located between 2 known meridians?

I need to solve this task. How to find GPS coordinates of a point which is 1029.96033 km from prime meridian and 747.67936 km from 25th meridian, using WGS84 standard. It is a particular task but I ...
723 views

### Cause of KeyError in Python Toolbox of ArcPy? [closed]

This question arises from Performing Point Distance analysis using Basic level license of ArcGIS for Desktop?. I basically copied and pasted PolyGeo's answer and formatted it into a python toolbox ...
952 views

### Calculation of Euclidean distance [closed]

What is the best way to calculate the Euclidean distance between the elements of two point vector layers, without rasterising the layers?