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
2
votes
1answer
173 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
1answer
95 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....
1
vote
1answer
658 views

Calculating distance between points crossing antimeridian using R? [on hold]

How can I calculate the distance between two points (lon/lat) if any of the points exceeds the antimeridian (+-180 longitude)? I am using the distVincentyEllipsoid {geosphere} to calculate the ...
2
votes
1answer
44 views

Getting nearest point but with a filter conditional in QGIS 3.4?

I have two point layers in CSV files, each with about 500 points/rows. Each point in both layers has a year column (attribute). I know how to use Distance Matrix to find the nearest point. BUT: For ...
5
votes
1answer
484 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
26 views

Finding neighbors of latitude longitude pair location

I have a list of points (more than a few million) defined by latitude and longitude. I want to find out the neighbors of each point. For example, I want to know for each point, what the nearest point, ...
1
vote
1answer
47 views

Creating Voronoi diagrams using JTS and the manhattan or minkowski distance metrics

In Java I am using the JTS library. Is it possible to use this library to generate Voronoi sites using different types of distance functions? https://locationtech.github.io/jts/javadoc/org/...
2
votes
0answers
39 views

Calculating line length to both sites in QGIS

Is there a function or a plugin for QGIS that works like this? I have a line, for example, 7 km I click on that line at any point A popup or something gives me the distance to the left an to the ...
1
vote
1answer
92 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 ...
0
votes
0answers
25 views

Distance from point to line with positive and negative values (near tool?)

I am trying to calculate the distance between collected points and a generated shoreline, but I also need to know if the points are inside the shoreline or outside the shoreline. I have been using the ...
1
vote
0answers
22 views

Recognized, calibrated test points for a rangefinding function?

I'm trying to find out if there are scientifically accepted calibration points to measure the effectiveness of a geodetic distance finding function. So far I've been using the listed latitude / ...
0
votes
1answer
46 views

Apply symbology based on an algorithm (ArcGIS)

Been battling this problem for a long time now, so hoping someone here can shed light on a possible solution. The problem is that I have 100 points and I want to apply a color palette to the points so ...
3
votes
1answer
113 views

Distance between two points - by ID in QGIS

I have a dataset of 350 or so individuals. Each individual has a start point (2 columns with Lat and Long) and end point (2 columns with Lat and Long). I would like calculate the distance between ...
5
votes
2answers
2k views

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

I am using ArcView Version 10.1 and I need to perform a point distance analysis like: What is the distance from A to B-Z, B to A-Z, C to A-Z, etc? What are the steps that I take to do this?
8
votes
2answers
4k views

Spatial distance analysis in QGIS

I'm quite new to QGIS and trying to figure out how to analyze the following problem. I have three layers: settlements point layer with 253 entries waste treatment facilities point layer with 24 ...
9
votes
4answers
28k views

Calculating minimum distance between points and polygons in QGIS?

I have two vector layers: one point and one polygon and I want to calculate the minimum distance of each point from the polygons (ie the distance from the closest point of the closest polygon). Is ...
1
vote
1answer
255 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 ...
0
votes
0answers
12 views

Error when running v.net.distance

I'm running grass76 on CentOS 7. When I have a network map (generated using v.net) with layer 1 having the arcs and layer 2 and 3 having the sets of nodes that I need to connect. Details are as ...
18
votes
4answers
14k 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
0answers
19 views

Shortest Paths Between Adjacent Points on a Network

With the project I'm currently working on I need to calculate how much the total length of the network increases as I expand it from one node to the next. I have the road network as a line layer (...
3
votes
1answer
152 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 ...
3
votes
1answer
49 views

Nearest line to polygon based on equal attribute

I have a polygon shapefile and a line shapefile with several thousand features each. I want to get: The nearest distance between a polygon and a line that have the same attribute (e.g. ID). Example ...
1
vote
1answer
135 views

Circle is ellipse using OpenStreetMap

Currently I have a problem while developing an app - I use OpenStreetMap and draw a Circle and pass it to a Python back-end, as central point and point on the perimeter on the Circle. Next I am ...
2
votes
1answer
359 views

Inverse of Euclidean distance in ArcGIS Desktop?

Using ArcGIS Desktop I am trying to do the reverse / inverse of a euclidean distance. For example, I am doing distance to roads analysis. The output from the distance raster shows roads as 0 and areas ...
0
votes
1answer
63 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 ...
1
vote
1answer
36 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
1answer
37 views

0.5° × 0.5° to meters

This paper https://www.sciencedirect.com/science/article/pii/S1352231017300936 mentions using a 0.5° × 0.5° resolution grid, and I've tried googling to find out what that means in meters but I come ...
2
votes
2answers
123 views

Get latitude and longitude differences by clicking in two locations on the map

Is it possible in QGIS 3.x to click in two places on the map and to get back the X and Y distances between these two locations (latitude and longitude differences). I was hoping there is a plugin ...
1
vote
2answers
687 views

Cost-Distance Tool not producing logical answer

I am working on creating a cost catchment based on Tobler's equation in ArcGIS10.1. I feel confident in my cost surface; it produces a raster where each cell equals the time in hours that it would ...
3
votes
2answers
80 views

Calculating geodesic distance along a path (lat/lon points) at once?

Using Python 3.7 with Jupyter Notebook on a Win10 x64. I have a list of lat-long tuples representing a path and I want to calculate the total length along that path in meters (or km, miles etc). I ...
1
vote
1answer
21 views

Apply function from rgeos package to data sets

I am using gDistance function from rgeos package to calculate the nearest distance from points to a polygon. Originally I used for loop to calculate the distance for each row in my points data set, ...
0
votes
2answers
49 views

QGIS changing map options distance units

I want to change the map distance units option in QGIS from metres to centimetres. I am currently using projection British National Grid EPSG 27700. I would like the print composer to print a map ...
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
131 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 ...
0
votes
1answer
24 views

Raster analysis , Proximity (raster distance)

This is my first message here. I am trying to create a proximity map with the Raster analysis tool. My problem is that I only get two options for distance units , pixels coordinates and georeferenced ...
3
votes
1answer
353 views

Difference between Geodetic Distance and Great Circle Distance?

According to Wikipedia: The great-circle distance or orthodromic distance is the shortest distance between two points on the surface of a sphere, measured along the surface of the sphere (as ...
1
vote
0answers
33 views

Cross section profile distance not providing accurate distances?

I have created a DEM file, which I am using to draw a cross section along a line to see the variation of height from point A to point B along land seen below. When it use the Profile tool on the ...
0
votes
2answers
80 views

Calculate distance covered by points in a shapefile

Is there a way to calculate the total distance covered by thousands of points in a shapefile in ArcMap 10.4 or possibly ArcPro? I am trying to apply a buffer for each point, then dissolve and find the ...
0
votes
0answers
22 views

Calculating distance between polylines from same feature class using ArcGIS Desktop?

I have a feature class with multiple lines outlining the extent of a glacier through time. I would like to calculate the distance between consecutive years (i.e two polylines from the same feature ...
2
votes
3answers
60 views

Finding accurate distance of a drawing in QGIS

Attached shows a rough drawn image of a pipeline track. I need to measure the pipeline track from one end to the other, e.g from the red and blue square to the other red and blue square, e.g from the ...
0
votes
0answers
24 views

Converting distance from km to degrees (WGS84)?

Is there an equation in which I can convert distance in kilometers into degrees? I am performing a Kriging analysis and when I am measuring the distance between the input points (for LAG and Major ...
0
votes
0answers
37 views

Creating a distance map from OpenStreetMap data

I would like to create a distance map using OpenStreetMap objects as input objects. To explain what I mean with distance map, let's look at the wikipedia definition: A distance transform, also ...
1
vote
1answer
41 views

Optmizing PostGIS minimum distance query

I have the field_1 of my Table_1 that must have the minimum distance between the geometry of my Table_1 and any geometry of my Table_2. To do so, I used a CROSS JOIN (Full Cartesian Product) between ...
0
votes
0answers
21 views

Maximum mathematical variation between non-government, non-state, physically contiguous zip codes?

I'm programming a matching list for street addresses, and I'm trying to prioritize different aspects of the address based on likelihood of similarity if both addresses are the same physical location. ...
5
votes
3answers
2k views

Finding point in country furthest from boundary? [closed]

i'm trying to find the point in south africa furthest from the sea or a landward boundary. my method thus far: i obtained a first guess at the centre of the inscribed circle and the three segments ...
8
votes
1answer
2k views

Automatically reducing polygon size in QGIS?

I am working with two polygon layers (counties & states) which I will 'intersect' to find which counties are within which states. Due to data inaccuracies I have to change all county polygons and ...
0
votes
1answer
32 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. ...
5
votes
2answers
2k views

Finding points along a path

I am unsure of the best approach to this problem. I can think of some ways of doing it which I will list below but I am looking for the best and most efficient way of doing this. Problem Given a ...
0
votes
0answers
37 views

Error in RGEOSDistanceFunc(spgeom1, spgeom2, byid, “rgeos_distance”) : negative length vectors are not allowed

What does the error in the title mean? I'm fairly new to GIS and can't understand which negative length vectors R is talking about? Here is what I'm doing: I have a csv of lat/long locations of ...
3
votes
2answers
81 views

Calculating distance between multiple lines of points in QGIS?

I'm looking to calculate a distance from a sensor reading to that of the nearest sensor reading on a different sensor line, all held within the same points file. Ideally using QGIS. The image below ...