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

4
votes
2answers
507 views

ST_Distance is not delivering right results

I want to calculate the distance between lat/lon points. I tried the following queries: Select ST_DISTANCE(ST_GeomFromText('POINT(-73.97923 40.75571)', 4326), ST_GeomFromText('POINT(-73.974509 ...
3
votes
0answers
599 views

Performing a Multicriteria Analysis Using Distance Along a Road Network

There is the possibility that I will be working on a project which will look at thousands of properties in a region and measure their accessibility to different services (schools, parks, hospitals, ...
3
votes
2answers
4k views

Calculating the minimum distance between points and polygons in QGIS

I have two vector layers: one point and one polygon and I want to calculate the minimum distance of each point from the polygons (ie the distance from the closest point of the closest polygon). Is ...
5
votes
2answers
296 views

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 ...
5
votes
1answer
2k views

How do I perform a proximity search with Postgis?

OK, so I downloaded the Geonames database (cities1000) and wrote a small Ruby program to import them into my table (geo_cities). I then added geography column called geog. So after all of that, I ...
8
votes
1answer
250 views

How to automatically reduce polygon size?

I am working with two polygon layers (counties & states) which I will 'intersect' to find which counties are within which states. Due to data inaccuracies I have to change all county polygons and ...
5
votes
5answers
11k views

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

In ArcGIS how might one calculate as an attribute value the distance to the nearest polygon of type X? Say we have a point layer of wildlife observations and we want to know how far each of them is ...
3
votes
1answer
45 views

Does IDistanceOP.EucDistanceFull require a projected coordinate system?

I have designed an implementation of ArcObjects' IDistanceOP.EucDistanceFull. It takes its input as a feature class and converts it to a GeoDataset with which EucDistanceFull can work with. It works ...
4
votes
1answer
362 views

How to access the road graph plugin in python?

I am developing a few scripts in Python for QGIS 1.8 to automate some geo-tasks and one of them would be to calculate the shortest distance from a hospital to each building in a town. I would like to ...
15
votes
3answers
2k views

How do I find the distance between two coordinates in an ellipsoid?

Lets say I have two sets of latitude and longitude. How do I find the distance between the two locations if I assume the earth is a perfect ellipsoid (with an eccentricity of 0.0167)?
5
votes
5answers
2k views

How to calculate distances in a point sequence?

I'm looking for help calculating the distance between a sequence of points that are in a single Shapefile in QGIS. Below is what my data look like and a blank distance column I've added to show how ...
4
votes
3answers
447 views

How to efficiently find points within an elliptical area?

Using PostGIS 2.0.0 I need to filter the results of a function, which returns many POINTs, to find the ones that lie within an elliptical area defined by two points and a distance (all parameters ...
3
votes
1answer
134 views

Get the total distance from a point to the end of a linestring

I have a list of GPS coordinates that make up a bus route: busRoute = [(x1, y1), (x2, y2), ... (xn, yn)] I also have a point that may not be exactly on that route (due to GPS error): ...
1
vote
1answer
870 views

postgis distance calculation between points with lat, long coordinates

Team, I am new to postgis, but a postgres user for quite a while. I would like to compare the geospatial capabilities between postgresql and mongodb. I have the lat.lon, zip code of US locations; ...
1
vote
1answer
137 views

What is the preferable value for setting tolerance for selecting a feature

I know it's really a basic question. But I am really confused about this. For selecting a point feature by mouse click, we need to set a tolerance value to create the envelope. And here is the problem ...
20
votes
3answers
9k views

Why is law of cosines more preferable than haversine when calculating distance between two latitude-longitude points?

In fact, when Sinnott published the haversine formula, computational precision was limited. Nowadays, JavaScript (and most modern computers & languages) use IEEE 754 64-bit ...
3
votes
1answer
237 views

What formula does SQL Server 2008 use in STDistance?

I am analyzing the accuracy of the STDistance function for geographical objects in SQL Server 2008, in order to understand its behaviour better I need to find the underlying formula. Does anyone ...
13
votes
2answers
1k 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 ...
0
votes
1answer
56 views

error in estimate distance?

i do some experiment place two sensor node between them 4 meter as distance. then i get these GPS information: node1: Latitude: 32, 33.255 , Longitude: 36, 0.6632 node2: Latitude: 32, 33.228 , ...
3
votes
1answer
468 views

Pivot a polyline at vertex or distance using ArcObjects C#

I hope you can help me with that one. I'm using ArcObjects with C# trying to rotate only one part of a polyline at a vertex or distance along the polyline. The polyline is zAware and has values at ...
1
vote
1answer
369 views

Accurate and fast nearest neighbour, which distance function should I use and how to it speed up? [duplicate]

I am solving the following problem: I have a map with many points in it and I need to find the nearest point to given location. Each point carries information about it's latitude and longitude. This ...
0
votes
0answers
140 views

Offset a Polygon defined in Lat Lng points by a given distance of miles or km

I am trying apply a positive offset/buffer (enlarge a shape equally from the borders) to a polygon that is made up of a series of latitude/longitude coordinates by a distance that is defined in either ...
4
votes
1answer
160 views

API for time and distance between two addresses?

The Google TOS appears to limit the use of API for time and distance between two addresses to use in conjunction with a displayed map. Does anyone know of any other mapping data source that offers a ...
2
votes
1answer
293 views

Correct coordinate systems, but trustworthy distance between points?

I have limited GIS experience with projections and I have some questions about trying to accurately display point data from two different sources in ArcGIS 10.1 in order to do a proximity analysis. ...
0
votes
0answers
20 views

Distance from rivers-Zonal Statistics [duplicate]

I am using arcgis 10.1 I am trying to calculate euclidean distance from each feature using this large rivers shapefile http://www.arcgis.com/home/item.html?id=44e8358cf83a4b43bc863646cd695945 . And ...
9
votes
1answer
241 views

Measuring distances between simultaneous points

I am working with GPS data and so I have UTM's with DATE/Time information. I have 2 groups of species (moose and wolves). I want to join the information from moose to wolves that match in time. So, ...
1
vote
1answer
522 views

Get the distance from a point on a polyline to polyline's from point

I have a polyline and a point on the polyline. I need to find the distance from the from point of the polyline to that point. ICurve.QueryPoint method does the opposite thing. It gives a point ...
2
votes
1answer
473 views

Trilateration 3D - Vincenty's Formula

with reference to Trilateration using 3 latitude and longitude points, and 3 distances. The accepted answer was votes as shown in wikipedia at: http://en.wikipedia.org/wiki/Trilateration in ...
18
votes
5answers
10k 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 ...
4
votes
1answer
193 views

Distance from waterways

I have an sdc file with water bodies, i.e. oceans-rivers-lakes. I want to combine it with a shapefile with the boundaries of countries all over the world and produce two measures: 1) The average ...
0
votes
2answers
231 views

Road network Analysis

I have a Road layer and Point features of some Bus stops from the same area.I want find the Road distance between the Bus stop.Please help me find it. I have QGIS,ArcGIS,and FME. Thanks, RKM
1
vote
0answers
328 views

Get the distance between 2 WGS84 GEOSGeometries

I currently want to check if 2 given GEOSGeometry objects of type Point are within 100m of each other. (length flexible) Looking at previous asked questions on this topic, most of the answers were ...
3
votes
2answers
717 views

Calculating the distance from each point in one layer to the nearest point in another layer

I am trying to find the average distance from several points in a layer to points in another layer. I am using ArcMap Basic - I know there is a way to do this using the Advanced version of ArcMap but ...
3
votes
2answers
467 views

Calculating the distance between points and multiple lines

I have a point shapefile of about 100 points and a polyline shapefile of about 200 lines and I am interested in finding the distance between every point and each individual polyline. My polyline ...
1
vote
1answer
248 views

Rasterize vector with gdal

"I would like to calculate the Euclidian distance from a residence to a public service of interest e.g. the distance from a residence to a green space (as the crow flies) in QGIS. After browsing the ...
0
votes
1answer
448 views

QGIS, Euclidean distance analysis [duplicate]

i wanna generate euclodian distance map for my road data. I 'll use it for multi criteria analysis. I can get it by using Arcgis Euclodian Distance tool but i wanna generate it in QGIS environment. I ...
4
votes
2answers
1k views

tool to find the routing distance between two latitude/longitude points using OSM data

I need a tool to find the distance between two points whose longitude and latitude are given. I am making an application so it will require bulk queries, so i cannot use google maps distance matrix ...
1
vote
0answers
69 views

Allocate places according to distance

I've asked this over on Stack Overflow but thought that someone may have a GI point of view that may help: As an over-simplified example I have a list of events that have a maximum attendance: ...
4
votes
1answer
1k views

Calculate distance between X/Y coordinates by individual in R

In R, I'd like to calculate the straight-line distance between each capture of an animal in my dataset - no need to take into account the curvature of the earth. I have a dataset that looks like ...
1
vote
1answer
825 views

Calculate the distance between two contours

I have two contour polylines (single shapefile) and I would like to calculate the mean, min and max distances between the two lines. Is there a function in ArcMap 10 (ArcInfo license, incl. Spatial ...
8
votes
1answer
447 views

Calculating distance from points to different class in raster

I am looking for some advice on how to calculate the distance from a point to a different class of a raster. Specifically, I have observations (points) of animal use overlaid on land cover data. For ...
1
vote
0answers
431 views

Distance Matrix in QGIS

Can anyone help me with the distance matrix tool in QGIS? Is there a tutorial about it? It sometimes crashes when I use it and the values that it produces seem strange. I am a beginner in QGIS, so I ...
1
vote
2answers
320 views

Network distance computations using GRASS

I'm an ArcGIS user who's interested in learning to use GRASS. Can anyone point out resources that will help me in learning how to obtain network distances between (1) residential locations (points) ...
0
votes
3answers
327 views

Calculate 'Rectangle' Coordinates Given 2 Points and width [closed]

I want to create a rectangular polygon using two points as guides. So let's say a journey starts in Egypt and ends in London, my polygon should have 4 points: 10 miles further from London than Egypt ...
2
votes
1answer
357 views

How to Determine to world map size in pixel given this data?

How to Determine the world map size in pixels given this data? Map size of a particular area say, for example: Makati city, Philippines with bounds: Top-Right: 121.0281, 14.56497 Bottom-Left: ...
12
votes
3answers
500 views

How can I represent distance using the dashes or markers of a vector line?

I am a very basic user and dont know the lingo to get to the gist of my question so some background might help. Ive volunteered to create a pre-incident planning system for my rural fire department. ...
8
votes
5answers
3k views

Better Distance Measurements in Web Mercator Projection

I am working with an ESRI stack, storing my layers in a sql-spatial-enabled-SDE- geodatabase (Geometry type, Web Mercator-3857). I am building a web mapping application, so by default, the tiles are ...
5
votes
1answer
694 views

Distance Matrix tool in QGIS. How to get result in metric? [closed]

I'm trying to calculate the distance between points in layer with distance matrix tool. And keep getting strange results no matter what. Like this MASTER ------------SLAVE ---------------- DISTANCE ...
5
votes
1answer
323 views

How do I get the upstream distance to all points in a DEM from a single downstream point?

I want to get the upstream distance to all points in a DEM from a single downstream point. The goal is to create a "downstream distance to a point grid". This then would allow me to create "distance" ...
1
vote
0answers
22 views

How to perform a join on simultaneous spatial and attribute criteria in PostGIS [duplicate]

Possible Duplicate: How to perform a join on simultaneous spatial and attribute criteria in ArcGIS? I have two point layers and want to perform a spatial join on nearest distance. I have a ...