Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
1answer
35 views

Calculating shortest distance between two points on water, avoiding land?

Can someone explain to me (in beginner's terms) how to calculate the distance between two points that are on water, avoiding land? For example, these points are inshore in a bay, so I don't want the ...
0
votes
0answers
25 views

Using great-circle distance for Moran's I in ArcMap? [on hold]

I am calculating Moran's I based on values of global cities, so great-circle distance should be used in the distance measures. However, in ArcMap, one can only choose distance measures between ...
5
votes
2answers
191 views

Finding distance between point and polygon edge in eastward direction using PyQGIS?

I need to find distance in eastward direction from each point to the closest polygon edge: I can find shortest distance in any direction with: pointlayer = QgsProject.instance().mapLayersByName('...
1
vote
1answer
39 views

Creating points along line at ellipsoidal distance

I need to create points along a polyline in QGIS 3 at every 1000m of ellipsoidal distance and have tried several tools, as suggested in other answers: Points along geometry QChainage plugin Convert ...
1
vote
1answer
25 views

Finding shortest path without barriers using the sf package in R

Say I have three ships near PNG in the pacific. I want to know the shortest path between all three, while not going aground. This can be done with the ArcGIS function "cost distance" and "shortest ...
2
votes
0answers
33 views

Creating points with linear referencing

I have traffic data that shows tracks that have start and end times (in YYYYMMDD-HHMMSS format) and the speed (m/s) the vehicle was moving. From that I've calculated total traveled distance (m) and ...
2
votes
1answer
48 views

Distance betweeen classified Points

I got two sets of points. The first set has a unique ID The second set references to this ID (one-to-many). So I merged the two sets. Now every point in the joined table has the X and Y coordinates ...
1
vote
2answers
29 views

Finding distance between positions of same point on two different layers using QGIS?

I am trying to calculate the difference between the positions of the same point on two different layers. One layer is a shapefile, other layer is a text file, and each point has a unique identifier, ...
0
votes
0answers
31 views

Get the nearest distance between two points in a road network using GDAL/Shapely/NetworkX

I want to measure the distance between two points in a road network like this: I have the road WKT and also the points WKT. I know that I can measure this using QGIS (road graph plugin) or PyQGIS, ...
0
votes
1answer
33 views

What is the unit of measurement of the distance between two points using geopandas distance function?

I have created three buffers using geopandas in python and I have a few points scattered here and there, some of them are inside the buffers.But the problem is the following: When I obtain distance ...
0
votes
1answer
27 views

How do I obtain the distances of each point lying inside or outside buffers from the center of buffers?

My aim is to obtain the shortest distance between all the points overlain on a polygon and the center of buffers also overlain on the same polygon. I have done the following to illustrate this: ...
1
vote
0answers
41 views

Determining distance to nearest location along stream network by each cell using GRASS?

I have a river network in raster and locations of many dams on the river. In the image above, the BLUE point represent one random cell. Dam 1 is downstream to the cell. I am looking to calculate ...
1
vote
1answer
36 views

Computing shortest distance to line segment from set of points using QGIS?

I have a shapefile that describes the urban boundaries of a city and I want to calculate for a set of points the nearest distance to the boundary. Given the number of points is very large (millions) I ...
0
votes
1answer
31 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....
0
votes
0answers
20 views

Measuring distances in QGIS [duplicate]

When I'm trying to measure the distance of a point towards the nearest street, building, forest etc., do I have to do this all manually or is there a possibility to let QGIS measure and give me the ...
-1
votes
1answer
30 views

Drawing distance lines between two points [duplicate]

I want to be able to generate a distance line between two points on the map, which also has the distance as a label (similar to the second image seen on Google maps or in the first image from the red ...
1
vote
1answer
56 views

Drawing distances from one point to another using QGIS?

I want to be able to generate a distance line between two points on the map, which also has the distance as a label (similar to the second image seen on Google maps or in the first image from the red ...
1
vote
1answer
32 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
39 views

Calculate row and column for WMTS request from Lat/Long

I'm writing a request to a WMTS server that has an upper left corner at 90, -180 and spans the whole Earth. I want to get a tile containing some point (targetLat, targetLong). Suppose we have some ...
0
votes
1answer
26 views

Geodesic distance from raster in python?

I am carrying out some analysis in python (using Anaconda), I have a binary raster and want to perform a geodesic distance calculation from all areas with a value of 1- I can do this within QGIS using ...
3
votes
1answer
56 views

Distance to water from every non-water pixel using Google Earth Engine?

I have an MNDWI (Modified Normalised Difference Water Index) layer for an area of interest (aoi). I then identified water sources as pixels with MNDWI > 0 and created a water layer where a pixel ...
0
votes
2answers
49 views

Creating Custom Shapefile that can be snapped in location with no dragging using QGIS?

I am trying to create a custom shapefile consisted of 16 waypoints orientated around an origin point. the 16 waypoints are to be 2m apart from the central waypoint (like an axis, with 0 being the ...
0
votes
0answers
36 views

QGIS Distance Matrix Output is always consists of zeros?

I have a shapefile with 35 points and I try to have the distance matrix showing the distance of each pixel with each other. I choose the input and the target file the same and the unique ID fields are ...
0
votes
0answers
23 views

Distance between points along separate polyline layer

I have an interesting problem to solve. Data: polyline layer of railroads (multiline with 11373 separate lines, also running parallel, separating and merging in many locations) point layer with ...
0
votes
1answer
27 views

QGIS Spatial Index uses bounding boxes; how to get actual nearest line to a known point

I have looked at lots of answers referring to this same issue, and tried using QGIS Spatial Indexes and iterating through the line features in the spatial index to calculate the distance between a ...
1
vote
1answer
34 views

Calculating distance features within a shapefile - ArcGIS

I have a file that has a list of postal codes of customers and the main store they frequently visit (e.g., Customer 1, Customer 2, and Customer 3, visit Circle Centre). In ArcGIS I want to be able to ...
4
votes
1answer
128 views

What kind of margin of error can I expect in figuring distance?

I have reviewed Why is law of cosines more preferable than haversine when calculating distance between two latitude-longitude points? and that does not equate to the specific question that I wish to ...
0
votes
0answers
37 views

Which ArcGIS tools to use to get perpendicular distance between polylines

I have a polyline shapefile with several thousand polylines. Each polyline is within a polygon, and the Polygon_ID is contained in the polyline shapefile attribute table. I need to figure out the ...
1
vote
0answers
75 views

Get the distance from line to given geo point at given degrees [closed]

I have added another picture for better understanding. I haven't written any code as of now. My requirement is to calculate the distance from given point (pinned location in above map) to given ...
4
votes
1answer
100 views

QGIS distance from a cell center to the nearest point

I am trying to run the following analysis in QGIS 3.2. My inputs: raster layer (with population estimates from LandScan) vector layer, with points (each point represent the location of a mobile cell ...
0
votes
1answer
26 views

Query to return closest LineString given a Point [duplicate]

I have a road lines data in a table with field roads(id SERIAL ,the_line geometry(LineString,4326)) suppose an accident occurs in a middle or at any location in that waterline i want to stop the ...
2
votes
1answer
42 views

Over how large of an area can I assume the Earth is flat?

I'm making some calculations between lat/lon coordinates in a neighborhood. I'm running this analysis as if the Earth were flat because the planet's curvature doesn't change my calculations over the ...
0
votes
1answer
44 views

Google Earth Engine compute point-polygon distances

I am trying to compute distances from points stored in a fusion table to the nearest political border (also from a Table) in Google Earth Engine. I need to compute distances between points. I would ...
0
votes
0answers
34 views

Data doesn't display in table after join

I have a big dataset that I've broken into smaller ones (census blocks) and joined to a retail store database to get nearest location for every census block centroid. I have calculated the distance ...
3
votes
1answer
54 views

Calculate accumulated distance with road network

I am working on a project in ArcMap and the task I am working on goes as follows: Calculate the accumulated distance (in meters) of every pixel on the map to Itaituba taking the road network into ...
2
votes
1answer
101 views

Distance to Nearest Hub QGIS not working when 'hub' is a line?

QGIS 2.18.20 working in CRS: WGS 84/UTM Zone 35S (EPSG:32735 OTF), with shapefiles of map features (roads, river, point water sources) reprojected from WGS84 EPSG:4326. All shapefiles have been ...
0
votes
2answers
47 views

Calculating width of polygon relative to polyline using ArcGIS Desktop?

I need to estimate the different widths of the polygons that surround some polylines. The polygons correspond to wetlands (buffer zones) and the lines represent the rivers. The catchment that I´m ...
5
votes
1answer
121 views

Measure distance between nearest points in the sea along the coast automatically in ArcGIS

I have global point data of marine species along the coast. I would like to measure the distance between the two closest points but this distance needs to be measured in the sea and not on the land ...
0
votes
2answers
332 views

How to use GeoSeries.distance to get the right answer

When want the distance between two points (117.454361,38.8459879),(117.459880 ,38.846255) on the earth, I take the GeoSeries.distance method.But the method do not give me the right answer. The real ...
1
vote
2answers
26 views

Clipping section of polyline based on given distance from source point feature along that polyline using ArcMap?

I am working in ArcMap 10.5.1 and have a polyline feature class (streams) and a point feature class of fish sightings plotted along the streams. I am trying to add a degree of observational ...
1
vote
0answers
40 views

Google Earth: Shortest distance between point (Place) and nearest point on a polygon (Country)

Using Google Earth, I am trying to find the simplest way to calculate the shortest distances of the geodesic lines between a specific set of points (lat/long locations) and the nearest points on a ...
1
vote
3answers
39 views

Getting shared distance of two parallel lines using ArcObjects?

I have 2 lines Line A, and Line B that share from point. The 2 lines at first share the same path and are parallel, then they split into different paths. I would like to calculate that segment in ...
1
vote
1answer
62 views

Storing the distance between two shapefiles as an attribute in QGIS 3.0?

I have this map of Mexico that is broken down into all of the municipalities. How would I create a variable that has the distance between each municipality and Mexico City?
0
votes
1answer
79 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
39 views

Creating new point based on distance of other points

I work in QGIS 2.14. I have a point layer, and I want to add points to that layer basing on the distances between the "old" point and the "new" point. I was doing it by creating buffors from each ...
0
votes
0answers
27 views

Getting the new two lines distances after splitting a segment on a point for a set of data PostGIS

I have a road shapefile that I imported into PostGIS that includes mainly the geom and the length (in km) of each of my segment AND hub shapefile containing set of nodes that I placed on the road. Now ...
0
votes
0answers
34 views

Points to line accuracy concerns in ArcMap

I have a csv of a GPS trace with lat-longs that I want to convert into a line so I can measure the distance. My workflow was as follows: 1) Import csv into ArcMap 10.4 2) Convert latlongs to points ...
0
votes
2answers
39 views

Calculating percentage (or length) of stream network that is multiple channel streams using ArcGIS Desktop?

I have a polyline stream network of all channels within a drainage basin (which is 1.1 million square km) A number of the rivers in the basin alternate between single thread and multichannel (i.e. ...
0
votes
0answers
9 views

Finding distance polygon is from specified point using ArcGIS Desktop? [duplicate]

I have a polygon shapefile that has a unique point attached to each feature. Every unique point is attached by a specific unique ID and is listed in the attribute table of the polygon. Is there a ...
0
votes
0answers
34 views

Can GDAL give the scale of a raster?

I have a GeoTIFF and I am trying to overlay a scale (miles or km) using GDAL. Is there a function in GDAL that will do this? I believe ArcPy has this functionality, but I am guessing GDAL does ...