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
0
votes
1answer
76 views

Batch travel distance calculation in QGIS

How to calculate the walking distance between postcodes and destination in QGIS? I have the following shapefiles: 1 layer containing the destination; 1 layer containing 1,000 postcodes. I've ...
0
votes
0answers
68 views

Calculate driving distance between coordinates using ArcGIS Pro?

We need to calculate the driving distance between students and the nearest PreK center. The issue with using the Cost Matrix is the cost. We have 250,000 students and around 2,500 centers. I ...
4
votes
1answer
938 views

Hex grid on EPSG:4326 globe (for use in Leaflet)

I'm looking for a way to evenly distribute a hexagon grid (x,y,z) on the EPSG:4326 globe. Knowing this is not mathematically possible I'm accepting the following limitations: Poles don't need ...
1
vote
1answer
223 views

Calculating distance between point and selected pixel in R?

I would like to obtain the distance between a point and a selection of pixel on raster image. Here the process: I read my JPEG image and extract colors I want: img.raster<-stack(***) names(img....
1
vote
0answers
39 views

How to measure the distance between two points follow the track?

I have three points shapefile and 1 line shapefile. I tried to use v.distance but it only got directly distance. How can I measure them by track?
0
votes
1answer
42 views

Calculating distance between each pixel of rasterstack image?

I am new on R and I have an image of class "rasterstack" of only 3 colors: Red, Green and blue as illustrated: I use this function: image = stack(img.red, img.green, img.blue) I would like to find ...
1
vote
1answer
34 views

Farthest from Edge in Raster-QGIS

I have a raster image (green colour in image). I would like to find the point in this raster that is the farthest from the edge i.e. that point from which the largest number of uninterrupted cells in ...
2
votes
1answer
288 views

Calculating distances between points for every available point in the dataset

The data of interest: a point vector and a line vector. Both shapefiles, with the line vector acting as the road/motorway. All of the points are along the road so close by. I want to calculate the ...
0
votes
0answers
33 views

Calculating a coordinate based on approximate distances from known locations [duplicate]

My goal is to calculate a position based on approximate distances from known nearby locations. The distance observations include inherent error. The number of known locations is often 12 or more. ...
22
votes
4answers
25k views

PostGIS nearest points with ST_Distance, kNN

I need to obtain on each element on one table the closest point of another table. The first table contains traffic signs and the second one the Entrance Halls of the town. The thing is that I can't ...
4
votes
1answer
131 views

Match linestrings using Fréchet distance

I have two datasets of roads (both in WGS84). One has nicely digitized geometries, but lack some of the attributes and the other has heeded attributes, but digitized terribly. I want to transfer ...
0
votes
0answers
20 views

Using output of ArcGIS Euclidean distance tool?

How do I use the output of the ArcGIS Desktop Euclidean distance tool? It gives raster output and I want to generate a table enlisting the distance between various centroids from one centroid.
1
vote
0answers
39 views

QGIS3 difficulty drawing 150km distance buffer and showing this on the map

I wanted to construct a 150km distance buffer around a city in North America. I changed the project co-ordinate system of the point to WGS84 Mercator North America from WGS 84 Lat/long to enable the ...
2
votes
1answer
638 views

Calculating distance of polygons from coastline using ArcGIS Desktop?

I have a series of polygons representing parcels of land. I would like to calculate the distance of each polygon from the coastline. I also have a polygon of the entire region of interest, i.e. an ...
63
votes
2answers
14k views

How accurate is approximating the Earth as a sphere?

What level of error do I encounter when approximating the earth as a sphere? Specifically, when dealing with the location of points and, for example, the great circle distances between them. Are ...
1
vote
1answer
217 views

Difference between ol.proj.getPointResolution() and ol.sphere.getDistance()

Is there anyone who can explain the difference between ol.proj.getPointResolution() and ol.sphere.getDistance()? I have tested it, and ol.sphere.getDistance() is a little bit shorter than ol.proj....
1
vote
1answer
76 views

Calculate distance from GPX in OpenLayers

I have a little OL script to display GPX Routes in a OSM map. That works so far, even with a little gimmick. What I miss is a continuous distance. So from trkpt 0 to trkpt 1 + (trkpt 1 to trkpt 2) + (...
0
votes
0answers
74 views

How is the LRS ArcGIS Measure Along a Line implemented?

I'm trying to replicate a nasty corner case in a LRS implementation that doesn't agree with ArcMAP measure tool. I've tried measuring distance in its native shp coordinate system NAD83 (27916) to no ...
2
votes
1answer
33 views

Asymmetric cost distance [closed]

I am interested in calculating the minimum distance of a canal necessary to irrigate any given point in a map. The problem is that the cost map would have to be asymmetric since water can flow down a ...
1
vote
1answer
41 views

How can I show distance indicators along a line feature in QGIS?

I am preparing a map of a 120 km long walking trail in QGIS 2.18 for publication (printing). I have a shapefile (line feature) showing the walking trail. I want to be able to show distance indicators ...
1
vote
0answers
37 views

Defining coordinate system for finding distance in meters [duplicate]

What should I do to find the distance between two very far points? p1 = "POINT(6.2 61.1)" p2 = "POINT(6.1 61.0)" select ST_Distance( ST_Transform(ST_GeomFromWKT('$p1'), 'EPSG:4326', '$epsg'), ...
7
votes
4answers
2k views

Create mid point from line layer

In QGIS I am trying to create a new point layer based on the mid point of a line layer (and keep all the feature attributes in the table). For example, one line feature becomes one point, located on ...
0
votes
0answers
24 views

Distance from a point to a poly line and attributes from the poly line GIS

I'm trying to figure out what tool would be best to get the distance from multi-points from multi polylines and see which attributes are closest to what point. I'm doing a project where I have ...
0
votes
0answers
31 views

Making lists of nearby points using QGIS?

I am a new user of QGIS. I have uploaded a csv file to my QGIS map with 500 points and I want to make sets of 10 points (or different amount of points) based on distance. I want to gather nearby ...
2
votes
1answer
3k views

Efficient route planning between a set of points and with a set of people

I have the following use case: A company needs to make winter service at a set of addresses in a city. To be as fast as possible covering all addresses an efficient route calculation is required. ...
0
votes
0answers
14 views

ArcGIS: Point nearest to border with information on bordering region

I am trying to create a table from a yield map in Europe, that tells me how much yield for each 5'x5' raster field is achieved. This I have managed. However, I now need information for each raster ...
4
votes
1answer
9k views

Check if point is within radius of another point with Shapely

I've successfully used Shapely with python to check if a point is within one of a set of polygons in a .shp file but now would like to check if a point is within a circle of radius x miles from ...
7
votes
2answers
15k views

How to find nearest point for each point in current layer using ArcGIS Desktop?

I have a point layer and want to know the distance of nearest point of current layer for each point in the layer. I found some tools in ArcToolbox about it , but they need two layers for input and ...
1
vote
0answers
31 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 ...
0
votes
1answer
29 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 ...
0
votes
0answers
21 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 ...
5
votes
2answers
734 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) ...
0
votes
2answers
361 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 ...
1
vote
0answers
406 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 ...
2
votes
1answer
519 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 ...
1
vote
0answers
130 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 ...
1
vote
3answers
74 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 ...
0
votes
0answers
263 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 ...
5
votes
1answer
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 ...
2
votes
1answer
710 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 ...
0
votes
0answers
23 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 ...
20
votes
6answers
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 -- ...
1
vote
1answer
45 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 ...
2
votes
0answers
48 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 ...
0
votes
1answer
130 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 ...
2
votes
0answers
56 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 (...
1
vote
1answer
65 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 ...
2
votes
1answer
85 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
3
votes
0answers
207 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 ...
1
vote
0answers
32 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 ...