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

1
vote
2answers
272 views

find latlngs that are some x distance away from a point to south to north to east to west

I have a latlng i want to find four points with equal distance from this latlangs in all directions east, west, south an north is there any formula . I am trying to build polygons around higways so ...
5
votes
1answer
941 views

How to generate a point distance matrix using shortest network distance?

My problem is as follows. To start with, I have the following spatial datasets: A road network; 13,000 odd point locations representing populated localities (ie places where people live); Service ...
1
vote
1answer
310 views

QGis creating shape file of several points out of two Excel sheets

I am about to create a Qgis file on which it should be visible which companies are working together. As source I have got two Excel Tables. Table = Distribution Centers Table = Point of sales I ...
4
votes
1answer
117 views

How to calculate average distance from points to points?

I have a point layer of 400,000 voter residencies and a point layer of 500 polling places. I am trying to find the average distance it takes voters to get to their polling location. Distance by road ...
3
votes
0answers
263 views

calculate total Miles in a polygon using Google Map

I have an application that allows the users to create any custom polygon layer on top of google maps, i am interested to know if their is a way to select the road layer in this polygon and then ...
0
votes
0answers
392 views

Bearing Distance to Line tool from dBASE table only draws one line in ArcGIS 10

I am using the Bearing Distance To Line tool to draw geodesic lines to points defined by a bearing and distance. This is an aside, but I will then use the Feature Vertices To Points tool to convert ...
1
vote
0answers
52 views

windows function with points in a mixed (multipoint/point) table

I have a table comprising multipoints (tracks) and points (stops between tracks). there can be several consecutive multipoints. now, i want to merge any points lying very closely to each other ...
3
votes
1answer
277 views

Python - OGR: Distance different than in ArcGIS

I want to determine the shortest distance between a point and a line. I use the following Python script to do so. If I compare the result of the script with the result of ArcMap's Near Analysis, I get ...
1
vote
1answer
1k views

Distance between DB field and Point using PostGIS

I'm using Postgresql 9.0 with PostGIS 2.0 extension. I've got the table and geographic field location: =# SELECT * FROM geography_columns; f_table_catalog | f_table_schema | f_table_name | ...
4
votes
2answers
633 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
658 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, ...
5
votes
2answers
349 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
279 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
12k 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
46 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 ...
5
votes
1answer
419 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)?
4
votes
3answers
471 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
155 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
990 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
146 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 ...
22
votes
3answers
11k 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
294 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
2k 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
59 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
535 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
443 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
156 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
221 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
365 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
263 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
652 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
552 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 ...
4
votes
1answer
218 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
241 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
372 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
827 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
608 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
272 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 ...
1
vote
1answer
577 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
70 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
2k 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
914 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
537 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
508 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
367 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
369 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 ...