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
1answer
201 views

Calculate road distance between GPS points

I am working on tracking system that track location of vehicles on the map and tell their total distance from the beginning till today. I have device_id, timestamp and GPS location in the table like ...
4
votes
2answers
58 views

Get the 2 points immediately before and after a given point in PostGIS

In the picture below: The given point is C, I would like to select A and B, but not Z (which is closer to C than B but it's not immediately after in the LineString). Note that C is always ON the line ...
2
votes
2answers
63 views

ST_Distance loop

I want to create a postgresql function which calculates the distances between random points who are stored in one table. For the Table: CREATE TABLE s_1( id bigserial primary key, the_geom geometry, ...
1
vote
1answer
120 views

Postgis ST_Distance query returning inaccurate results

I am using the following query to retrieve records from a postgresql DB @services = Service.select("*, ST_Distance(services.lon_lat, ST_GeomFromText('POINT (lat lon)', 4326)) as ...
3
votes
1answer
41 views

using a linear solver to get a “centre of gravity” of a set of points

As a programmer, if I have a linear solver available. How can I formulate the following problem as a set of constrains / decisions / goals for the linear solver? I have a matrix of say 10*10, so 100 ...
1
vote
0answers
55 views

How to calculate multiple distances between set of points and vector grid in PostGIS?

My set contains the following input data: A set of points and a hexagonal (vector) grid. For each cell in the grid, I want to calculate the driving-distance to each point. I thought this would be a ...
1
vote
1answer
38 views

Create a line from an array and measure its length with PostGIS (ST_MakeLine, ST_Length)

do I understand it correctly that it is possible to create a line out of an array with the function ST_MakeLine()? I would like to create a line from several points (more than two) and then calculate ...
4
votes
1answer
45 views

PostGIS point distance from polygon not 0 when on edge

I have a pretty simple problem: SELECT * FROM ST_Distance(ST_GeographyFromText('POLYGON((70 -40,70 -39,71 -39,71 -40,70 -40))'), ST_GeographyFromText('POINT(70.48 -39)'), False) returns ...
3
votes
3answers
552 views

Need to get distance matrix for large set of points on-the-fly

I do not know much about GIS and I do not know much of the jargon. Hopefully you can help me a bit here because I am really unaware of the services and software available. My problem is as follows: ...
3
votes
1answer
57 views

Divide line by length with QGIS [duplicate]

I'm a newbie using QGIS 2.12 and I'm trying to split a line in QGIS and place points every x meters. There is a tool in ArcGIS (divide by length add in). How to achieve this in QGIS?
0
votes
0answers
54 views

How to measure nearest neighbor in miles or kilometers between two point layers using QGIS?

I have tried to look for an answer to this question, but cannot find an adequate solution. I have two point layers. One is of locations by lat/longs of homes in Louisiana. The other is a layer of ...
1
vote
0answers
27 views

Measuring large distances when all layers are in decimal degrees using QGIS?

I just developed a distance matrix between various points across Canada in QGIS. The distances produced are in decimal degrees, and I would like to view them in metric. I am unsure how to do this.
1
vote
1answer
69 views

Find nearest road distance between two points for over 1000 points

I'm extremely new to QGIS and am learning the material on my own. I have two CSV files with latitudes and longitudes, one has school address information and the other has fast food restaurant ...
6
votes
1answer
735 views

Measuring Right of Way in ArcGIS Desktop?

I'm helping bring CAD people into ArcGIS so that everyone throughout the company is on the same page and there is one database for everything. Right now, one of the biggest hurdles is making sure all ...
2
votes
0answers
35 views

How to calculate shortest path from points in one layer to points in another layer via roads, in QGIS

I'm a new user of QGIS (and have experience using ArcGIS but zero programming skills) and I'm looking for a way to calculate the shortest path from addresses to subway stations via a network of roads. ...
2
votes
0answers
26 views

How can I measure the distance between many polygon features and either another polygon or a line in QGIS?

I often have to manually measure the distance between a single site and other sites around it, but obviously this can get long-winded and I feel like there must be a much more efficient way of doing ...
17
votes
6answers
21k 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 ...
1
vote
0answers
25 views

Extracting distances along a line from postcode a centroid to the nearest point (bus stop)

I'm looking to measure the distance from postcode centroids (point file) in a city to the nearest bus stop (point file) along the road network (line file). In Qgis I can calculate the distance but ...
5
votes
1answer
3k views

Calculating distance of points along route using ArcGIS Desktop? [closed]

I am struggling with the calculation of the distance between points along a stream (points are located 0-20m away from the stream) in ArcGIS 10. The points are simple xy-data in UTM. I created a ...
2
votes
1answer
209 views

GeoDjango and Google Maps

I try to calculate distance between two cities and I'm in big confusion because the results are wrong. I have a model in geodjango like this: class Address(geo_models.Model): coordinates = ...
3
votes
2answers
94 views

Projection for Calculating Distances in Continental United States?

TL;DR Question: I want to calculate distance from point to edge of nearest polygon for 2,000 points in Continental United States. What is the best projection to use? Full Question: I have two ...
0
votes
1answer
61 views

Obtaining road distances between each pair of points in point feature class using ArcGIS for Desktop?

In Calculating attribute for network distance between multiple points in ArcGIS Desktop?, an explanation has already been given how to find road distances from a certain point to each point in another ...
0
votes
1answer
60 views

Copying point features along line features by predetermined distance

first post here. I searched the forum for this issue but other cases were slightly different. Anywho... I have points in a feature class. Each point has its centroid on a unique line feature in a ...
5
votes
2answers
2k views

Best formula for calculating short distances in UTM?

I'm fairly new at calculating distances with precision, but I wanted to know what is the best formula for calculating short distances in UTM coordinates. The distances that I'am calculating are all ...
1
vote
0answers
29 views

Find points within X distance with a specific variable

I am trying to use QGIS to find points within 5 meters of each other that all have a value of <50% for a given parameter that has been loaded through a CSV file. I looked in to doing it with a ...
17
votes
7answers
29k views

Calculating Lat/Lng X miles from point

I am wanting to find a latitude and longitude point given a bearing, a distance, and a starting latitude and longitude. This appears to be the opposite of this question (Distance between lat/long ...
1
vote
1answer
45 views

Calculating distance to a fixed point on a map

I have a point with latitude 40.7127837 and longitude -74.00594130000002 I have imagined this point on a plane like this Latitudes run from West to East and longitudes run from North to South Can ...
2
votes
1answer
102 views

How to use ST_DWithin to query features from one table within a distance of a specific feature or features in another table

I'm pretty new with PostGIS. I have a parcel layer and a census block layer in a postgres database, and I would like to be able to query out all census blocks within a specified distance of a specific ...
2
votes
1answer
44 views

How to find records using a distance filter, in a table of Points?

My table fields are: POSIC (id, geom, dt_inclusion). DB is PostGIS. Data comes from a GPS Source, then i can create a route ordening the points by Date_Inclusion. So, lets say i have registries A,B,C ...
2
votes
1answer
76 views

Calculate The Minimum Distance from Polygon Centroid to Edge

I am looking to calculate the minimum distance from the Center of a polygon (A crescent shaped polygon would have a center inside the polygon) to its edge. I have parcel data and I am trying to ...
0
votes
0answers
11 views

OLS regression Analysis

I want to use distance to major roads for census block groups as an independent variable for my model. So I was told to do a Spatial join with census blocks groups to get a distance field, however ...
0
votes
1answer
348 views

Distance between a Point and Linestring: PostGIS/GEOS vs. Boost

I am currently using the GEOS library through OGR and data from a PostGIS database to work with geospatial data. I now found myself in the need to use some of the algorithms Boost.Geometry and ...
10
votes
1answer
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. ...
2
votes
0answers
318 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
185 views

Find point close to points from postgis table

I have a postgis point table with a large list of cities. I need to find duplicates in it, but only if they are 10km close each other, which means that is the same city. For example, I have 5 points ...
3
votes
1answer
154 views

How to draw contour lines with exact distance?

I am not a professional GIS user so am desperately trying to draw contours with exact distances around my samples (points).
1
vote
0answers
39 views

Calculate the latitude,longitude 1000 kilometers east from a given location [closed]

I am trying to calculate what would the Google maps latitude and longitude be, for a given location, 1000 east from it. I am not looking for an application which can do, this, but rather a manual way, ...
1
vote
1answer
41 views

Distance Measure using QGIS Field Calculator?

A QGIS newbie who can't for the life of them work out the expression needed to represent distance from a point. I want to show how a walkable a neighbourhood is. I need do to this by showing what ...
1
vote
1answer
513 views

Calculating distance between two points on map using ITM coordinates?

How to calculate the distance between two point on the map using ITM coords? i have a map with items on it all with ITM coords and i need to return all items in X meters of radius from my location. ...
1
vote
0answers
29 views

Distance Analysis from single point to multiple points on vector layers

Is it possible to do the following in QGIS: Create a text file that plots the distance from a single point (stored in one layer) and multiple points (stored in another layer). I have tried to use ...
0
votes
0answers
52 views

Finding distance and angle to points in point buffer, from center of buffer?

I have a number of buffer circles that contains some interesting points (the green points in the picture). I would like to find out the distance and angle from each buffer center (that I have in the ...
0
votes
1answer
48 views

Public transport drive times in Europe/ Germany possible with Deutsche Bahn?

Background: There are many data sources for calculating drive times for driving, walking or cycling, for example Google Maps DistanceMatrix, ESRIS WebServices (no bicycle at the moment) etc. They all ...
1
vote
1answer
150 views

Find the area of a map (Xkm x Ykm) from the left & right longitude and latitude

How can the area of a map from OpenStreetMap be determined in the form of Xkm x Ykm, given the following information: Left Longitude = 103.554879 Right Longitude = 103.740497 Top Latitude ...
2
votes
1answer
30 views

Can you map distance bands?

I know you can calculate using distance bands, but can you actually illustrate them on the map in ArcGIS? I have a presentation next week, and it would be a useful illustration for me to use.
0
votes
1answer
69 views

Euclidean Distance Extent

I have a basemap w/ GPS points on it, and polygons of certain areas. The polygons fall well within the borders of the basemap. I am trying to generate a Euclidean Distance map of distance to these ...
-2
votes
1answer
36 views
2
votes
0answers
86 views

How to automate calculation of distance between a zip code (centroid) and an address within one line of data?

I have a large data set of federal contracts which includes two pieces of spatial data per entry (or line): the zip code in which the project took place and the address of the contractor. I am ...
3
votes
1answer
26 views

Equation or approximation of short distance path on Mercator

I use osm map in my project and I want to draw shortest line between two point like this: How do they draw this path? Give me please a clue )
3
votes
2answers
5k views

How to find nearest point for each point in current layer using ArcGIS Desktop?

I have a point layer and want to know the distance of nearest point of current layer for each point in the layer. I found some tools in ArcToolbox about it , but they need two layers for input and ...
2
votes
1answer
126 views

Measure distance between vertices of polylines in QGIS for Desktop

I have this dataset of coordinates of electric lines in the form of vector polylines as shown in the image below, and I need to measure the distance between the first and last vertex of each line and ...