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

1
vote
1answer
19 views

Distance between locations confilct?

Occasionally experimenting in arcmap with openstreetmaps basemap and in google maps i noticed something strange. I measure the distance of 2 locations in google maps (screenshot 1) and on another ...
0
votes
1answer
194 views

Get CartoDB query by distance to work

Has anyone tried this tutorial: Query by distance ? This is a copy of the final code which they use for the map: <html> <head> <link rel="stylesheet" ...
3
votes
2answers
45 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
920 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
11 views

QGIS distance matrix projection and alternative output format [on hold]

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 ...
3
votes
3answers
381 views

Identifying the side of a point from the closest polyline in ArcMap 10.0

I have a set of polylines (a network of streams and rivers) with information on the left and right side of the streams on riparian structure. I also have locations (points) of either side of the ...
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
197 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 ...
14
votes
7answers
8k 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 ...
3
votes
2answers
20 views

Finding the distance between points in two different layers along a route in ArcMap 10.3

I need to find the distance between points in separate layers along a stream network. I have source sites for macro-invertebrates and sites where they are lacking. I need to find the distance between ...
1
vote
1answer
461 views

Query all Object within n kilometer Radius with Hibernate Spatial?

I use hibernate spatial attach a geolocation to a car. My card domain class looks like this: import com.vividsolutions.jts.geom.Point class Card { String name Point location } My program is ...
0
votes
0answers
16 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
33 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 ...
0
votes
1answer
218 views

How to measure distance between two coordinate pairs taken from NMEA file?

In order to measure momentary speed, first I need to measure the distance between two pairs of coordinates. That's where my lack of knowledge stops me. I have example data in NMEA format: ...
2
votes
2answers
35 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 ...
1
vote
0answers
26 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
718 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
50 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
48 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
40 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 ...
1
vote
1answer
394 views

How to convert distance in meters(EPSG:28406) to EPSG:900913 with OpenLayers?

For point I use OpenLayers and transform(): numZona = Math.ceil(parseFloat(lon)/6)); Proj4js.defs["EPSG:28406"] = '+proj=tmerc +lat_0=0 +lon_0='(parseInt(numZona)*6-3)+' +k=1.000000 ...
1
vote
1answer
511 views

How to calculate accurate distances in Openlayers 3?

I'm calculating distance in OpenLayers 3 (3.9.0). I've got a function included in my project for measuring line/area features, basically lifted from the OpenLayers Examples. I'm using ...
2
votes
1answer
39 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. ...
3
votes
2answers
44 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
246 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 ...
1
vote
1answer
216 views

Find the area of a map (Xkm x Ykm) from the left & right longitude and latitude

How can the area of a map from OpenStreetMap be determined in the form of Xkm x Ykm, given the following information: Left Longitude = 103.554879 Right Longitude = 103.740497 Top Latitude ...
0
votes
1answer
33 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
717 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
20 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
63 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 ...
3
votes
0answers
23 views

How to calculate the distance (difference?) between two reigons

I am building a machine learning system which predicts the location of tweets as a bounding box (using the google maps API among other things). Since the twitter API also supplies a bounding box, I am ...
1
vote
0answers
20 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
41 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 ...
5
votes
1answer
1k views

Calculating distance in WGS84 (MySQL and Geoserver)

Here is the environment in which I work: An application using geo-referenced data Database MySQL 5.5, storing georeferenced points A Geoserver server, connected to the MySQL database Here is the ...
1
vote
2answers
27 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
4k 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
58 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
87 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
488 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
38k 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
24 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. ...
7
votes
0answers
114 views

Given two lat/longs, how can I tell if they are within 1 mile of each other?

I'm trying to implement a very efficient check to see whether two points are within a mile of each other, or not. My current approach is to compute the Haversine distance, and then check to see if ...
5
votes
0answers
98 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
62 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 ...