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
58 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
313 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
394 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
251 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
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
3answers
569 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
132 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
349 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 ...
1
vote
1answer
171 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
64 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
55 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
639 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
44 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
145 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
108 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
319 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 ...
2
votes
0answers
58 views

Get distance after path distance allocation

I use ArcGIS 10.1 in Windows XP. I have a two point feature data sets One containing a single point P1 and another containing multiple points Pm. I computed the minimum-distance path from P1 to each ...
1
vote
2answers
327 views

Calculating millions of distances with Road Graph

I'm new to GIS but thanks to the answers I got in another question here on GIS stack exchange I was able to increase my knowledge significantly. This question is related to an earlier question I asked ...
8
votes
3answers
371 views

New to ArcGIS and want to compute distance between two points “as the fish swims”

We have a layer named Hydrography which is the water area for a given assignment. I have a station point and a target point. I need to compute the distance between those two points but inside of the ...
5
votes
1answer
846 views

Shortest distance from point to line (big dataset)

What is the best method to calculate the distance from the nearest road for a series of address points in QGIS, having a very big dataset? (QGIS 2.0.1, Win XP) I read the answers to previous similar ...
0
votes
1answer
77 views

Shortest path to nearest… something

I have a list of addresses and a map including train stations, schools etc., and I would like to calculate the shortest distance from each address to the nearest train station, school etc. I'm aware ...
3
votes
2answers
257 views

How to calculate distances between addresses and cities and coast line?

I am totally new to GIS, and so I apologize if my question is not clear enough. My basic problem is the following: I have about 160,000 Danish addresses with longitude and latitude for each address. ...
1
vote
1answer
497 views

Measuring Distance from Point to Point Along a Path in ArcMap

I am looking at a village and want to find the distance from each house (point) to the pagoda (point). However, I want the distance to be measured along a path (which I digitized as a polyline) and ...
0
votes
1answer
593 views

SQL to get points within a certain distance

I am new to using spatial data types in sql server. I have managed to create a column of Approx 50,0000 geometry points (from x,y data) and would like to find out which (count number of) points are ...
0
votes
0answers
27 views

Bounding Boxes around nearby points [duplicate]

I've got a table with 200.000 points. My aim is to draw bounding boxes around points where this point have the same name and that are in a maximum distance of 500 meters to each other. I guess I can ...
5
votes
3answers
138 views

What is the precise distance from equator to pole according to WGS84?

For calculating areas of polygons by means of projecting to a cylindrical equal area projection I came across the following discrepancy: I ended up with a different distance, off by more than 5km, ...
1
vote
2answers
129 views

Distance between latlongs varies in different projection systems?

I have shapefiles with correct projections. The SRS is EPSG 32735 (WGS 1984 UTM 35S) Now, I have these two coordinates from this projection system: (31.3751,-23.4388) and (31.3779,-23.4355). ...
1
vote
1answer
195 views

Mimimum distance between points (Postgres/PostGIS)

I have a table (tab_Cities with cities which own more than 50000 inhabitants. The table also contains lat, long and the_geom as columns. I can already see the points via QGIS. Now I want to write a ...
2
votes
2answers
243 views

Finding points along a path

I am unsure of the best approach to this problem. I can think of some ways of doing it which I will list below but I am looking for the best and most efficient way of doing this. Problem Given a ...
0
votes
0answers
79 views

Sort a collection of points based on proximity using pythagorean (2D) distance

I would like to present a user with a list of points, sorted by proximity to the user's location. Is there any problem with using the pythagorean formula to calculate the two dimensional distance ...
1
vote
0answers
110 views

How to create a buffer around a point that takes terrain elevation in account?

In QGIS, I am creating a few different buffer around points to simulate walking distances. For example, 10 minutes walk about 800m at 5km/h. Using population density, I then clip a population layer ...
1
vote
0answers
144 views

Calculate Distance Matrix for ALL possible combinations in the dataset in QGIS

I have a Vector Layer that is created out of a MySQL database and has the relevant points stored in WGS84 format. The import works well, however, when I try to calculate a distance matrix between all ...
3
votes
2answers
105 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 ...
1
vote
3answers
774 views

Generate random location within specified distance of a given point

In a simulation (not using any GIS), I need to generate a random location that is within a specified distance of a given location. I found a very helpful post here on this exact topic: How to ...
3
votes
0answers
251 views

How to calculate the distance to multiple locations from each cell of my raster?

I'm working with Arcgis 10.1 and Python 2.7.2 How can I calculate the distance to multiple locations from each cell of my raster? I tried euclidean distance but it only provides the distance to ...
0
votes
3answers
194 views

Computing distance of a georeferenced .jpg to each polygon (town) in a shapefile

I have a .jpg that is a highway that spans multiple towns, and a shapefile with boundaries of these towns. I have georeferenced the .jpg so that it is aligned with the shapefile of the towns. My ...
0
votes
0answers
71 views

What is default unit of st_length in pgrouting for osm shapefiles?

I am using st_length to find the distance between two nodes on a way. What is the default unit of the distance returned. I am using data from openstreetmap shapefiles
1
vote
1answer
100 views

Converting NEAR results to Meters/Kilometers?

I am having trouble figuring out how to convert the units from the results of my NEAR calculations. I want to convert them to meters or kilometers, but cannot figure out how to do so... ...
2
votes
2answers
252 views

minimum distance from the shore (how to retrieve the “shore vertices”)

I am student of Statistics, this is my first time using GIS., I am sorry for the stupidity of the question but I browsed online and could not find a satisfactory answer. I have some spatial data in ...
2
votes
1answer
66 views

How to compute the distance from the beginning of a line for every points using postgis

I have a line, for which I need to know, for every point that compose it, what is the distance from the beginning. The data is stored in PostGis 2.0 For example, for the line with the point a, b, c, ...
2
votes
1answer
92 views

Calculating point proximity in ArcMap 10.1

I have a geocoded point file which (theoretically) contains one point for every zip code in the U.S. I want to create a smaller list of zip codes from this file. The list should include only those zip ...
1
vote
0answers
96 views

Can QGIS Measure Line tool compute correct geodetic distance?

As I understood, this tool normally shows distance in the project CRS units, not the geodetic meters (despite it actually says the distance is in meters). However, now I read (Section III, 4 - ...
0
votes
1answer
512 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 ...
2
votes
0answers
197 views

Specifying a bounding rectangle using Google's S2 package for spherical geometry [duplicate]

This is my first post on GIS, I hope it is not too trivial a question. I work on a project on Google AppEngine, which is backed by a NoSQL datastore. This makes a proximity filter different from ...
2
votes
1answer
77 views

Where would a perfectly vertical vertical tunnel through the earth come out?

I am a programmer. I have a point P1 (lat,lon) given by GPS (WGS84) and I want to know the location of a point P2 if I make a straight line from P1 to the other side of the earth. I have read some ...
4
votes
1answer
257 views

meeting point minimizing travel distance for participants?

The problem is to find the point minimizing the travel distance for around 100 persons in different regions who want to meet in the same place. Travel is by car not by plane. Assuming that I get ...
7
votes
2answers
717 views

projection change to create buffer in QGIS

I am about to become desperate... I like to create buffer around several points - if possible - with a declaration of the size in km of these buffers. Just to show you what I am working with: My ...
4
votes
2answers
359 views

How do I find the average distance within a polygon to a point?

For my purposes, I can assume a homogeneous distribution of points within the polygon. What I want to find is the average distance from points within a polygon to a specified point. I don't know where ...
0
votes
1answer
100 views

How to visualise “distance from amenities”?

I'm interested in calculating for every point the distance to the nearest amenity of each of a certain number of types (train station, supermarket and so on). I think the calculation will be ...
1
vote
1answer
85 views

PostGIS integer loop

PostGIS is very new to me, and I'm having difficulty performing an operation that probably isn't too difficult. I have vector layers each filled with the outline of a landmass through time. I want to ...