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

0
votes
1answer
247 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
140 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 ...
1
vote
1answer
43 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
51 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 ...
4
votes
2answers
346 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 ...
3
votes
2answers
35 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
71 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
48 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
35 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) ...
4
votes
2answers
821 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
87 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
204 views

How to approximate point to segment distance on sphere?

I would like to approximate the distance of a line segment from a reference point on the map (coordinates are gives as lat/lon). In the Cartesian coordinate system I would simply find the closest ...
2
votes
1answer
157 views

GeoDjango: read geometry column in geography field

I have a Django application that needs to work with an existent PostGIS database, apart from its own database. I've configured multidatabase support, created a database router, created models for the ...
5
votes
1answer
533 views

calculate {minimal} distance between polygons in R

I have calculated the surface area of species distributions (merging polygons from shapefiles), but since this area can be comprised of quite distanced polygons, I would like to calculate some measure ...
0
votes
1answer
28 views

Determine when a route enters and leaves a polygon

I have all of the segments of a route from White Horse, YK to Miami, FL. Now I want to determine how many miles I travel in each State / Province. I have Polygons for each State and have been able ...
2
votes
1answer
180 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 ...
4
votes
2answers
1k views

What formula is used for distance between 2 points in Google Maps?

What formula is used by Google Maps for calculating the shortest distance between 2 points (having their Lat, Lng coordinates)? Is it purely based on Haversine? Or is it something different? Is there ...
1
vote
1answer
303 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 ...
1
vote
1answer
445 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
0answers
28 views

QGIS - identifying polygons and distances along the edges of a superset

I have two layers of polygons. layer A is a superset of dissolved polygons from my other layer, B. Using QGIS, how can I determine polygons in B, that lie along the edges of A? There would be some ...
2
votes
1answer
525 views

ArcGIS giving measured distances and the scalebar incorrectly

I am currently using ArcGIS 10.1 and am struggling to be able to measure distance or set a scale bar correctly. Its currently giving me absurd results orders of magnitudes to small (0.5m etc). All my ...
1
vote
1answer
408 views

Creating Random Points in ArcGIS 10.1

I would like to create random points across my study area (which is a DEM raster) using the Feature Class> Create Random Points. However, I need to select/copy/move/delete these points and re-arrange ...
0
votes
0answers
108 views

Calculating distances between boundaries of polygons with Python

I have two sets of shape-files which have to be worked on within a Python Script. Those two Shape Files might differ from each other (same thematic content, but 2 different epochs). If there occurred ...
4
votes
1answer
311 views

Proximity search: ST_DWithin vs ST_Distance?

I have records stored in a table with latitude/longitude coordinates stored in a geometry field. I want to find all records nearby a user supplied reference point. Note "nearby" probably means less ...
1
vote
2answers
1k views

Calculate distance in kilometers between two points

I have a few questions regarding the calculation of the distance between 2 postal codes. Take a look at the following code. ### # load the different packages we need ### require("rgdal") ...
-1
votes
1answer
112 views

Calculation of Euclidean Distance [closed]

What is the best way to calculate the euclidean distance between the elements of two point vector layers, without rasterising the layers? Thanks
0
votes
1answer
62 views

mile distance around each feature ArcGIS

I have a school layer information and a route map layer. In ArcMap, how can I show the x mile distance around each school base on route information. I did some research and I found different ...
0
votes
1answer
115 views

calculate least cost pathways for a region and create distance rasters to rivers [duplicate]

How do you calculate all the least cost pathways that exists for a region? I would like the output map to display all routes (and was wondering whether this can be done in one set of operations). I ...
3
votes
2answers
179 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 ...
3
votes
1answer
25 views

Equidistant projection for northern Delaware

I'm just getting started on a long-term project involving northern Delaware. Most of my distances will use great circle distances from the lat/lon, but for a few applications I'll wind up using ...
5
votes
1answer
140 views

Optimize the locations of 2 additional restrooms on a trail (ArcGIS 10.2)

In the image below, the line is a trail and the point is an existing restroom. I would like to find the rough locations of 2 additional restrooms that minimize the maximum distance along trail from ...
2
votes
2answers
331 views

Variation of algorithms to find point from another point with bearing and distance

There are several algorithms to calculate distance between two latitude/longitude points. Haversine Hubeny Lambert-Andoyer Vincenty's formulae for inverse problem But there are not so many ...
0
votes
1answer
152 views

Manipulating distances in python. Problem with ShapeLength

I have a question more than a problem. I'm getting the distance of a line using python with arcpy.da.SearchCursor or FeatureClassToNumPyArray. The result I get is a double. Example: ...
2
votes
1answer
112 views

How to find least-cost paths including tunnels (where slopes are too steep)?

I'm currently working on a road path finding project for a motorway in ArcGIS 10. One criterion is obviously the slope angle. What I would like to do is to create a new cost surface which finds ...
2
votes
0answers
60 views

coordinate system for calculating distance at the nation scale

I want to use ArcGIS 10.1 to calculate the straight (euclidean) distances from zip codes to their nearest city centers in about 300 U.S. metropolitan areas. I have two point shpfiles: one includes the ...
2
votes
1answer
466 views

PostGIS: Calculate the length of just the portion of linestring that intersect with a polygon

I want to calculate the portion of the linestring that lies within the limits of a polygon. Better with an image What is the length of the portion of linestring within Province A? and within ...
2
votes
2answers
602 views

Postgis, get the points that are x meters near another point, in meters

I'm trying to find the points within a certain distance, in meters, from another point. I'm using the function ST_Buffer, but I don't get how to express the distance in meters. I'm trying with ...
4
votes
2answers
305 views

How to calculate the azimuth of a line of a multilinestring in PostGIS?

I have two spatially enabled tables in PostgreSQL with a geometry in each: First table is with POINT type, second is with MULTILINESTRING. I need to calculate the azimuth of the LINESTRING part of a ...
4
votes
1answer
138 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
4answers
998 views

Return all results within a 30km radius of a specific lat/long point?

I have a table with a column the_geom which contains data similar to: ...
3
votes
2answers
153 views

Calculate distance in QGIS, wrong geographic projection?

I'm trying to do the following: I have 2 shapefiles, one containing all the public schools in NY, another one containing the hotspots in NY (both in points form). Now what I'm trying to do is ...
0
votes
2answers
405 views

Find longitude for point between two coordinates with pyproj?

I've written a function to get the longitude of a point of known latitude between two known points (might not be working correctly yet), but I feel like there must be a better way of using pyproj to ...
3
votes
3answers
259 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 ...
2
votes
1answer
75 views

Road Miles Calculation without Google Maps

We have two ZIP codes we want to calculate the road mile difference. Google maps states you cannot use their API if you do not show a map. Is there another service that provides this type of ...
0
votes
1answer
60 views

QGIS proximity raster with extent beyond original coverage?

I need a raster coverage of distances from points outside the geographic region of interest, and am having trouble doing this with QGIS. Questions like this one (Calculating distance to points in ...
3
votes
3answers
806 views

How can I calculate the distances between my points in sequence automatically?

I have a rookie problem (again). I am trying to measure distances between points and writing the calculated measure between these points in the attribute table. The points represents a vehicle's ...
0
votes
1answer
49 views

Can distance be calculated to a destination feature based on an attribute in the source?

All, Is it possible to specify which destination point to calculate distance to based on an attribute in the source? STDistance will give me the distance each student (point) is to their closest ...
3
votes
0answers
162 views

converting a distance to a map distance

I have a point and a polyline. I need to find the perpendicular distance between each segment of the polyline and the point. By each segemnt of the polyline I mean that, each polyline may contain more ...
1
vote
1answer
116 views

Distance between two latitudes [duplicate]

I need to know the distance in feet between the coordinates N34-00.000 and N34-00.001 (Degrees, minutes and thousanths of minutes) I computed approx 6 feet but am not confidant in my math skills.
4
votes
1answer
393 views

Calculate distance to median point for a group of points in ArcGIS 10.1

I have a shapefile called "household_points" of ~2,000 points, which are divided into about 100 sites. The shapefile has a field in the attribute table called "SNAME" and in the field each point is ...