A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
0answers
20 views

Creating raster displaying graduated Distance to polygon or feature using QGIS

I am trying to create a raster which displays the relative distance of a pixel to a set of polygons of a specific value. I have satellite derived fire scar data going back for the last 20 years. For ...
0
votes
0answers
15 views

Rescaling point distance values

I have a single line feature that I have converted into points that also contains an attribute field with each point distance value along the line. I’ve edited that line (e.g. made it longer, changed ...
5
votes
2answers
2k views

Performing Point Distance analysis using Basic level license of ArcGIS Desktop?

I am using ArcView (ArcGIS Desktop Basic) 10.1 and I need to perform a point distance analysis. What are the steps to determine the distance from A to B-Z, B to A-Z, C to A-Z, etc?
0
votes
0answers
34 views

How to find the points of hausdorff_distance()?

The Shapely hausdorff_distance() function returns a single (scalar) value. Is there a way to get the/a pair of points on both geometries that fit this distance? Similar to how we have ...
1
vote
1answer
30 views

Finding distance of consecutive points in a GeoPandas data frame

I am trying to find the distance between every consecutive points in a GeoPandas dataframe. Let's say we have the following data frame: import pandas as pd import geopandas data=pd.DataFrame() data['...
0
votes
0answers
24 views

Distance be between points: XYtoLine “Length” different from Add Geometry Attribute (geodesic) “length geodeisic” (ArcGIS Desktop)

I have a set of coordinates (WGS_1984) for patients home locations (Point A) and the first facility they visited (Point B). I want to calculate the distance between point A and B for each patient. I ...
1
vote
1answer
56 views

What Projected or Geographic Coordinate System should I use to calculate km distances between various points on a large scale map? [closed]

I want to measure distances using the distance matrix tool on QGIS between the yellow dots and their closest blue dot. I want my output to be in KM and to be as accurate as possible. I don't want to ...
2
votes
1answer
304 views

How do v.distance 'upload' parameters actually work?

I'm trying to use v.distance (using QGIS 3.4) to calculate the distance in meters between a layer of water shutoff points and the boundary of the nearest building footprint polygon. Even better would ...
0
votes
0answers
35 views

Moving geometry at same distance in different coordinate systems

I haven't been making tools in ArcPy for a while and stuck in one case. My goal is to create a serie of geometries in a center of current extent by running a script. I.e when I move ArcMap's extent ...
5
votes
2answers
13k views

What are units of Distance Matrix tool results in QGIS?

I have a point data set. Now there are cluster of points based on a field. So I take out one such cluster which has points with same field.I want to find distance between all the points in cluster and ...
0
votes
1answer
18 views

Units used for distance calculations by distance matrix tool of QGIS [duplicate]

I can't seem to get the measure tool to match up with my distance matrix tool regardless of what measurements I use. There are conflicting answers on other posts about this question. Both of my layers ...
1
vote
0answers
10 views

Calculating distance from point to feature returned from layer query using ArcGIS API for JavaScript

I have a project where a user clicks on a map and I filter to show all features from a layer that are within a certain distance of the point clicked. That part of things works fine. What is not ...
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 ...
-1
votes
0answers
16 views

Preferred methods to create distance layer in Google Earth Engine [closed]

I have a vector fishnet grid (100 x 100 km) of 128 points and a river Shapefile (line) that span the country of Vietnam. I upload them into GEE as Feature Collections. Both vector datasets are ...
0
votes
1answer
20 views

Finding distance from every point in one layer and every feature in another using ArcGIS Pro

I have two layers. One contains points (lat/lng) and the other contains lakes (polygons). I want to generate a table that shows, for every point, the distance to every lake. What tool in the ...
1
vote
0answers
24 views

Finding distances associated with change in latitude and longitude at given location [duplicate]

I am writing a program that uses GPS lat and long coordinates and a time change to determine speed with the output in units of m/s (precise to 0.1 m if feasible, but 1 m is sufficient). When ...
0
votes
1answer
109 views

Find all regions (lat, long, radius) that contain a point

A Region has a latitude, longitude (GEOMETRY('POINT')) and a radius. Using postgis, how can I query all Regions where the distance from pointParam and region.point is less than or equal to region....
4
votes
1answer
70 views

Distances in Google Earth Pro

When I use the ruler tool and create a segment between two points, which one of the following is true for the calculated distance?: The geodesic distance calculated over a an ellipsoid The projection ...
20
votes
4answers
107k 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. ...
5
votes
1answer
533 views

commuteDistance in gdistance package in R giving error

I am currently trying to run a function that "calculates the expected random-walk commute time between nodes in a graph. It is defined as the effective distance (resistance distance) between the ...
0
votes
0answers
25 views

Are OSM tiles Cartesian at small scale? [duplicate]

I am new to GIS and I want to know if OSM tiles can be taken as a Cartesian reference system at small scale and at which scale this approximation breaks down? For example if I have an OSM map tile of ...
20
votes
5answers
18k views

GeoPandas: Find nearest point in other dataframe

I've got 2 geodataframes: import geopandas as gpd from shapely.geometry import Point gpd1 = gpd.GeoDataFrame([['John',1,Point(1,1)],['Smith',1,Point(2,2)],['Soap',1,Point(0,2)]],columns=['Name','ID','...
1
vote
1answer
93 views

Calculate Geometry function returns underestimated distances

I'm making a map of the Colorado Trail and obtained a set of waypoints taken down the entire trail. I projected the set of waypoints from WGS84 (unprojected) to NAD 83 UTM13N after adding to the data ...
4
votes
1answer
736 views

Using PostGIS to calculate distance of route over large area [closed]

I am new to PostGIS and looking to measure the distance of the Pacific Crest Trail which spans western North America from Canada to Mexico. I have a data set containing the lat lon and dates from GPX ...
9
votes
1answer
5k views

Calculating {minimal} distance between polygons in R

I have calculated the surface area of species distributions (merging polygons from shapefiles), but since this area can be comprised of quite distanced polygons, I would like to calculate some measure ...
5
votes
3answers
7k views

How to use GeoSeries.distance to get the right answer

When I want the distance between two points [(117.454361,38.8459879),(117.459880 ,38.846255)] (longitude,latitude) on the earth, I take the GeoSeries.distance method, but the method does not give me ...
1
vote
1answer
340 views

Python: Open a (line) shapefile and calculate distance to point given as a longitude-latitude tuple

I have a Pandas dataframe in Python with longitude and latitude values of certain locations (see sample below): Index Long Lat 0 -98.58 ...
3
votes
1answer
161 views

Calculating distance while adjusting for obstacles in ArcGIS Desktop?

I have a global grid of points in the ocean and need to calculate the distance to and identify the closest 10 polygons along the coastline for the entire world while also avoiding crossing land. For ...
-1
votes
0answers
28 views

Calculating distance from points to some specific lines using ArcGIS Desktop

I have a shapefile with many points (longs and lats). There is another shapefile which is comprised of many lines (polylines). I want to know whether there is a way to calculate the distance from ...
0
votes
0answers
26 views

Distance be between points: XYtoLine “Length” different from Add Geometry Attribute (geodesic) “length geodeisic” (ArcGIS Desktop)

I feel as though this question has definitely been answered but can't seem to find it. Please feel free to link me to appropriate answer. I'm using ArcMap 10.7 for Desktop. I have a set of ...
-4
votes
0answers
23 views

Measuring distance from points to polylines

I have a shapefile with polylines that show railway lines in Africa in different countries.There is another shapefile with points (longs and lats). I want to measure the distance between each point to ...
1
vote
1answer
2k views

Calculating minimum distance between points using PostGIS

I have a table (tab_Cities with cities which own more than 50000 inhabitants. The table also contains lat, long and the_geom as columns. I can already see the points via QGIS. Now I want to write a ...
24
votes
5answers
27k 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 ...
3
votes
2answers
7k views

Creating buffer circle x kilometers from point using Python?

I am wanting to create a circle with an inputted radius around a point of predetermined latitude and longitude. I've been trying to use the formula found in this post which uses an algorithm ...
0
votes
0answers
42 views

Measure GPS distance between two points without using almost any math? (accuracy not required)

I'm programming an application where I save GPS location (lat and long) into each user info. I need to search the nearest users, I can only search using a between() function provided by my database, ...
1
vote
1answer
53 views

QGIS Buffer distance vs Distance in Distance Matrix

I created Buffer (with Vector, Geoprocessing Tools) with 500 M distance from a point in the map (let's say Point A). I made another point (Point B) and it is not inside the 500 m Buffer. The Distance ...
1
vote
1answer
39 views

Finding average distance to nearest point

I would like to find out the average distance from high schools (represented as a point in QGIS) to libraries (represented as another point in QGIS) in New York's 32 districts. I have already ...
2
votes
1answer
81 views

EPSG 3857 vs UTM coordinate

I am trying to understand the difference between the two coordinates system. By so far I grasp that EPSG:3857 is used for a web-based map like Google Maps, OpenStreetMap. I am getting a position (in ...
2
votes
1answer
4k views

Measuring Distance from Point to Point Along a Path in ArcMap

I am looking at a village and want to find the distance from each house (point) to the pagoda (point). However, I want the distance to be measured along a path (which I digitized as a polyline) and ...
0
votes
1answer
77 views

Cost distance tool to figure out shortest distance over water between 2 points

I have multiple points in a bay and I need to figure out the distance of each point to the nearest inlet, without going over land. I have been told to use the Cost Path or the Cost Distance tool but ...
2
votes
2answers
70 views

Get median distance from a bunch of points from a assigned location and draw buffer accordingly

I have 2 point layers, say layer A and Layer B Layer A with a bunch of points, Layer B with a single point. I first need to measure all the distances between every single point in layer A and the ...
17
votes
10answers
14k views

Which tools and methods can be used to create isochrones?

I'd like to get an idea for what's involved in creating isochrones for a series of sites, with a reasonable degree of accuracy to the estimates. A general outline would be great, though my scenario ...
1
vote
1answer
46 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 ...
10
votes
5answers
8k views

Better Distance Measurements in Web Mercator Projection

I am working with an ESRI stack, storing my layers in a sql-spatial-enabled-SDE- geodatabase (Geometry type, Web Mercator-3857). I am building a web mapping application, so by default, the tiles are ...
3
votes
0answers
48 views

Different distance when using “Measure Line” tool and manually with scale in QGIS 3

Using QGIS's "Measure Line" tool I get a distance of 1.22km between two points. But if I use the scale indicated at the bottom of the screen, 1:50000, and measure with a ruler, the distance is 2.5km (...
0
votes
0answers
33 views

Distance to value pixels by route

I have polygons layer (around 300 watersheds), points layer (boat route, contains around 20000 points) and land-use raster (modified from CORINE according to the local features, contains values ...
2
votes
2answers
133 views

Flow Mapper wrong line length calculation

I'm finding some trouble with the length calculation in the Flow Mapper plugin. As you can see in the picture below the length of the 2 lines C001-C021 = 4233.7986... C001-C009 = 6069.3053... is ...
1
vote
1answer
149 views

Distance between point and line layers & spatial index issue

I am trying to compute on QGIS the distance from some clusters (ie points) to their closest road (ie lines); no need for all combinations, just the distance from each cluster to the closest road. To ...
1
vote
0answers
26 views

SAR calculating distance between 2 points

I am playing around with ESA's SNAP software and Sentinel-1 data and I was curios if it is possible to measure the ground distance between 2 points in a radar image. For example let's say that I am ...
1
vote
0answers
23 views

Distance Point x,i from nearest Point x,j report Point x,j ID in r

I have a sample of points villages x,i, and I want to know the distance between each village x,i and the nearest village x,j. The i, and j depicts two different samples. I am able to find the distance ...