Questions tagged [distance]

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

(http://en.wikipedia.org/wiki/Distance)

More specifically, a "measure of separation" is usually considered a distance when it satisfies three axiomatic properties:

  1. All distances are non-negative. The distance can be zero if and only if it is measured between a location and itself.

  2. Distances are symmetric: the distance between A and B is the distance between B and A.

  3. Distances satisfy the triangle inequality: the distance between A and C can never exceed the sum of the distances from A to B and from B to C. In other words, the length of the path ABC can never be less than the actual distance from A to C.

Satisfying these criteria can be critical for some algorithms, such as certain clustering procedures. On occasion these criteria can be relaxed, especially that of symmetry. For example, shortest distances within cities having one-way streets may change when the roles of origin and destination are reversed.

1583 questions
5
votes
2 answers

How to create a point along a line given a distance from another point

I'm trying to figure out a point(D) on B-C that is a specific distance from A. I really don't have any idea on how to proceed with the ellipsoidal math so I figured I'd ask here. How would I figure out the longitude, latitude of D which is…
Phil
  • 53
  • 5
5
votes
1 answer

How to compute the distance between centroids and polygons?

Suppose I have an Excel spreadsheet with the latitude and longitude of the centroid of every county in the U.S. I want to know the shortest distance from each county to any part of Oklahoma (presumably, somewhere along the border). I then want…
J G
  • 51
  • 4
4
votes
1 answer

Calculate coordinate ( lat / long ) with another coordinate and distance

I already have a formula that can calculate the distance between 2 geographic coordinates: public function getGeoDistance(Coordinate $geoCoord1,Coordinate $geoCoord2){ if(is_object($geoCoord1) && is_object($geoCoord2)){ $aR =…
Shlomi
  • 267
  • 4
  • 6
4
votes
2 answers

Test case for geo-distance implementation?

I wrote a method, based on this presentation, that filters points based on their proximity to a target point. I would like to write a few test case. What would be good test cases for this method? // The method returns all points in the database that…
ripper234
  • 141
  • 4
2
votes
2 answers

normalizing Haversine distance

I need to normalize the Haversine distance. What is the maximum Haversine distance? The Earth circumference I guess? How much is it?
aneuryzm
  • 489
  • 1
  • 4
  • 5
2
votes
1 answer

Asymmetric cost distance

I am interested in calculating the minimum distance of a canal necessary to irrigate any given point in a map. The problem is that the cost map would have to be asymmetric since water can flow down a slope but not up. Is there any way of modifying…
Andrea
  • 29
  • 3
2
votes
1 answer

Over how large of an area can I assume the Earth is flat?

I'm making some calculations between lat/lon coordinates in a neighborhood. I'm running this analysis as if the Earth were flat because the planet's curvature doesn't change my calculations over the mile(ish) that I'm measuring. How large of a…
2
votes
0 answers

How to calculate distance from point to polygon with a time frame?

Using the Near tool, I knew that I can just calculate the distance of each house to the nearest fire. However, I only want to keep fires that happened in the past 7 years for each house. For example, I have fire data from 1950 to 2013, a house was…
chelsea ma
  • 21
  • 1
1
vote
0 answers

Determining distance between two point locations specified in degrees, minutes and decimal seconds?

Without using GIS software, how can I determine how far it is from 20°01'12.07" N -75°47'53.57" W to 20°01'15.28" N -75°47'46.02" W, which are two point locations (historical battles) specified in degrees, minutes and decimal seconds? Point A:…
1
vote
0 answers

Finding loneliest place on earth?

I would like to travel to the loneliest place on earth. I define it as being the farthest from any human settlement. The place has to be on the land and not in the sea. I tried to google, but couldn't find any information on how to calculate it.
1
vote
0 answers

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 compare my point with the points of a state polygon,…
facumedica
  • 111
  • 2
0
votes
1 answer

Distance from line to point less than

I have two layers of data: a line layer containing information about roads (including a column for the type of road, such as "A" or "B") and a point layer containing information about settlements (including columns for the name of the settlement and…
Aurora
  • 21
  • 1
0
votes
1 answer

Criterion for measuring distance between group of points to origin

I wonder if is there any criteria to represent the distance of a group of points (in 2D space) to origin? A simple criteria is the mean of distance of each point. But as can be seen in the picture, this criteria cannot capture the pattern of…
0
votes
1 answer

Why is my Points Distance result a decimal instead of miles

I have a bunch of points representing residential addresses of employees and two points representing office buildings. When I use the points distance function, the distance comes up as a decimal and not as the correct mile distance. Any ideas why…
-1
votes
1 answer

Measuring distance along a linear shapefile (if possible, not with with command lines)

I have already asked this but, possibly, I had not well described the issue. I would need to simply measure the distance in meters along the black linear shapefile (they are transects that start from the yellow shapefile of the coastline and…
dandelion
  • 71
  • 5
1
2