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

learn more… | top users | synonyms

3
votes
2answers
53 views

Distance Matrix of two datasets

I have two datasets of the same adresses, one geocoded with Google, the other with Nominatim. Now I want to compare address1 of dataset1 with address1 of dataset2, then address2 of dataset2 with ...
3
votes
1answer
977 views

Finding projection of point to line?

I have a segment defined by 2 LatLon points(A and B) and a third LatLon point (C). I need an alghorithm, formulae, or some code to find the projection point of C on the segment AB (call this point D) ...
1
vote
0answers
14 views

QGIS distance matrix projection and alternative output format [closed]

I have around 200 thousand cities around the globe and are in a point shapefile with equidistant conic projection. I use ArcGIS and QGIS but have two problems: When I use distance matrix tool, it ...
1
vote
0answers
34 views

Discrepancy between CAD and GIS route lengths

I have imported a route from AutoCAD which is marked every kilometre and converted it into a shapefile. I put markers every 100 m using X-Tools. There is a difference between the two sets of markers, ...
3
votes
2answers
267 views

PostGIS get the distance between two points over a linestring

I have a linestring: LINESTRING(-1.3326397 50.9174932,-1.3319842 50.9166939) and I select two points that lay on that linestring. I would like to get the distance between these two points (in ...
0
votes
0answers
18 views

Finding closest feature to known point based on road layer?

I am using ArcGIS 10.2, standard I have 3 files: Facilities Storage Road I want to find the closest storage location to our facilities based on the road layer. The spatial join tool doesn't ...
3
votes
0answers
52 views

Find Distance Between Two Polygons

Given two polygons (point, line, or up to 8 vertices) I need to be able to calculate the shortest distance between them via code I write or a call to an API (I haven't been able to find one that does ...
2
votes
2answers
47 views

PostGIS distance between multiple points

I have a data set in a PostGIS data base (table name is animals) with the following structure: id (int, pk) | latitude (double) | longitude (double) | type (char) | geom (srid: 4326) In the type-...
1
vote
0answers
31 views

R script for find the minimum distance [closed]

I need an R code to select which polygon in a shapefile has got the minimum distance from a given point.
2
votes
2answers
838 views

Is there an R equivalent of NEAR in ESRI ArcGIS?

I have 54 points in one data set A I have 300+ data points in a dataset B. I wish to find the distance for each point in dataset-set B, to points in dataset A. Nearest Neighbor packages appear to ...
0
votes
0answers
52 views

Call gdal_proximity() from R

I have a raster including eight land cover types (pixel values ranged from 1 to 8): > r class : RasterLayer dimensions : 9887, 30532, 301869884 (nrow, ncol, ncell) resolution : 10, 10 (...
0
votes
1answer
87 views

Check if point is within radius of another point with Shapely

I've successfully used Shapely with python to check if a point is within one of a set of polygons in a .shp file but now would like to check if a point is within a circle of radius x miles from ...
1
vote
0answers
41 views

How analyze reliability of position of new point based on point data

I am working on filter for biogeographical data. It is based on citizen science principle. People put new point data to database and I want add information about "reliability" or probability (maybe ...
2
votes
1answer
49 views

For Loop Maximum Minimum Distance Between Two Lines

I have a table of line/lane ids in a table called matched_lanes, and I am trying to create a lateral query that on each id in the table to find the maximumum minimum distance between each point. I.e....
3
votes
2answers
51 views

How to calculate shortest distance from start to end of river?

How can I calculate the straight distance from the start to the end point of a river (red line in image)? I don't know how to do this automatically.
3
votes
3answers
259 views

How to find accurate latitudes and longitudes data for cities? [closed]

I want to put the coordinates of cities in a spatial db and then find cities from a given city at some given distance. I am hoping these functions would be readily available in a spatial db like ...
2
votes
0answers
37 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
1answer
50 views

How to calculate distance from point to nearest polygoin via road network (polyline) ARCMap 10.3.1

Using ArcMap, is it possible calculate distance from a postcode (point) to nearest polygon using a road network layer (polyline)? As opposed to just calculating Euclidean distance?
3
votes
2answers
735 views

Measure average distance between two lines with common endpoints

I have two shapefiles, each with a set of lines generated from start and end points. One shapefile has the straight lines generated from the XY To Line tool, while the other has lines generated from a ...
0
votes
1answer
24 views

How to I change the extents of a Euclidian Distance Raster?

I am calculating the Euclidean distance of a set of points. The output raster truncates the resulting raster image to the farthest north, south, east, and west point. I need the distances to extend ...
0
votes
0answers
68 views

Shortest distance over water in ArcGIS?

I'm using ArcGIS 10.2 with an advanced license. I'm trying to calculate the shortest distance over water between points (between survey locations at sea, and seabird colonies on land). I have a large ...
1
vote
0answers
24 views

Measure the distance between points automatically

How can I measure the distance between points referring to the same element in an automated way? In fact I've imported in QGIS buildings downloaded from two different sources and obviously they are ...
0
votes
1answer
82 views

How to delimit point distances in ArcGIS for Desktop per Thiessen polygon

I have 2 shapefiles. The first set contains x,y coordinates for 1100 hospital locations. The second pair contains x,y coordinates of about 7000 villages that are served by the hospitals. This means ...
1
vote
0answers
59 views

Find distance from points along lines [closed]

I have two layers, one is a point layer of schools and another is a polyline layer of streets. The end goal is to create a buffer along the lines that is 20 feet from the centerline that goes 1 mile ...
1
vote
0answers
22 views

Calculating the distance between points and parts of a underlying raster set

I need your help with a calculation of the distance between points (cities in this case) and forest (raster data). Is there a possibility to collate to every city the distance to the nearest forest ...
6
votes
1answer
4k views

OpenLayers measure tool - instant measurement

I need to use measure tool to measure distances (instant measurement!) in my application. Instant measurement example can be found here. But the main problem is that when I use instant measurement ...
1
vote
2answers
38 views

Counting points within range using CartoDB?

I have a dataset of users location and want to assign per user how many other users they have within a given range, and updating this value into a table.The dataset name is "users_20160410" and the ...
8
votes
4answers
5k views

Finding minimum edge to edge distance of polygons using ArcGIS Desktop?

I have a a map of about 3000 polygons in ArcGIS 10. I'm looking to find the distance between each one of them. I know how to do it using the lat and long coordinates of the centroid, but I'm looking ...
1
vote
1answer
62 views

Network Analysis

I'm doing network analysis where i'm trying to analyze which point feature has the closest distance to a highway. I have created the points that I need and I also have the network dataset, but then i ...
0
votes
0answers
144 views

Drawing route on google map using gps device and calculating actual distance?

I Want to draw route on google map with the help of gps device and calculate the actual distance. Can anybody help with this? public GoogleAPIModel GetDistance(string origin, string destination) ...
5
votes
1answer
527 views

How to calculate the average distance among set of points as measure of closeness

I have three series (or tables) of points in PostGIS which I want to compare. I would like to know how "close" each series is when compared to the other two. In other words I would need some measure ...
2
votes
0answers
36 views

Finding distance between two points and land cover in %? [closed]

I am trying to use ArCGIS. I was using digimap to work out a 2km buffer from a sample point, I managed to do that and saved the file. I also saw some land cover types on the left hand side of Digimap ...
10
votes
3answers
40k 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. ...
0
votes
1answer
28 views

Node-line minimum distance: draw the minimum distance point location

I am working with a layer of nodes and a layer of lines. I would need a tool able to find and draw, for some couples node-line, the location of the closest point laying on the line to this node. ...
5
votes
0answers
126 views

Finding density centroids within polygons in PostGIS

I want to find the highest density of OpenStreetMap nodes within a dataset of census geometries. I want to tie the census data to the location of the node which is most central in terms of population. ...
1
vote
1answer
68 views

orthogonal projection of a point onto linestring in PostGIS

I am trying to find the orthogonal projection of a Point (in 4326 SRID) onto a LineString (in 4326). The picture shows the objective. I have tried to use ST_Distance function, but in this case the ...
2
votes
1answer
48 views

Distance to nearest cell with value “x”

I would like to create a raster where each cell equals the distance to the nearest cell >= the value of the source cell plus a constant. In the example below, the input raster has a grid size of 1m x ...
0
votes
2answers
65 views

Generating random points near a location [closed]

In the following solution, why is there a sqrt(u)? Since u is just a random number in [0, 1) doesn't getting the sqrt just give you another smaller random number? To generate points uniformly, ...
0
votes
2answers
40 views

Looking for the “inverse” of the NEAR tool

To calculate wind fetch over water I need to create a point on the shoreline and then calculate the distance to to other shorelines all directions (0 - 360 deg). The shortest distance to another land ...
0
votes
1answer
128 views

ArcGIS WebADF Distance tool

Is there a tool in the WebADF that will let me draw a straight line and calculate the distance between the two points.
0
votes
1answer
147 views

Select points within a buffer in QGIS

In my vector layer I want to select points within a buffer of 12 meters and with an exception (if 'Name' is not "James" than select). Is this possible with "select by expression"?
1
vote
0answers
47 views

Calculate shortest paths for each output area in catchment through road network to a single point (i.e. store)

The title sums it up pretty much. I'm looking to derive trip distributions to a single store using population data and distance within a prescribed distance catchment. I have calculated the catchment ...
2
votes
1answer
34 views

Point-Line shortest distance and corresponding angle using FME

I want to determine the shortest distance and especially the corresponding angle from a point to a polyline. A solution using FME would be strongly preferred.
0
votes
0answers
38 views

Compare euclidean distance with network distance

I have a raster file with euclidean distance. It contains information about how long it takes for a chopper to arrive to certain destinations. I then have a polygon made from a service area with ...
25
votes
6answers
24k views

Trilateration using 3 latitude and longitude points, and 3 distances

I want to find out an unknown target location (latitude and longitude co-ordinates). There are 3 known points (latitude and longitude co-ordinate pairs) and for each point a distance in kilometers to ...
22
votes
6answers
14k views

How to cluster spatial data in R?

I am very new to R. I have bunch of data points with latitude and longitude. I want to use R to cluster them based on their distance. I have already taken a look at this page and tried clustTool ...
5
votes
1answer
56 views

Pacific-wide Projection for distance?

I have a data set of ~3500 points located across the Pacific Ocean, and am looking to measure the distance from each point to it's nearest coastline to identify the "host" country. I had originally ...
2
votes
1answer
31 views

Finding distance of a building from road junction

I have a peculiar problem which i cannot think of way to solve. I need to find distance of a building from the nearest road junction. This would include distance to the nearest road and how far is ...
0
votes
0answers
68 views

How to calculate multiple travel times using gmapsdistance?

I am trying to use gmapsdistance on R to calculate multiple transit times from Google Maps. I have a Google API key and can generate transit travel times for one origin and one destination with the ...
2
votes
2answers
261 views

Shapely Distance different from Geopy/Haversine

I am running a specific analysis where we use shapely to create buffers around points (store locations) and then check if other points (user locations) are present within that buffer value. When i ...