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
1 vote
0 answers
16 views

Distance matrix not giving nearest point in QGIS [closed]

I'm having a bit of trouble with my procedures in QGIS Desktop 3.22.6. I bring in a shapefile for the entire US block groups into QGIS. I then bring in points of stores across the U.S. I then use the ...
user avatar
1 vote
1 answer
16 views

Distance between polygons and points in geopandas

I have a main polygon of ploygons that have areas mapped out on a map and a bunch of points such as sample below NAME lt ln 1 12.9336806 77.6122669 2 12.974768 77.767745 ...
user avatar
  • 93
0 votes
0 answers
21 views

Change the resolution of the friction surface raster and compute cumulative travel time in R

I have downloaded the 2015 friction surface from the Malaria Atlas project website (see bottom of the page). On their websites, authors specify that the measure units of such a raster are minutes to ...
user avatar
  • 103
0 votes
0 answers
22 views

Values of Euclidean distance not in meters when using WGS 1984 coordinates system ArcGIS Pro

I'm new to ArcGIS Pro. I want to apply Euclidean distance on main roads and then reclassify the values based on the distance from certain object but when I perform the tool I get the values, not in ...
user avatar
  • 1
0 votes
0 answers
30 views

Calculating missing points on line vector in QGIS

I have a linear vector of a river subdivided in 55 traits, all connected to each other. In 5points along the river i toke some measurements. What I want to do is to calculate the values in the 50 ...
user avatar
0 votes
0 answers
12 views

Determining mile marker locations on railroad route LineStrings

Page 7 of the Texas SP Austin and Northwestern Railroad Historic District--Fairland to Llano NRHP application says the following: Contributing and Noncontributing properties are noted by two sets of ...
user avatar
  • 205
0 votes
0 answers
11 views

Leaflet: Illustrate distance along path, like "measure distance" in Google Maps

In a map in a web application, I would like to illustrate distance along a path, like how it is done with the measure distance tool in Google Maps (see attached image). Is there a way to do this in ...
user avatar
0 votes
0 answers
21 views

Illustrate distance along path, like "measure distance" in Google Maps using Mapbox GL JS

In a map in a web application, I would like to illustrate distance along a path, like how it is done with the measure distance tool in Google Maps (see attached image). Is there a way to do this in ...
user avatar
3 votes
1 answer
25 views

Projected coordinate system for Sierra Leone

I am using geographic datasets of households (clusters) and mines in Ghana,Sierra Leone, and Liberia (I am analyzing each country separately). I am trying to calculate the distance between each ...
user avatar
  • 49
1 vote
1 answer
49 views

Choosing correct CRS to calculate distance and create buffers for datapoints in Ghana [closed]

I am using geographic datasets of households and mines in Ghana,Sierra Leone, and Liberia (I am analyzing each country separately). I am trying to calculate the distance between the clusters and the ...
user avatar
  • 49
1 vote
2 answers
55 views

How to calculate the distance and Azimuth from Point A to Point B in QGIS

Looking to add the Distance and the Azimuth from SPLat/SPLong and to EPLat/SPLong Points. Is there an easy way to do this in QGIS.
user avatar
  • 19
0 votes
0 answers
21 views

Finding distance and attributes from one feature to another?

My goal is to have a final parcel layer include fields containing road name and distance to the nearest road segment. I'm using ArcMap and tried running the Near tool but it only returns distances. ...
user avatar
  • 183
0 votes
0 answers
37 views

Comparing two point layers - want to make out point within a certain distance

I just started playing with GIS. A project I came up with, which I personally would find interesting is to find plots which within a certain distance to the high voltage power cables. I have the point ...
user avatar
3 votes
1 answer
50 views

Creating lines indicating the shortest distance points to line in QGIS [duplicate]

How can I create lines indicating the shortest distance from a points dataset to a to line, avoiding the line to points tool first? In the past (at another company) we used MapInfo "Distance ...
user avatar
0 votes
0 answers
60 views

When drawing a polygon in QGIS, finding a point defined by two known distances

I'm looking for some tool or process that runs just like a tool present in Arcmap called 'Distance Distance'. For example, to draw a irregular polygon defining the first four points, I would like to ...
user avatar
  • 609
1 vote
1 answer
50 views

Calculating distance from point to line, depending on unique ID using QGIS

I have four points of interest for each plot, a line representing the segment that faces the road and the plots themselves for representation purposes (all of them share in common an unique "id&...
user avatar
1 vote
0 answers
33 views

Qgis 3.22.6: Field calculator in model gives back null values [duplicate]

I'm trying to calculate distance between 2 points that were previously extracted by expression. The modell right now looks like this (the other processes are deactivated): The models input is point ...
user avatar
0 votes
0 answers
29 views

Normalize distance between U.S. counties so that adjacent counties are unit distance away

High level problem: I'd like a "distance" metric that measures adjacency rather than euclidean distance. Details: I'm looking for a way to normalize distance between U.S. counties so that ...
user avatar
  • 101
2 votes
0 answers
67 views

Distance along line network between set of points to set of hubs

I am trying to measure distance between towns (light grey in attached screenshot) and their district capitals (light purple) along usable roads (dashed blue). I used the GRASS v.distance plugin to ...
user avatar
  • 21
0 votes
1 answer
32 views

R Distance from Point to Line: Negative if within shape

I'm working with Brazilian deforestation data - specifically two sf objects: A point shapefile on environmental fines (centroid of land plots that have been fined for deforestation). A polygon of (...
user avatar
  • 19
0 votes
2 answers
101 views

Distance between two points on OSM without routing information

I need to find the distance between multiple points following roads on OSM. I am aware of routing software like OSRM. However, this is not a useful solution for me (at least the alternatives I've ...
user avatar
1 vote
1 answer
33 views

Distances between countries based on borders in R?

I am trying to calculate the distances using rnaturalearth. library(rnaturalearth) kr = ne_countries(returnclass="sf") d = st_distance(kr[128,],kr) but the following error appear: Error ...
user avatar
  • 13
0 votes
1 answer
34 views

Using ArcGIS Pro tools to determine front of polygons in relation to street lines

I am looking for help to develop a process to identify the sides and lengths of parcel polygons in relation to streets to determine the 'front' of the polygon, i.e. facing the street, so I can then ...
user avatar
4 votes
2 answers
159 views

Calculate Distance (in miles) from Point to Polygon Edge in QGIS

I am attempting to calculate the distance from a point to the nearest polygon edge (county boundary). I have approximately 80 points and want to find the closest county edge for all of the points and ...
user avatar
  • 49
2 votes
1 answer
85 views

Find minimum distance to US coastline in Python

I have the following code in Python: import geopandas as gpd world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres')) us = world[world['name']=='United States of America'].dissolve(by='...
user avatar
  • 123
5 votes
1 answer
111 views

Measuring distance between wavey lines/points in QGIS

In I want to design meandering lines on a plot at 5m distance apart. I am using the circular string tool so it's all by hand, ideally, they would be identical lines with a consistent 5m distance. How ...
user avatar
  • 79
2 votes
0 answers
112 views

Calculating coordinates of two GPS points whose line through them is perpendicular to two other GPS points

Given two GPS points A and B, I would like to compute the GPS coordinates A1 and A2. [A1A2] forms a segment perpendicular to segment [AB]. For this, I start to compute M1, which is the midpoint ...
user avatar
  • 121
5 votes
3 answers
250 views

Calculate the distance between multiple points within a buffer in QGIS

I am very new to QGIS so please bear with me. Attached is an image of my QGIS project so far. In this, you have the pinkish points of the "Point_centers" layer and green points labeled "...
user avatar
1 vote
2 answers
57 views

Visualizing proximity to nearest park in QGIS

I'm relatively new to QGIS but have undertaken a project trying to understand access to parks in a neighborhood of nyc. I want to visualize the proximity to the nearest park from the entrance of each ...
user avatar
0 votes
1 answer
102 views

Converting between lat/long/azimuth and distance/heading

I have three points, p1, p2, and p3, and I'm trying to find the distance between p2 and p3. I have the latitude and longitude coordinates for p1 and p2 and have the p3 - p1 distance in meters and ...
user avatar
  • 23
2 votes
1 answer
1k views

Calculate distance between two lat/lon/alt points in Python

I'm trying to find out how to calculate the distance between two points with latitude, longitude, and elevation data. I found that geographiclib.geodesic.Geodesic.WGS84.Inverse() outputs a s12 ...
user avatar
  • 23
0 votes
0 answers
16 views

Distance package bootstrap error - 'by' must specify a uniquely valid column

Using package distance to run a bootstrap method for estimating precision of our results from distance sampling mule deer. We have messed with it for a while, trying to mimic other examples online but ...
user avatar
0 votes
3 answers
52 views

Calculate distance between two geometries using ArcPy

I have managed to write the following code where I am looping through features of "Source Layer", getting its primary and foreign key. Then selecting that feature using primary key from &...
user avatar
2 votes
1 answer
54 views

Identify points close to a line

Scenario Layer 1 : shapefile lines representing roads Layer 2 : shapefile points representing remarkable trees Of course, the trees are not on the roads. I want to identify the number of trees that ...
user avatar
  • 418
1 vote
0 answers
107 views

EPSG:3857 : find approximate distance between points with PyQGIS? [closed]

I'm trying to calculate the distance between 2 points with different methods, eg QgsDistanceArea(), trigonometry ((x2-x1)**2 + (y2-y1)**2)**(1/2) I always get the same result, nearly 150% of the real ...
user avatar
  • 326
2 votes
1 answer
52 views

Calculated distance field along GPX track

I have dropped a GPS breadcrumb track (.gpx format) onto my project. If I generate a a virtual field in this layer to calculate the distance between successive crumbs using the expression: distance(($...
user avatar
  • 393
-1 votes
1 answer
35 views

Vector line length vs. geographical distance (as a bird flies) [closed]

Is there a way to compare the length of a line (ESRI Shapefile in my case) to the actual distance it covers with freely available tools? I am developing an optional path algorithm. The image below ...
user avatar
0 votes
0 answers
17 views

Routing shortest paths between sets of Origins/Destinations

I have a dataset of cases as follows: Case A - Orgin A - Destination A Case B - Orgin B - Destination B Case C - Orgin C - Destination C etc. I'm trying to calculate the shortest network distance ...
user avatar
4 votes
2 answers
314 views

The distance between two points on a linestring respecting the linestring course

I have a big dilemma that I can't get over as much as I'm looking for here. I have on a linestring two points marked A and B, I want to calculate the distance between point A and point B as the line ...
user avatar
0 votes
1 answer
35 views

Recalculating distance table - is there fast (fast and dirty OK) way?

I have a system that is based on PostGIS that holds a set of coordinates. It serves a lot of user requests where users send their own current coordinates and receive a set of points that are located ...
user avatar
2 votes
2 answers
63 views

Calculating distance along line to central point QGIS

I have a layer of various water courses. I have a central location which is a reintroduction site for an animal. I want to calculate the minimum distances along the lines of the water course to the ...
user avatar
3 votes
0 answers
27 views

Is there a relationship between driving distance and straight line distance?

For fun, I created an FME workflow that emails me the 10 cheapest fuel princes within 10km of my house. I calculate both the driving distance along roads and the straight line distance. Knowing that ...
user avatar
  • 21.3k
1 vote
0 answers
102 views

Why ST_DistanceSphere returns 0? [closed]

Why when I use ST_DistanceSphere() for obtain the distance in meters between to points I get 0 as result? This is the query: SELECT ST_DistanceSphere(ST_MakePoint(54.1098335, 7.9320379), ...
user avatar
  • 45
3 votes
1 answer
37 views

Getting distance of lines between points on map using Distance matrix in QGIS

I created a Distance matrix from a vector layer of 36 points. I want to show all the distance lines between all the points. In the Distance matrix layer, I click Properties > Symbology, then under ...
user avatar
0 votes
0 answers
35 views

ArcMap calculating driving distance without Network Analyst

I'm using ArcMap 10.8. I need to find areas that are within 150 km driving distance of certain cities. Generate Service Areas with the Network Analyst extension seems to be capable of this, but I don'...
user avatar
  • 129
6 votes
3 answers
234 views

Calculating distance between consecutive points in same point layer in QGIS

I have a point layer with close to 60.000 points that depict a river course (pixel extracts from satellite image). CRS of the layer is Geographic (Lat, Long). The pixels are ordered ascendingly from ...
user avatar
  • 77
6 votes
2 answers
455 views

Shortest path touching all points

I am looking for a solution to derive the shortest route that touches all the points using Python. Please note that This is not a Travelling salesman problem (TSP), in which the route should end ...
user avatar
  • 315
5 votes
3 answers
111 views

Measuring minimum distances for closest features between two polygon layers in QGIS

I am trying to find a way to measure minimum distance between two polygon layers in QGIS. I have one polygon layer (orange) which represents hunting areas, and one polygon layer (green) which ...
user avatar
0 votes
0 answers
20 views

Fixed distance path to maximise value of raster layer

I am working in ArcGIS, but I think this is a little more a conceptual problem. To summarise, I am trying to find a 10km path that both starts and ends on a road (roads are stored as a shapefile), and ...
user avatar
  • 1
3 votes
1 answer
72 views

Appropriate distance and CRS

I want to use buffer function using miles or kilometers in Louisiana. I checked Changing unit of measure from degrees to meters in QGIS?. The original CRS is EPSG:4326 - WGS 84 - Geographic and the ...
user avatar
  • 187

1
2 3 4 5
29