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
1answer
283 views

How can I make a Postgres/PostGIS ST_Distance_sphere query more efficient?

Within Postgres/PostGIS I have written an SQL query to get the closest distance for each element within a point coordinate table from a polyline table. The query comes back and works correctly, but ...
0
votes
0answers
23 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 ...
1
vote
2answers
50 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 ...
3
votes
3answers
216 views

Why is sum of st_length() of segments 20% too big?

I'm running a query to return the total length of some bike paths, from OpenStreetMap. Compared to the known actual length of these paths, they're all a bit too big - something like 10-30%. I know it ...
5
votes
1answer
558 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 ...
0
votes
1answer
106 views

How to set the length of a line using openlayers

I'm trying edit a polygon by changing the length of some lines by code. Found this method to calculate based on the bearing. But I didn't find anything on how to calculate the bearing, before I start ...
1
vote
2answers
76 views

Draw line between points from multiple datasets

I have 2 point datasets and want a tool or script to draw a line between all points in one dataset to all the points in the 2nd dataset. Is it possible? I have tried ESRI "Point Distance" and ...
1
vote
1answer
42 views

How to convert distance into latitude + longitude [duplicate]

I have start point (latitude) I know direction, lets say strictly north, and I want to calculate latitude which is 100 meters above the start point. The same for longitude. I believe there should be ...
1
vote
1answer
30 views

Calculating distance between borders when one polygon inside another polygon?

I am brand new to ArcGIS and having some trouble. I would like to calculate the distances between the border of one polygon to another polygon. However, these polygons overlap. Thus when I use the ...
3
votes
1answer
68 views

Toblers's Hiking Equation and Slope Dilemma

I'm trying to use Toblers's Hiking equation to determine economical backgrounds of some hillforts. The equation is anisotropic which means that the speed of movement that it calculates differs whether ...
2
votes
1answer
291 views

Create raster distance around a single point feature class

Okay, so I'm relatively new to ArcMap and I'm trying to use the Fuzzy membership for suitability test. I have a single point feature class that I want to use for this analysis. I know that in order to ...
1
vote
1answer
35 views

ArcGIS spatial join - WITHIN A DISTANCE including distance

I am applying a spatial join in ArcGIS between points (target features) and lines (join features). I want to have a 1-to-many join, so I use the match option 'within a distance'. So far so good. The ...
4
votes
1answer
42 views

Calculating “travelled distance” of a GPS track without including “stops”

I have a set of GPS tracks from a cycling event and I want to correlate their distance along the route. Problem is: when a rider stops, generally by entering a covered place, GPS keeps logging (low ...
0
votes
1answer
745 views

Radius of Curvature Python/Arc, how access x,y coordinates

I have a polyline in ArcMap 10 and I am able to script the length of the line in Python using this bit of code: #Calculate Radius of Curvature #try: # Import system modules import sys, string, os, ...
1
vote
0answers
31 views

Distance raster from one raster value (A) to another value (B) while ignoring similar values [closed]

I have two different patch types: A and B I want to get a distance raster from all A types to the closest Type B patch but I don't want the raster to calculate from A to A or B to B. Just A to B. ...
4
votes
2answers
4k views

How to use Distance Matrix tool in QGIS?

I have a point data set. Now there are cluster of points based on a field. So I take out one such cluster which has points with same field.I want to find distance between all the points in cluster and ...
3
votes
2answers
135 views

clustering points in postgresql to create contour map

UPDATE: To try to make this a little more simple, is it possible to create a query which selects a group of points such that each point in the group is at most X units away from at least one other ...
8
votes
3answers
307 views

New to ArcGIS and want to compute distance between two points “as the fish swims”

We have a layer named Hydrography which is the water area for a given assignment. I have a station point and a target point. I need to compute the distance between those two points but inside of the ...
0
votes
1answer
79 views

QGIS spatial join, calculating distance from polygon to point layer

I am trying to perform a kind of 'spatial join' in Arcgis, joining to a polygon layer atributes of the closest feature of a point layer, as well as distance. But 'spatial query' doesn't offer an ...
4
votes
1answer
382 views

Shortest distance from point to line (big dataset)

What is the best method to calculate the distance from the nearest road for a series of address points in QGIS, having a very big dataset? (QGIS 2.0.1, Win XP) I read the answers to previous similar ...
2
votes
2answers
88 views

Determining closest representation of polygon as collection of points+radii

Have a bit of a tough question, which I realize there may not be an easy solution to. Figured what better place to ask. I'm attempting to transform a polygon into a series of arbitrary points with ...
4
votes
1answer
70 views

MMqgis (hub distance) error in distance

So I am trying to calculate the distance of several points to a coastline, using hub distance (mmqgis plugin) in Qgis Dufour 2.01. I am using the default coordinate system (WGS84) and I, already, ...
0
votes
1answer
114 views

How to calculate driving distance/time between two points

I am doing some analysis for our fire rescue department where we are comparing actual response times to fires vs predicted response times. The actual response time analysis is straight forward as I ...
0
votes
1answer
483 views

Specifying a rectangle as two latitude/longitude pairs, one for center and one for size

I am trying to make sense of the Google S2 library for spherical math (it works like this). I need to get a rectangle for searching for nearby entities in a database, based on a point and a distance ...
0
votes
1answer
34 views

coordinate pairs distances

I am new to GIS and have the following question. My shapefile has several coordinate pairs (x1, y1, x2, y2) and I would like to calculate the distances between the points within one go. Any ...
3
votes
1answer
106 views

How to calculate the distance of sites to riverways

How do you calculate the distance of about 10 sites scattered across a region to bodies of water (rivers and lakes) using ArcGIS 10.1? I have the lat/lon coordinates of the 10 sites as a point ...
0
votes
1answer
35 views

Calculating distance between coordinates [duplicate]

I would like to calculate the distances between a list of coordinates (classic GPS coord.). From coordinate A to B from B to C from C to D and so on, and so forth. Is there any program, or website, ...
0
votes
1answer
18 views

Find Distance within each Raster contiguous cell block

I was asked to find for each Individual Contiguous Forest Block the distances INSIDE of each where it would be the farthest (aka the most isolated) from each forest cell block's respective edges. I ...
3
votes
2answers
157 views

Excel Distance Calculation

Is there a way (preferably in Excel) to calculate the distance (based on lat, lon) between two lists of points? My end goal would be, for example, to have a list of Starbucks and a list of McDonald's, ...
0
votes
1answer
50 views

Cut polylines at intersections in QGIS (or how many km road for each country)

I want to measure how many km a road stand on each country it intersect (i.e. how many km of the european road "E45" stand on Italy, Austria, Germany, and so on). I have a polyline-shapefile with the ...
2
votes
3answers
1k views

Distance between a line layer and several other line features (arcGIS 9.3 Arcview Licence)

I have a "Drain" line layer (with 150 lines) that I need to calculate the distance from lines to all objects within 120m. I've tried doing a spatial join and its great but I need more than just the ...
1
vote
0answers
21 views

Is there any GRASS command to measure the distance between a point in rastermap and another in vector map?

I have a question about WinGRASS 6.4.3. Is there any GRASS script command to measure the distance between a point in rastermap and another in vector map? I have a raster map and a vector map. Raster ...
0
votes
1answer
32 views

Adding Distance (KM and Miles) to a Map using ArcGIS 10.1

Using ArcGIS 10.1, how do you add and show the distance in mile / km markings alongside the marked trails(KM and miles) while using the aforementioned 10.1?
3
votes
2answers
57 views

Distance calculation PostGIS

I've got the following task to solve: I've got two tables; one contains buildings (houses) as points and the other contains train-stations (at_bhf_classified) as points. I need to find out the ...
1
vote
1answer
131 views

Calculate distance of points along a route QGIS

I have a line layer and a point layer, I need the distance between the first and the last point measured along the line. How can I do that using QGIS? Do I need to know linear reference? I don't ...
3
votes
1answer
60 views

How to calculate distances between several points along network?

I have several points (bicycle share hubs), and I want to calculate the distance between each of them using a network. I want a CSV/XLS that has three headers: hub_id1, hub_id2, distance. I've ...
0
votes
1answer
85 views

Calculate distance between two Coordinates to use in Variogram calculations in ordinary kriging

i need to calculate distance between two stations in a map in order to calculate empirical variogram in ordinary kriging to interpolate temperature data . calculating distance in kriging done using ...
1
vote
1answer
46 views

Calculate distances between polygon centres in QGIS

Is there a practical way to calculate distances between polygon centroids in QGIS? I have a UK city region map divided into administrative units (1 ward = 1 polygon). I want to represent their ...
8
votes
4answers
7k views

How do I calculate the bounding box for given a distance and latitude/longitude

Hi need to be able to calculate a bounding box or circle for a Given WGS84 latitude and WGS84 longitude, and distance but have no Idea where to start! The distance from the start lat Lon would be 10KM ...
1
vote
1answer
28 views

How to select polygons by distance to a single polygon in another layer?

I have a shapefile A with a group of polygons, lakes. Now I want to select the polygons(lakes) that are within a specific distance to a polygon in a second shapefile, B, with the polygon a city. In ...
1
vote
2answers
38 views

Distance from one point to many polygons

I'm using ArcMap 10.1 and have a shape file of polygons of municipalities. I also have the coordinates of the centroids of the polygons (if I need to use them). I want a column in my attributes table ...
13
votes
4answers
4k views

How to cluster spatial data in R?

I am very new to R, so please bear with me : > 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 ...
2
votes
1answer
2k views

How to find nearest point for each point in current layer?

I have a point layer and want to know the distance of nearest point of current layer for each point in the layer. I found some tools in ArcToolbox about it , but they need two layers for input and ...
3
votes
2answers
28 views

Average Proximity Metric

I'm looking for a metric that gets at average distance to a given feature. For example, for a point in the water, how far, on average, is the land or to what extent is the point surrounded by land. ...
1
vote
1answer
53 views

R: distance from one point to many polygons

OK so I have a spatial polygons data frame, and I have a point of interest. I want to add a row to the SPDF that contains the distance from the centroid of each polygon to this given point. How do I ...
0
votes
1answer
39 views

ArcGIS 10.1 Cost Distance Calculations

I have a study area that is a polygon feature class, and am running the Cost Distance Tool on it in ModelBuilder. However, everytime I run the tool, it only calculates a cost distance and cost ...
0
votes
0answers
23 views

classify lines in shapefile by distance to other lines in same shapefile

I'm using ArcGIS 9.3 (and have XTools Pro). I need to classify each line in a shapefile by how close it is to other lines in the shapefile (ie less than 475 ft, less than 450 ft, less than 425 ft) ...
3
votes
2answers
139 views

What's the difference between vincenty and great circle distance calculations?

Python's geopy package features two distance measurements techniques: Great Circle and Vincenty's formulae. >>> from geopy.distance import great_circle >>> from geopy.distance ...
0
votes
1answer
53 views

lines: distance-direction computation queries

From the distance and direction tutorial below: How to add Direction and Distance to attribute table? that uses: 1 - xat (0 ), xat (-1 ) and yat (0 ), yat (-1) for start and end points of lines; ...
10
votes
4answers
6k views

Calculating Lat/Lng X miles from point

I am wanting to find a latitude and longitude point given a bearing, a distance, and a starting latitude and longitude. This appears to be the opposite of this question (Distance between lat/long ...