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

3
votes
3answers
225 views

How to find accurate latitudes and longitudes data for cities? [on hold]

I want to put the coordinates of cities in a spatial db and then find cities from a given city at some given distance. I am hoping these functions would be readily available in a spatial db like ...
2
votes
0answers
33 views

Calculate Geometry function returns underestimated distances

I'm making a map of the Colorado Trail and obtained a set of waypoints taken down the entire trail. I projected the set of waypoints from WGS84 (unprojected) to NAD 83 UTM13N after adding to the data ...
2
votes
1answer
19 views

For Loop Maximum Minimum Distance Between Two Lines

I have a table of line/lane ids in a table called matched_lanes, and I am trying to create a lateral query that on each id in the table to find the maximumum minimum distance between each point. ...
1
vote
1answer
215 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 ...
0
votes
1answer
15 views

How to calculate distance from point to nearest polygoin via road network (polyline) ARCMap 10.3.1

Using ArcMap, is it possible calculate distance from a postcode (point) to nearest polygon using a road network layer (polyline)? As opposed to just calculating Euclidean distance?
3
votes
3answers
702 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 ...
0
votes
0answers
16 views

Distance to river square grids [on hold]

I have a square grid 5X5 km and I want to create a field containing the distance from a river shapefile of each cell. Moreover I would like to have some tips about an inverse correlation between ...
1
vote
2answers
28 views

How calculate shortest distance from start to end river?

how can I calculate the straight distance from the start to the end point of a river? I don't know how to do this automatically.
0
votes
1answer
15 views

How to I change the extents of a Euclidian Distance Raster?

I am calculating the Euclidean distance of a set of points. The output raster truncates the resulting raster image to the farthest north, south, east, and west point. I need the distances to extend ...
-1
votes
0answers
57 views

Shortest distance over water in ArcGIS?

I'm using ArcGIS 10.2 with an advanced license. I'm trying to calculate the shortest distance over water between points (between survey locations at sea, and seabird colonies on land). I have a large ...
3
votes
0answers
16 views

How to calculate the distance (difference?) between two reigons

I am building a machine learning system which predicts the location of tweets as a bounding box (using the google maps API among other things). Since the twitter API also supplies a bounding box, I am ...
1
vote
0answers
13 views

Measure the distance between points automatically

How can I measure the distance between points referring to the same element in an automated way? In fact I've imported in QGIS buildings downloaded from two different sources and obviously they are ...
0
votes
1answer
81 views

How to delimit point distances in ArcGIS for Desktop per Thiessen polygon

I have 2 shapefiles. The first set contains x,y coordinates for 1100 hospital locations. The second pair contains x,y coordinates of about 7000 villages that are served by the hospitals. This means ...
1
vote
0answers
31 views

Find distance from points along lines [on hold]

I have two layers, one is a point layer of schools and another is a polyline layer of streets. The end goal is to create a buffer along the lines that is 20 feet from the centerline that goes 1 mile ...
1
vote
0answers
19 views

Calculating the distance between points and parts of a underlying raster set

I need your help with a calculation of the distance between points (cities in this case) and forest (raster data). Is there a possibility to collate to every city the distance to the nearest forest ...
6
votes
1answer
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 ...
5
votes
1answer
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 ...
0
votes
1answer
189 views

Get CartoDB query by distance to work

Has anyone tried this tutorial: Query by distance ? This is a copy of the final code which they use for the map: <html> <head> <link rel="stylesheet" ...
3
votes
3answers
361 views

Identifying the side of a point from the closest polyline in ArcMap 10.0

I have a set of polylines (a network of streams and rivers) with information on the left and right side of the streams on riparian structure. I also have locations (points) of either side of the ...
1
vote
2answers
22 views

Counting points within range using CartoDB?

I have a dataset of users location and want to assign per user how many other users they have within a given range, and updating this value into a table.The dataset name is "users_20160410" and the ...
8
votes
4answers
4k views

Finding minimum edge to edge distance of polygons using ArcGIS Desktop?

I have a a map of about 3000 polygons in ArcGIS 10. I'm looking to find the distance between each one of them. I know how to do it using the lat and long coordinates of the centroid, but I'm looking ...
1
vote
1answer
412 views

Query all Object within n kilometer Radius with Hibernate Spatial?

I use hibernate spatial attach a geolocation to a car. My card domain class looks like this: import com.vividsolutions.jts.geom.Point class Card { String name Point location } My program is ...
1
vote
1answer
51 views

Network Analysis

I'm doing network analysis where i'm trying to analyze which point feature has the closest distance to a highway. I have created the points that I need and I also have the network dataset, but then i ...
1
vote
1answer
375 views

How to convert distance in meters(EPSG:28406) to EPSG:900913 with OpenLayers?

For point I use OpenLayers and transform(): numZona = Math.ceil(parseFloat(lon)/6)); Proj4js.defs["EPSG:28406"] = '+proj=tmerc +lat_0=0 +lon_0='(parseInt(numZona)*6-3)+' +k=1.000000 ...
0
votes
0answers
51 views

Drawing route on google map using gps device and calculating actual distance?

I Want to draw route on google map with the help of gps device and calculate the actual distance. Can anybody help with this? public GoogleAPIModel GetDistance(string origin, string destination) ...
5
votes
1answer
474 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 ...
2
votes
0answers
34 views

Finding distance between two points and land cover in %? [closed]

I am trying to use ArCGIS. I was using digimap to work out a 2km buffer from a sample point, I managed to do that and saved the file. I also saw some land cover types on the left hand side of Digimap ...
10
votes
3answers
37k 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. ...
0
votes
1answer
19 views

Node-line minimum distance: draw the minimum distance point location

I am working with a layer of nodes and a layer of lines. I would need a tool able to find and draw, for some couples node-line, the location of the closest point laying on the line to this node. ...
0
votes
1answer
203 views

How to measure distance between two coordinate pairs taken from NMEA file?

In order to measure momentary speed, first I need to measure the distance between two pairs of coordinates. That's where my lack of knowledge stops me. I have example data in NMEA format: ...
7
votes
0answers
106 views

Given two lat/longs, how can I tell if they are within 1 mile of each other?

I'm trying to implement a very efficient check to see whether two points are within a mile of each other, or not. My current approach is to compute the Haversine distance, and then check to see if ...
1
vote
1answer
446 views

How to calculate accurate distances in Openlayers 3?

I'm calculating distance in OpenLayers 3 (3.9.0). I've got a function included in my project for measuring line/area features, basically lifted from the OpenLayers Examples. I'm using ...
5
votes
0answers
86 views

Finding density centroids within polygons in PostGIS

I want to find the highest density of OpenStreetMap nodes within a dataset of census geometries. I want to tie the census data to the location of the node which is most central in terms of population. ...
1
vote
0answers
29 views

Discrepancy between CAD and GIS route lengths

I have imported a route from AutoCAD which is marked every kilometre and converted it into a shapefile. I put markers every 100 m using X-Tools. There is a difference between the two sets of markers, ...
1
vote
1answer
59 views

orthogonal projection of a point onto linestring in PostGIS

I am trying to find the orthogonal projection of a Point (in 4326 SRID) onto a LineString (in 4326). The picture shows the objective. I have tried to use ST_Distance function, but in this case the ...
2
votes
1answer
45 views

Distance to nearest cell with value “x”

I would like to create a raster where each cell equals the distance to the nearest cell >= the value of the source cell plus a constant. In the example below, the input raster has a grid size of 1m x ...
0
votes
2answers
45 views

Generating random points near a location [closed]

In the following solution, why is there a sqrt(u)? Since u is just a random number in [0, 1) doesn't getting the sqrt just give you another smaller random number? To generate points uniformly, ...
0
votes
2answers
37 views

Looking for the “inverse” of the NEAR tool

To calculate wind fetch over water I need to create a point on the shoreline and then calculate the distance to to other shorelines all directions (0 - 360 deg). The shortest distance to another land ...
0
votes
1answer
124 views

ArcGIS WebADF Distance tool

Is there a tool in the WebADF that will let me draw a straight line and calculate the distance between the two points.
0
votes
1answer
121 views

Select points within a buffer in QGIS

In my vector layer I want to select points within a buffer of 12 meters and with an exception (if 'Name' is not "James" than select). Is this possible with "select by expression"?
1
vote
0answers
33 views

Calculate shortest paths for each output area in catchment through road network to a single point (i.e. store)

The title sums it up pretty much. I'm looking to derive trip distributions to a single store using population data and distance within a prescribed distance catchment. I have calculated the catchment ...
2
votes
1answer
24 views

Point-Line shortest distance and corresponding angle using FME

I want to determine the shortest distance and especially the corresponding angle from a point to a polyline. A solution using FME would be strongly preferred.
0
votes
0answers
27 views

Compare euclidean distance with network distance

I have a raster file with euclidean distance. It contains information about how long it takes for a chopper to arrive to certain destinations. I then have a polygon made from a service area with ...
25
votes
6answers
23k 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 ...
20
votes
6answers
13k views

How to cluster spatial data in R?

I am very new to R. I have bunch of data points with latitude and longitude. I want to use R to cluster them based on their distance. I have already taken a look at this page and tried clustTool ...
5
votes
1answer
52 views

Pacific-wide Projection for distance?

I have a data set of ~3500 points located across the Pacific Ocean, and am looking to measure the distance from each point to it's nearest coastline to identify the "host" country. I had originally ...
2
votes
1answer
29 views

Finding distance of a building from road junction

I have a peculiar problem which i cannot think of way to solve. I need to find distance of a building from the nearest road junction. This would include distance to the nearest road and how far is ...
0
votes
0answers
29 views

How to calculate multiple travel times using gmapsdistance?

I am trying to use gmapsdistance on R to calculate multiple transit times from Google Maps. I have a Google API key and can generate transit travel times for one origin and one destination with the ...
2
votes
2answers
134 views

Shapely Distance different from Geopy/Haversine

I am running a specific analysis where we use shapely to create buffers around points (store locations) and then check if other points (user locations) are present within that buffer value. When i ...
2
votes
0answers
51 views

Measure distance between points along a line in QGIS

I have a road network and different points connected to the roads. I would like to measure the distance between several points along the roads. Basically I want to do the same like the road graph ...