# Tagged Questions

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

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 ...
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 ...
41 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 ...
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 ...
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 ...
184 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) ...
543 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 ...
37 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 ...
42k 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. ...
31 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. ...
128 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. ...
73 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 ...
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 ...
77 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, ...
41 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 ...
128 views

Is there a tool in the WebADF that will let me draw a straight line and calculate the distance between the two points.
158 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"?
51 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 ...
43 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.
41 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 ...
25k 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 ...
15k 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 ...
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 ...
32 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 ...
86 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 ...
289 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 ...
82 views

### Measure distance between points along a line in QGIS

I have a road network and different points connected to the roads. I would like to measure the distance between several points along the roads. Basically I want to do the same like the road graph ...
23 views

### Computing intersection of distance circles around fixed points [duplicate]

(to simplify calculations, I assume a spherical earth. All distances are assumed measured "as the crow flies") Suppose we have the lon/lat coordinates for two points (p_1,p_2) less than Nkm apart. ...
5k views

### Geodjango- get the distance between 2 points

What I want to do is quite simple, I have 2 locations defined by gps coords, lat / long like returned by google maps: http://gmaps-samples.googlecode.com/svn/trunk/geocoder/singlegeocode.html I need ...
5k views

### What is the approximate error of the Pythagorean Theorem vs. Haversine Formula in measuring distances on a sphere at various scales?

Many people when first trying to calculate distances between two longitude / latitude pairs ask if Pythagorean theorem works as an appropriate distance function. Most often people answer "no, the ...
149 views

### How big does a circular geofence need to be for the curvature of the earth to matter? [duplicate]

I'm working on adding geofences to a mobile application. I know the proper way of calculating distance between two points on a sphere is using the great-circle or Haversine formula. I don't know if ...
82 views

### Get distances between boundaries from an SpatialPolygon and raster pixels

I am trying to calculate the distance from several pixels of a raster to a boundary of some polygons in R as it is showed in the image. I have two problems: How to correctly define a boundary from ...
216 views

### calculate distance between points crossing the antimeridian

How can I calculate the distance between two points (lon/lat) if any of the points exceeds the antimeridian (+-180 longitude)? Im using the distVincentyEllipsoid {geosphere} to calculate the shortest ...
71 views

### Hive GIS ST_GeodesicLengthWGS84 not returning expected distance

I am trying to find the distance between two points (in meters and not degrees) using GIS Tools for Hadoop by ESRI. The ST_Length provides distance in degrees and hence I used the ...
53 views

### cells w/in search window GRASS GIS

I am trying to find all cells that are a certain distance and within a certain window from a cell of interest. For example: I want all cells in a distance of 10m within a search window of 10 - 40 ...
268 views

### Measure distance between vertices of polylines in QGIS for Desktop

I have this dataset of coordinates of electric lines in the form of vector polylines as shown in the image below, and I need to measure the distance between the first and last vertex of each line and ...
77 views

### How to measure the Speed between two Waypoints?

I'm totally new to QGIS or any GIS. I need to analyze a lot of Waypoints to get the average speed of the people walking between them. (It's for analyzing an experiment I made) therefore I neet do ...
29 views

### OpenLayers measurment path in 31700 projection

I have this code who works great for distance measurment on 900913 projection with 4326 display projection (bing maps + layer WMS): measureDistanceControl = new OpenLayers.Control.Measure( ...
87 views

### Calculate distance from a point to the border of polygon (US state)

I have a point, and I want to know if it is nearer than 100 miles from some US State border (California for example). I assume that I would need to use this: US Regions State Boundaries. But if I ...
225 views

### Measure distances between specific features in QGIS for Desktop

I'm completely new using PyQGIS and developing plugins. Currently I have a layer with the X and Y coordinates of electric distribution poles, where each pole is a feature. What I need to do is ...
29 views

### Incorrect results returning from st_distance_spheroid query

Given a routable network table constructed by completing the guide at http://anitagraser.com/2011/02/07/a-beginners-guide-to-pgrouting/, how can I get an accurate list of all roads that are within a ...
16k views

### Why is the 'straight line' path across continent so curved?

This is the result of mapping the straight line path from a point in US to Poland using Distance Measurement Tool. Also, planes from Asia to US would travel almost over North Pole. Why is the path ...
45 views

### How many query points fall within distance X to a set of LineString

I have a set of 10 query points and I want to know how many of them are with distance within at most 4 meters of any LineString in a given table. Note that if a point is within 4 meter distance to ...
18k views

### For every point, distance to nearest polygon of type X?

In ArcGIS Desktop, can you calculate as an attribute value the distance to the nearest polygon of type X? Assume we have a point layer of wildlife observations and we want to know how far each of ...
28 views

### Using “snap pour point” to find a watershed of specific area starting from a point

I am trying to find everything downhill of a certain point in order to create a watershed of a specific area. For example, say I have a point at (x,y), and I'm interested in creating a watershed ...
42 views

### Calculating distance between points from table of UIDs [ArcMap]

I have a .dbf file containing pairs of point feature Unique Identifiers (UIDs), and need to calculate the straight-line distance between each of these pairs. The XY coordinates of the individual ...
28 views

### EPSG:4978 or others for Distance

Usually when I have been calculating distances I project to the system which has the tightest crop around my points e.g. for the UK #http://epsg.io/27700-5339 (accuracy: 1.0m) uk = '+proj=tmerc +...
28 views

### Build network based on shortest distance between points

Is there a way to build a network based on the shortest distances between each point of a point layer. I have occurrence data from species (as points) and want to estimate whether there are one or ...