Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [distance]

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

2
votes
0answers
35 views

Is there a difference in using Haversine distance vs re-projecting coordinate frame?

I have a GeoTIFF raster file in the EPSG 4326 (WGS 84) geographic coordinate system. I want to crop a 20 km x 20 km square around a particular (lat, long) coordinate, and save that as a new raster. ...
5
votes
4answers
124 views

Finding distance between buildings and nearest road using QGIS?

I am very new to working with GIS data. I am currently using the QGIS tool to work with the data. I have two datasets: Buildings - polygon shapefile with information about different buildings in a ...
1
vote
0answers
27 views

How to calculate walking distance between multiple addresses? - QGIS

I am working with historical data and I would like to calculate the walking distance between multiple addresses. For instance, in my excel dataset I have someone who lived on 1 Laurierstraat in ...
1
vote
0answers
31 views

Wrong units in QGIS distance matrix

I am trying to teach myself QGIS. I have been following the following notes: http://www.qgistutorials.com/en/docs/nearest_neighbor_analysis.html While trying to reproduce the results from the link ...
2
votes
1answer
31 views

Distances between points British National Grid (BNG)

I have a point dataset expressed in British National Grid (about 10,000 points distributed all over the UK). I want to do some cluster analysis and I am aware that distance distortion might have an ...
1
vote
2answers
47 views

Distance between two points on QGIS 3.4.7 and Python 3.7

I am under the 2154 CRS (RGF 93). I want to calculate the distance in meters between two point knowing their coordinates. Let's consider two points : A(474828.85, 6756169.31) and B(874895.75, 6756159....
0
votes
1answer
28 views

Computing x and y distances between two raster maps using GRASS GIS?

I am working with a maximum water elevation raster in which, similarly to using r.grow.distance, I am trying to extract the distance from the each null cell to the nearest water elevation cell. ...
0
votes
1answer
24 views

Calculating distance between points following flow direction on ArcMap?

I delineated flow directions in a watershed on ArcMap (10m DEM). Then I want to calculate distance between two points 'following' the flow direction in each raster cell, not a straight line distance. ...
4
votes
1answer
55 views

QGIS 3.4 distance matrix returns the wrong point

I'm using Distance Matrix to find the closest point between one set (4 points) and another set (4 points), detailed below. All results look okay except one, where the returned point is not the closest....
0
votes
0answers
9 views

Point-distance analysis using time as an attribute

Is it possible to calculate "points within a certain buffer zone" for each point in a vector layer and do this by controlling time as an attribute field? I would like to analyse morbidity densities of ...
0
votes
0answers
42 views

How to compute distance between two spherical Mercator points

I am computing the Mercator points according to the top answer at Convert latitude/longitude point to a pixels (x,y) on Mercator projection. Now that I have two Mercator points on a spherical ...
2
votes
1answer
49 views

Get weird result when calculating distance between two points, using latitude longitude?

I use algorithm (see: calculating distance between two points) to calculate distance between two points. but it get wrong result, see Java code: /** * group1:set latitude to 89 */ // set ...
1
vote
1answer
36 views

Table to Distance Between in PostGIS

I am a new user in PostGIS. I need to create a table with the ID_DIR of table A, ID_SQ of table B and have a new column called "Distance" that would be the distance between the ID_DIR and the ID_SQ in ...
0
votes
1answer
39 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
16 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 ...
0
votes
1answer
32 views

Obtaining pixels between 2 raster layers (border)?

I have a rasterStack obtained from a stack of 3 raster layers by: image = stack(A, B, C) I would like to calculate the distance between the pixels of layer A and pixels of layer C. After ...
1
vote
0answers
32 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?
1
vote
1answer
48 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....
0
votes
1answer
29 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
27 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 ...
0
votes
0answers
32 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. ...
0
votes
1answer
38 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 ...
0
votes
0answers
14 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
1answer
80 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
21 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 ...
4
votes
1answer
92 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 ...
1
vote
1answer
93 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
54 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
53 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
32 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
36 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'), ...
0
votes
0answers
21 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 ...
0
votes
0answers
13 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 ...
1
vote
0answers
26 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
27 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
20 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 ...
1
vote
0answers
311 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 ...
1
vote
1answer
31 views

Measuring distance between features in linear units from vast layer in geographic coordinates in gdal

I have a point layer for a large area. The layer is in a geographic coordinate system. I need to make some distance-aware work with features from this layer. Actually, I need to build a buffer-layer ...
1
vote
0answers
77 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 ...
0
votes
0answers
118 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 ...
0
votes
0answers
15 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 ...
1
vote
3answers
65 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 ...
1
vote
1answer
35 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
40 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
58 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
46 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 (...
2
votes
1answer
68 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
1
vote
0answers
26 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 ...