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

2
votes
0answers
11 views

FME - calculating distance to points along a line

I am new to FME, and trying to get my head around what should be pretty straightforward issues, but I find myself going around in circles Basically I want to determine the distance (chainage) to a ...
3
votes
2answers
104 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 ...
0
votes
3answers
27 views

Calculate distance using 2 sets of lat/long values in the same record

I have a point layer with over 90K records in it. For each record I have lat/long field for incident, and lat/long for engine location. Is there a way to find the distance between Incident point and ...
6
votes
3answers
4k views

Splitting lines automatically at specific distances using ArcGIS Desktop?

I have a set of polylines which I need to split at varying distances from their starting points. In general, I'm looking for a something similar to the SPLIT function within the editor tool. There ...
5
votes
1answer
604 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
0answers
6 views

GeoDjango order_by('distance') not working as expected?

Using GeoDjango, I am trying to sort a list of users based on the distance from a point. It does generate a list, but its not ordered by distance, though I specify that in my query. This is the query ...
1
vote
1answer
31 views

Calculating distance between two sets of Decimal Degree coordinates?

I have coordinates in decimal degrees e.g: point A:Lat,Lng(5.317101667,-2.023303333) and point B:lat,lng(5.317093333,-2.023318333). The altitude in Meters at Point A is 11m and the altitude and Point ...
0
votes
0answers
24 views

Devising measure of vertical distance from spring line?

I am building a model (using Logistic Regression) to explore the relation between a binary categorical dependent variable (parcels agricultural production quality) and several predictors, among which ...
2
votes
1answer
37 views

Calculating distances between consecutive points along rivers (polygon) using ArcGIS Desktop?

I have radio-tracking locations of semi-aquatic mammals. Now, I would like to calculate the distance between the consecutive locations using the river as the animals would swim (opposite to as the ...
3
votes
1answer
68 views

Distance from rivers, taking into account terrain elevation

I am interested in building a raster of the distance from rivers in a territory under study. I have digitized the course of the rivers in ArcGis 10.1. I have used the 'Euclidean Distance' tool to ...
0
votes
0answers
16 views

Calculate distance between point and linestring, save the distance as table and represent that on QGIS? [duplicate]

I have loaded my data with osm2pgrouting and I have my network with ways (Linestring) and nodes (Point). The problem is : I have a database of doctors addresses (point) and I should calculate the ...
0
votes
0answers
21 views

Euclidean Distance Function performed on unprojected data

I am looking to perform a simple multi-criteria analysis on a data set comprised of two criterion: occurence of wildfires and road accessibility. First, the project CRS was enabled with "on the fly" ...
2
votes
1answer
39 views

Calculate distance between point and linestring and how to represent that on QGIS?

I have loaded my data with osm2pgrouting and I have my network with ways (Linestring) and nodes (Point). The problem is : I have a database of doctors addresses (point) and I should calculate the ...
4
votes
2answers
227 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 ...
1
vote
1answer
94 views

Why do classic google maps and the modern google maps show different types of driving times?

As I am currently working on a project, where driving times are quit important, I've noticed that classic google maps and modern google maps show different types of car driving times. While the ...
4
votes
1answer
113 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
120 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 ...
2
votes
1answer
121 views

using PostGIS to calculate distance of a route over a large area

I'm new to PostGIS and looking to measure the distance of the Pacific Crest Trail which spans western North America from Canada to Mexico. I have a data set containing the lat lon and dates from GPX ...
0
votes
2answers
23 views

Using grayed out distance/direction tool in ArcGIS for Desktop?

I have a set of five points (all with specific latitudes and longitudes) and I want to create a set of points which will be about 80 kms from the first set. I understand that I can use the ...
0
votes
1answer
24 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" ...
1
vote
1answer
283 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 ...
1
vote
2answers
141 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 ...
2
votes
0answers
45 views

Shortest distance from polygon centroids to a line in QGIS

To get the distance of each polygon centroid from a line, I have tried the Distance to nearest hub algorithm from the Processing Toolbox. The distances I got from the algorithm did not seem correct, ...
1
vote
1answer
44 views

Calculating distance of polygons from coastline using ArcGIS for Desktop?

I have a series of polygons representing parcels of land. I would like to calculate the distance of each polygon from the coastline. I also have a polygon of the entire region of interest, i.e. an ...
1
vote
1answer
34 views

Distance Between Two Points Same Value Different Feature Classes

I have two point feature classes - one is the original data and one is the data after editing. I want to know how far each of the points moved in the editing process. How do I compare all of the ...
0
votes
1answer
511 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 ...
10
votes
5answers
8k 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 ...
3
votes
1answer
144 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 ...
1
vote
2answers
125 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
2answers
46 views

How to set a coordinate transformation GRID

Does anyone know how to set a coordinate transformation in qgis so I can measure the distances in meters or kilometers? If anyone has a clue, would be just great. Thanks!
0
votes
1answer
104 views

I nead to find the nearest places based on latitude/longitude points

I have a java aplication backed by a mysql database which contains events with locations (latitude/longitude), the location data is saved as POINT data type. I nead to find the nearest events in some ...
1
vote
1answer
82 views

Calculated distance doesn't match Google Earth

I have a google earth route that measures 190.1km in Google Earth. I then pulled down the .kml file, extracted the points and measured them using Vincenty's formula (ellipsoid earth) and got 190.2. ...
1
vote
2answers
87 views

Calculating distances between points two feature datasets

I will do my best to explain my problem. I have two feature datasets. One set has about 100 points that are "city centers." The other dataset has points for each census tract in each of these 100 ...
0
votes
1answer
47 views

Zoom variable or pixel distance

I have query by distance working in a framework that generates a list of features within a fixed distance of a clicked feature. I would like to make the queried distance variable based on either: ...
1
vote
1answer
161 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 ...
0
votes
0answers
22 views

Asp code for distance in SQL sever

I've looked around but I can't find the answer anywhere and im getting kinda frustrated now. I'm using sql server and what im trying to do is to find apartments within a 0.5km radious of a said ...
1
vote
2answers
39 views

Spherical law of cosine what does the 'a' represent?

I want to use the spherical law of cosine formula, θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ ), to calculate distances between coordinates, but, I cannot for the life ...
3
votes
1answer
307 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 ...
2
votes
1answer
413 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 ...
0
votes
1answer
79 views

Distance-direction computation of lines with exactly/more than two nodes?

A distance and direction tutorial provided as an Answer at How to add Direction and Distance to attribute table? uses: xat (0 ), xat (-1 ) and yat (0 ), yat (-1) for start and end points of lines; ...
1
vote
0answers
18 views

Find coordinate of point on the boundary of a circle given a latitude/longitude and radius [duplicate]

I understand how to use the haversine formula to compute the distance between two points on the earth. However, I would like to answer a similar, albeit different question. How can I compute the ...
1
vote
2answers
48 views

Calculating Distances between Field polygons via Road polygons using ArcGIS for Desktop?

I have two polygons layers, one (grey) is Roads, other (blue) is Fields. Can I calculate distances between Fields (by field unique ID number) using Roads layer as distance measurement? What tools or ...
0
votes
1answer
183 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 using ...
1
vote
1answer
26 views

Is there a tool in arctoolbox for IDistanceOp.CostPathasPolyline?

Almost all the methods in IDistanceOp have a corresponding tool in the Distance Toolset Spatial Analyst Toolbox. However, I can't find anything in the toolbox for IDistanceOp.CostPathasPolyline. ...
0
votes
0answers
24 views

Find square with latitude and longitude for given lat and lng and distance [duplicate]

I have the coordinates of some point, lets say lat and lng, I want to find the latitude and longitude of top left and bottom right corners of the square, whose sides are located k kilometers from the ...
10
votes
5answers
13k views

Finding distance of point along polyline?

We need to find the distance of a series of point along a given polyline. We have a polyline dataset repsenting rivers in a catchment, broken up into river reaches (FID 1 through 35 for example). We ...
1
vote
1answer
74 views

Creating Longitude and Latitude Lines in Google Maps

I'm working on an independent high school project where i'm trying to build a simple differential equation model for diffusion. I'm trying to overlay the model on top of a map to visualize spread, so ...
0
votes
2answers
49 views

Joining two polygon layers based on distance?

I'm new to GIS so this question may be an obvious one. I have one polygon layer of urban land use and another polygon layer of swamps. How do I join the two layers so that I get a column in the ...
0
votes
0answers
18 views

avg distance within 2 geometry tables

I have 2 geometry tables: "f" with only one data and "s" with 100 data I want to find the avg distance of s to f these are the commands: CREATE TABLE f id int4 primary key not null , name ...
0
votes
0answers
31 views

Find nearby cities by a driving distance radius

I'm studying GIS services to solve one specific need: Given x/y coordinates of one city, I want a JSON result that lists only cities (not facilities) that are nearby the specified city, within a ...