# Tagged Questions

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

194 views

### How to find features within a distance? [duplicate]

I insert the values from lat/long into the points. Those users move around and send me new Lat/long and of course , I made an update of the position. I need to find people that are in a distance ...
3k views

### Calculate min distance between points in PostGIS

I have point layer in PostGIS database. Help please with query which add for each points in layer distance in attribute table between this point and another nearest point. Thanks! Update Calculate ...
77 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: ...
4k 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 this:...
1k views

### Calculating distance from points to different class in raster using ArcGIS Spatial Analyst?

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. ...
859 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 ...
473 views

### Why is pgrouting driving distance skipping edges?

I have a road network where I do a driving distance operation through pgrouting. This is my SQL: SELECT * FROM driving_distance('SELECT gid AS id,source,target, cost FROM elveg',676663,1000,false,...
561 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 ...
3k views

### Spatial distance analysis in QGIS

I'm quite new to QGIS and trying to figure out how to analyze the following problem. I have three layers: settlements point layer with 253 entries waste treatment facilities point layer with 24 ...
1k views

### Calculating distance in WGS84 (MySQL and Geoserver)

Here is the environment in which I work: An application using geo-referenced data Database MySQL 5.5, storing georeferenced points A Geoserver server, connected to the MySQL database Here is the ...
1k 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: 121....
1k 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. ...
628 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 ...
2k 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 ...
7k 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 I'...
29 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 ...
2k views

### How to draw a polygon with preset length in OpenLayers?

For a project I am working on, I need to be able to put a polygon on a map using OpenLayers, based on a variable point that can be set by a user. The polygon is an isosceles triangle of which two legs ...
4k views

### OpenLayers measure tool - instant measurement

I need to use measure tool to measure distances (instant measurement!) in my application. Instant measurement example can be found here. But the main problem is that when I use instant measurement ...
1k views

### Getting points within a range from a postgres database?

ok so this is query i'm making which returns no result: SELECT building.gid FROM building WHERE ST_Dwithin(building.geom, ST_GeomFromText('POINT(long lat)',4326), 400) If I run this ...
340 views

### Tunnel distance approximation

Having two points (longitude, latitude) on earth, if I am sure their distance is under 100 km; how much error will I have using tunnel distance approximation? (Defined at here) Note: Currently I am ...
274 views

### Which SRS to use for global distance queries?

I have a database with a lot of points in WGS84. Now I am building an cache that performs NN and points in range queries using a KDtree. The point [sic] is that the search radius will be provided in ...
376 views

### Calulate distance between two points [closed]

If I have two coordinate points of (lat, lon), how would I calculate the distance between the two?
3k views

### Dissolving polygons by attribute within certain distance using ArcGIS Desktop?

In a FeatureClass I have a lot of polygons which contain attributes of different landuse-types. Now I am trying to dissolve those polygons of the same landuse-type, but only if the distance between ...
248 views

### Converting lat lon into co-ordinates (in ft of m)

I have a set of latitude and longitude of a series of points which specific the trajectory of a vehicle. If I consider the first point as the origin (0,0), is it possible to convert the trajectory ...
449 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 ...
2k views

### How to measure minimum distance between objects in two layers using arcpy?

I am working on an alien species analysis looking at the spread of a species from the mainland to islands in an archipelago. I am doing the analysis using arcpy and I have succeeded in isolating risk ...
1k views

### Analysing movement using cost surfaces with ArcGIS Path Distance tool?

I would like to analyse hypothetical movement (on foot) in a landscape as based on energy expenditure, but I have run into some trouble that I am hoping that you could help me with. I have tried to do ...
448 views

### Recovering Latitude and Longitude from Albers to Compute Distance

I have a shapefile of U.S. counties in USA Contiguous Albers Equal Area Conic. I want to do distance calculations. For example, distances from one county to another. I do not know how to interpret ...
53 views

### Obtaining coordinates when computing distance of a polygon to a line

I have a shapefile of a county. I am interested in computing its distance to a line, which I've been doing using Near. I want to know the coordinates on the line that produces the minimum distance. ...
251 views

### Distance of many polygons to a segmented line

I have a shapefile of U.S. counties. I also have a line segment. I want to compute the distance of each county to the line. I have also divided the line segment into 10 equal segments. I want to ...
927 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, ...
735 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) ...
1k views

### USA Contiguous Albers Equal Area Conic

How do you convert from USA Contiguous Albers Equal Area Conic to meters? Or, to latitude and longitude? I am using ArcGIS 10.1, and within it, ArcMap. The shapefile I have reports the coordinates ...
7k views

### Getting shortest distances between features on separate polygon layers using ArcGIS Desktop?

I have a county-level map for the state of North Carolina, U.S. I would like to compute the shortest distance of each county to any point along the border of Georgia. How would this be done? ...
675 views

### How to find the closest Edge from a Line

Currently I'm working on a basic 3D model viewer in MATLAB, which can import .OBJ files (modeled in e.g. Blender). The purpose of this viewer is to test different subdivision schemes (like Catmull-...
126 views

### If the Earth was flat, what unit of measurement would distances between geographic points be represented as?

A whole lot of abstraction- given two longitude/latitude points given from a GPS, I'm using the Pythagorean distance formula to find the distance between them. What unit of length would the distance ...
853 views

### How to make a minimal distance matrix for polygons using QGIS?

I have a set of polygons and I want to find minimal distances between the edge of each pair of them. It's similar task as in this question: How to find the minimum edge to edge distance of polygons? ...
370 views

### PgRouting Driving Distance crashing postgis server

I haven't used PgRouting much so I'm a little in the dark here. However, I am attempting a driving distance calculation like the one described by Underdark here. My SQL is identical, I have a ...
6k views

### Calculate distance in km to nearest points (given in lat/long) using ArcGIS DEsktop and/or R?

I have two point datasets in ArcGIS, both of which are given in WGS84 lat/lon co-ordinates and the points are spread across the whole world. I would like to find the nearest point in Dataset A to each ...
12k views

### How to calculate new point coordinates from distance and angle using ArcGIS SDK for iOS?

I want to calculate the coordinates of a new point. What I have: The source point coordinates, the distance (meters) and the angle For example: I want to create a point within 100 meters and 45 ...
41k views

### Find points within a distance using MySQL

I have a mySQL table with user name, latitude and longitude of the user. I would like to get a list of user who are inside the circle or square of a given latitude and longitude with given distance. ...
132 views

### Is there a ModestMaps or other flex library for finding the distance between 2 lat/lon coordinates?

I'm using ModestMaps in my Adobe Flex application. Is there a flex library method to calculate the distance between two of my lat/lon coordinates, or am I stuck coding the Haversine by hand? I've ...
102 views

### How to Improve a Distance Model

I am working on a distance model that creates distance rings around a given point and assigns those rings a probability. The point is in the center of a 25 x 25 km area, and the model fails to assign ...
32 views

### Translate geographical coordinate [duplicate]

Possible Duplicate: Calculating Lat/Lng X miles from point I would like to know how could I translate a geographical coordinate to an specific distance. So for example let's suppose I'm facing ...
812 views

### Implementing custom (Vincenty/Haversine formula) functions for MySQL vs Using PostGIS?

I currently am using MySQL for all of my relational data. I have hit a crossroads with geo calculations. Since, MySQL does not have good support for spatial functions, I am contemplating on using ...
5k views

### Distance calculation : Integrating incremental gps data

I am trying to build a GPS based odometer based on android. Currently , I am calculating incremental distance changes very frequently ( < 5 meter movement). The distance calculation in android is ...
433 views

### finding a location on a line using a point and a relative distance with arcgis js api

The problem I'm trying to solve is to find a point on a line given another point on the same line and a distance from the same point. I've been looking on the various RouteTask examples but they ...
1k views

### MySQL GeoSpatial function for ST_Distance_Spheroid? Metric used in return Type of GLength?

Is there a ST_Distance_Sphere, ST_Distance_Spheroid equivalent function in MySQL's GeoSpatial Support? If not, any way to emulate this? What is the metric used in return type of GLength (...