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
0answers
11 views

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

Using near tool I knew that I can just calculate 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 ...
4
votes
1answer
316 views

How can I make a Postgres/PostGIS ST_Distance_sphere query more efficient?

Within Postgres/PostGIS I have written an SQL query to get the closest distance for each element within a point coordinate table from a polyline table. The query comes back and works correctly, but ...
0
votes
1answer
521 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
1answer
458 views

Create raster distance around a single point feature class

Okay, so I'm relatively new to ArcMap and I'm trying to use the Fuzzy membership for suitability test. I have a single point feature class that I want to use for this analysis. I know that in order to ...
1
vote
1answer
189 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 ...
4
votes
1answer
97 views

What is an efficient Algorithm to draw a straight line from points?

I have some cross section survey data, which is like this: X Y Z pt_dt 2970969.635 359725.0088 83.4242 1-x 2970968.278 359722.2182 83.2591 1-x 2970941.771 359670.127 83.0655 1-x 2970961.369 ...
2
votes
0answers
50 views

Create circles around a point on a map measuring the radius in hours

Disclaimer: I am not experienced in GIS and hope this question fits in this category. I was wondering whether it is somehow possible to create a circle* around a city, using Google Maps or the like, ...
2
votes
3answers
58 views

How to measure correct distances in a project with OpenLayers background?

I have 3 lat/long points as follows: A = {35.257246,139.721256} B = {35.256541,139.721491} C = {35.256326,139.7203271} 1) Measurement result by Movable Type Scripts: By using the distance ...
18
votes
6answers
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 ...
9
votes
4answers
7k views

How to generate random locations nearby my location?

I am trying to create random locations nearby my location. What i want is to create random latitude/longitude pairs inside a 200 meters circle surrounding my location. This is the formula i came up ...
8
votes
3answers
738 views

What kinds of line segments/edges require high accuracy in a true surface-of-the-ellipsoid representation?

I've been musing (and doing prototype coding) for a 'projection free' geographic codebase with your basic point, line & polygon primitives. Rather than dealing with all the sacrifices that come ...
5
votes
2answers
225 views

Is there a way to calculate closest distances to a point without using Near Analysis?

I frequently get asked to calculate distances from a specific point (A drilling well in the middle of the sea for example) to a number of Environmental layers (Protected Areas, Pipelines, Other wells ...
5
votes
1answer
624 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 ...
4
votes
2answers
264 views

clustering points in postgresql to create contour map

UPDATE: To try to make this a little more simple, is it possible to create a query which selects a group of points such that each point in the group is at most X units away from at least one other ...
1
vote
1answer
114 views

Why do classic google maps and the modern google maps show different types of driving times?

As I am currently working on a project, where driving times are quit important, I've noticed that classic google maps and modern google maps show different types of car driving times. While the ...
2
votes
1answer
35 views

Calculate distance for point to point based on value in field of first point

I am trying to figure out the best way to calculate the distance for each student from the school they attend. We have 2 shapefiles - the student locations with a field identifying the school they ...
0
votes
1answer
121 views

How to set the length of a line using openlayers

I'm trying edit a polygon by changing the length of some lines by code. Found this method to calculate based on the bearing. But I didn't find anything on how to calculate the bearing, before I start ...
4
votes
3answers
3k views

How to properly utilize DWITHIN Spatial Filter in OpenLayers

Given the following code: var points = []; points.push(new OpenLayers.Geometry.Point(-110, 38)); points.push(new OpenLayers.Geometry.Point(-108, 40)); var lineString = ...
1
vote
1answer
126 views

Calculate distances between polygon centres in QGIS

Is there a practical way to calculate distances between polygon centroids in QGIS? I have a UK city region map divided into administrative units (1 ward = 1 polygon). I want to represent their ...
1
vote
2answers
33 views

How to show average walking distance to closest point in census tract in ArcMap?

Given a map layer of point locations, and a second map layer of census tract polygons for the same area, how would you create a map layer that shows the average walking distance to the closest point ...
-1
votes
1answer
30 views

Buffering algorithm [closed]

Does anyone know the algorithm of buffering? I had difficulty in drawing buffers. So I tried many values to acquire 1km buffer. I found value 0.008966 produces 1km buffer. Then I calculated inverse ...
7
votes
1answer
181 views

How do I calculate Manhattan distance with PostGIS?

I am using the ST_Distance function to calculate the distance between two geometries (a train station and a building) Since I know that all buildings and all train stations are in Chicago, which has ...
5
votes
0answers
39 views

Statistics: Estimating U.S. population-weighted average temperature from 100+ daily airport station measurements

I have recently signed up for a developer's key for the Census API (http://www.census.gov/developers/) and will be using a Python wrapper class to access the Census database. My goal is to find the ...
2
votes
1answer
146 views

using PostGIS to calculate distance of a route over a large area

I'm new to PostGIS and looking to measure the distance of the Pacific Crest Trail which spans western North America from Canada to Mexico. I have a data set containing the lat lon and dates from GPX ...
1
vote
0answers
19 views

Scale on map requires correction coefficient. But why?

I am computing the distance of a map I am getting from ArcGIS' REST services by using a calculator as provided by this answer. In a nutshell, it uses a GeodeticCalculator for distance computation ...
1
vote
2answers
157 views

Measure average distance between two lines with common endpoints

I have two shapefiles, each with a set of lines generated from start and end points. One shapefile has the straight lines generated from the XY To Line tool, while the other has lines generated from a ...
1
vote
2answers
165 views

Draw line between points from multiple datasets

I have 2 point datasets and want a tool or script to draw a line between all points in one dataset to all the points in the 2nd dataset. Is it possible? I have tried ESRI "Point Distance" and ...
1
vote
1answer
357 views

How to calculate driving distance/time between two points

I am doing some analysis for our fire rescue department where we are comparing actual response times to fires vs predicted response times. The actual response time analysis is straight forward as I ...
1
vote
0answers
41 views

How to calculate the average distance among set of points as measure of closeness

I have three series (or tables) of points in PostGIS which I want to compare. I would like to know how "close" each series is when compared to the other two. In other words I would need some measure ...
1
vote
0answers
27 views

How to set a defined distance between nodes to digitize in qgis?

Using QGIS (by now I have the 2.4 version) I would like to set some parameter (I don't know if such exists) that would impose a definite or maximal distance between nodes when digitizing a polyline or ...
1
vote
1answer
45 views

Distance Between Two Points vs Length of Linestring

So I have two points that I want to calculate the distance between. If I use: SELECT ST_Distance_Spheroid(point_a, point_b, 'SPHEROID["GRS 1980",6378137,298.257222101]') / 1000 FROM ( ...
1
vote
1answer
31 views

GeographyFromText and ST_SetSRID+ST_MakePoint different results?

Why am I getting different results? SELECT ST_DISTANCE( ST_GeographyFromText('SRID=4326;POINT(13.401111 52.383343)'), --berlin ST_GeographyFromText('SRID=4326;POINT(9.997559 53.533778)') ...
3
votes
2answers
168 views

How to calculate the distance of sites to riverways

How do you calculate the distance of about 10 sites scattered across a region to bodies of water (rivers and lakes) using ArcGIS 10.1? I have the lat/lon coordinates of the 10 sites as a point ...
0
votes
0answers
53 views

How to calculate distance between point feature to multiple polyline features in ArcGIS

I have a GPS track which is basically a point layer. I have different route networks such as - train, tram and bus routes. I want to calculate the distance between each point to nearest features ...
1
vote
0answers
19 views

How to calculate pixel per meter ration according to zoomlevel in google map(bing map)?

I am new here. I need some help. Right now, I got an image and detect two points in the image. I want to calculate the distance between these two points. I got: 1 . x,y pixel value for both two ...
2
votes
0answers
75 views

GeoDjango order_by('distance') not working as expected?

Using GeoDjango, I am trying to sort a list of users based on the distance from a point. It does generate a list, but its not ordered by distance, though I specify that in my query. This is the query ...
1
vote
0answers
31 views

QGIS distance from points to nearest line

How can I get the distances from each point at a shapefile to the nearest line from another? I've tried to follow the directions from Measuring the distance between lines and points in QGIS and ...
1
vote
0answers
21 views

Creating random location within a network from a given location and a given distance

For a habitat selection study, I am trying to identify availability. My species lives along waterbodies and I could assess distances moved between two consecutive locations using the network analyst ...
2
votes
2answers
60 views

Calculating distances between consecutive points along rivers (polygon) using ArcGIS Desktop?

I have radio-tracking locations of semi-aquatic mammals. Now, I would like to calculate the distance between the consecutive locations using the river as the animals would swim (opposite to as the ...
1
vote
0answers
23 views

Calculate distance in point collection algorithm

I've got collection of points which are sorted by x,y and distance between n and n+1 (array of objects [{x:0,y:0},{x:1,y:1}....] I would like to calculate distance between all points (point 1 distance ...
2
votes
0answers
46 views

FME - calculating distance to points along a line

I am new to FME, and trying to get my head around what should be pretty straightforward issues, but I find myself going around in circles Basically I want to determine the distance (chainage) to a ...
3
votes
2answers
110 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 ...
0
votes
3answers
43 views

Calculate distance using 2 sets of lat/long values in the same record

I have a point layer with over 90K records in it. For each record I have lat/long field for incident, and lat/long for engine location. Is there a way to find the distance between Incident point and ...
6
votes
3answers
4k views

Splitting lines automatically at specific distances using ArcGIS Desktop?

I have a set of polylines which I need to split at varying distances from their starting points. In general, I'm looking for a something similar to the SPLIT function within the editor tool. There ...
1
vote
1answer
62 views

Calculating distance between two sets of Decimal Degree coordinates?

I have coordinates in decimal degrees e.g: point A:Lat,Lng(5.317101667,-2.023303333) and point B:lat,lng(5.317093333,-2.023318333). The altitude in Meters at Point A is 11m and the altitude and Point ...
0
votes
0answers
26 views

Devising measure of vertical distance from spring line?

I am building a model (using Logistic Regression) to explore the relation between a binary categorical dependent variable (parcels agricultural production quality) and several predictors, among which ...
3
votes
1answer
79 views

Distance from rivers, taking into account terrain elevation

I am interested in building a raster of the distance from rivers in a territory under study. I have digitized the course of the rivers in ArcGis 10.1. I have used the 'Euclidean Distance' tool to ...
0
votes
0answers
17 views

Calculate distance between point and linestring, save the distance as table and represent that on QGIS? [duplicate]

I have loaded my data with osm2pgrouting and I have my network with ways (Linestring) and nodes (Point). The problem is : I have a database of doctors addresses (point) and I should calculate the ...
0
votes
0answers
27 views

Euclidean Distance Function performed on unprojected data

I am looking to perform a simple multi-criteria analysis on a data set comprised of two criterion: occurence of wildfires and road accessibility. First, the project CRS was enabled with "on the fly" ...
2
votes
1answer
60 views

Calculate distance between point and linestring and how to represent that on QGIS?

I have loaded my data with osm2pgrouting and I have my network with ways (Linestring) and nodes (Point). The problem is : I have a database of doctors addresses (point) and I should calculate the ...