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

Distance from point stored in geometry with SRID 4326

I have stored 2.5 million data points (addresses) using the geometry data type in column latlong with SRID 4326. The latlon - column has a GIST index defined. I would select all addresses within a ...
0
votes
0answers
11 views

How to take elevation into account in the haversine formula?

I know that I can use the haversine formula to find the great circle distance between two points specified as lat/lon pairs. Is it possible to integrate elevation into this calculation? I am ...
1
vote
1answer
19 views

Calculating distances of lines in R

I drew some lines in a GIS application in this projection: +proj=longlat+ellps=WGS84 +datum=WGS84 - is there a name for this projection? I imported my lines into R and to prepare for calculating ...
0
votes
1answer
213 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 ...
1
vote
2answers
66 views

Calculate distance between two points with QGIS 2.14.0

I don’t use QGIS that much. I have two shapefiles with the following information: List A: ID 1, xA, yA, ID 2, …. List B: ID 1, xB, yB, ID 2, …. x/y = lat/lon I want to calculate the ...
-1
votes
1answer
45 views

Calculate Cumulative Distance (incorporating slope) of a Line Feature Using ArcGIS

In ArcMap, when creating a line feature class within a geodatabase, the length of each record is automatically derived upon creation. This length is based on a distance measurement for a planar ...
4
votes
1answer
98 views

How to find the distance from a point to a polygon, via another point, in R

I am trying to calculate the distances between a central point, and the edge of a polygon, along straight lines drawn between the central point and another set of points (where necessary extended ...
0
votes
0answers
780 views

Bearing Distance to Line tool from dBASE table only draws one line in ArcGIS 10 [on hold]

I am using the Bearing Distance To Line tool to draw geodesic lines to points defined by a bearing and distance. This is an aside, but I will then use the Feature Vertices To Points tool to convert ...
0
votes
1answer
25 views

Furthest point from polygon/point

I want to calculate distance between smaller dots (they represent towns, villages etc.) and these larger red dots (capital cities of admin. region). My goal is to show wich location is the furthest ...
0
votes
1answer
134 views

PostGIS Get the POINT that is x meters away from a fixed point on the route (LINESTRING)

We have a route network stored in the routes table (LINESTRINGs). Basically every sedment (between two vertexes) is inserted as a separate row in this table. Among that we have a locations table (...
2
votes
1answer
31 views

Longitude difference to Meters

I have been trying to find an effective method (be it an equation or table filled with values) that would be useful for converting differences in longitude values into a distance in kilometers. It ...
2
votes
1answer
10k views

Calculating longitude length in miles?

Suppose I have geographic coordinates of "Saratoga, California, USA" as Latitude: 37°15.8298′ N Longitude: 122° 1.3806′ W I know from here that in case of latitude 1° ≈ 69 miles and that ...
1
vote
2answers
202 views

Calculate nearest feature with a barrier

I have three shapefiles: a) polyline with rivers and streams (also as polygon available to me), b) polylines of highways and roads and c) point file with locations in the riparian vegetation. I want ...
1
vote
0answers
49 views

How analyze reliability of position of new point based on point data

I am working on filter for biogeographical data. It is based on citizen science principle. People put new point data to database and I want add information about "reliability" or probability (maybe ...
0
votes
1answer
266 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: $GPGGA,...
1
vote
0answers
20 views

Calculate distance between polygons on two separate layers using ArcGIS for Desktop?

For my purposes, I need to find for each polygon in one feature dataset (red polygons) the outemost (from edge to edge) polygon in the second feature datasets (green polygons). Paradoxically, seeking ...
0
votes
1answer
312 views

Manipulating distances in python. Problem with ShapeLength [closed]

I have a question more than a problem. I'm getting the distance of a line using python with arcpy.da.SearchCursor or FeatureClassToNumPyArray. The result I get is a double. Example: arcpy.da....
2
votes
1answer
257 views

GeoDjango, distance filter based on database column

I have a geodjango model with fields coverage = 10 * 1609.344 reference_point = Point(-72,45) #or some other lat lng class ServiceArea (geo_models.Model): center = geo_models.PointField(default=...
1
vote
1answer
34 views

PostGis: Calculating distance in different methods, What's the difference?

What is the most efficient (or just "best practice") way to calculate distance between 2 points, assuming we are on 2D world without big circle etc. phenomenon (distances up to 300 meters). Method 1: ...
0
votes
0answers
27 views

ArcGIS Desktop 10.3: Time-variable minimum distance?

I'm currently running ArcGIS Desktop 10.3 and would like to build a new tool to determine the minimum distance between two point feature sets. The complexity comes from the fact that both datasets are ...
2
votes
1answer
556 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 ...
0
votes
0answers
28 views

Determining point distance along river in ArcGIS?

I have two sets of data: River networks -> line data Fish movement data -> points along the river Is there any way to calculate the distance between the points along the river distance, which is ...
0
votes
2answers
61 views

Calculating distance between latitude and longitude Python and CSV

I wanting to compare the distance between two sets of lat/long and I need help inputting my lat/long fields into the Haversine formula. I am able to print my two sets of lat/longs (print floats1, ...
1
vote
1answer
224 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
0answers
15 views

Interpreting results of ArcGIS Corridor tool?

The output of the Corridor tool of ArcGIS 10.1 (see picture below) is created using two inputs of the Cost Distance tool for two different sources - in this case habitat for giant pandas North of ...
0
votes
2answers
21 views

Problem with r.grow.distance on GRASS

I would like to use r.grow.distance on a raster map. I rasterised a shapefile (about 50 cities in a region) and we can see them on the raster map. Yet, when I launch r.grow.distance, I have a ...
1
vote
3answers
57 views

Split multiple polylines by distance in ArcGIS

Is there a method to split thousands of polylines by employing a tool like the "Editor" - "Split" method and using distance, in ArcGIS? When I utilize the "split" - "distance" tool (fig1), it ...
-2
votes
0answers
15 views

distance and altitude difference betweeen two rasters

I have to different raster, both in 30 arcsec and WGS1984. One raster contents selected landcover and the other raster is a DGM. For each landcover cell I need the shortest distance in km to the ...
0
votes
2answers
167 views

Hex grid on 4326 globe (for use in leaflet)

Im looking for a way to evenly distribute a hexagon grid (x,y,z) on the 4326 globe. Knowing this is not mathematically possible im accepting the following limitations: Poles doesnt need coverage - ...
1
vote
1answer
423 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 +x_0='+numZona+'...
1
vote
2answers
35 views

Creating a table that stores Distances and other column

I am looking to run a query to calculate the distance from a polygon to other features (will use this query on point, polygon, and line features) within 2 miles and create a table that will display ...
0
votes
1answer
48 views

R or ArcGis: average per polygon of the shortest distance to a river from each point in that polygon

All the shapefiles necessary can be found here. These are shapefiles of lakes, and rivers. Downloading one shapefile as an example should be enough to get me on the right track. The nuts file can be ...
5
votes
2answers
340 views

How to find Closest Facility (euclidean distance)?

I have some facilities and incidents, and I want to find the closest facility for each incident. I've done it via Network Analyst (with a network dataset) but I'm wondering if you can do it with just ...
1
vote
1answer
750 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 ...
0
votes
1answer
27 views

Perform closest facility analysis with Euclidean distance (without network analyst)

Is there anyway to use the closest facility analysis tool from Network analyst without actually having a network (streets) layer which means without using the network analyst? Because I want to find ...
0
votes
1answer
37 views

distance between two points on different direction [closed]

I want to measure the distance between two points on the horizon and vertical axis. Is any function on GIS can achieve this?
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
65 views

How can I create a circle feature that will have a constant radius in pixels even on zoom in and zoom out? [closed]

Creating SVG icons have also solve it with much greater flexibility: var svgXmlCircle = '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" ' + 'xmlns:xlink="http://www.w3....
1
vote
1answer
189 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 st_distance").order("...
0
votes
1answer
234 views

Calculate driving distance and time from 2 lat/lon points

I'm researching a way to calculate driving time and distance for 2 latitude and longitude points? I'm unable to use any 3rd party controls or maps. If possible it has to all be generated locally to ...
3
votes
3answers
433 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 lines....
1
vote
1answer
186 views

How to select all polygons where neighbor vertex points are below a distance threshold in arcmap

I have a shapefile with over 100k polygons (some of them have holes in them but apart from that they are simple polygons - no multipart). I want to loop through all of these polygons and select only ...
1
vote
0answers
47 views

Is there any difference between gdal_proximity.py and ArcGIS Euclidean Distance?

The gdal_proximity.py description says: The gdal_proximity.py script generates a raster proximity map indicating the distance from the center of each pixel to the center of the nearest pixel ...
1
vote
0answers
57 views

Finding loneliest place on earth? [closed]

I would like to travel to the loneliest place on earth. I define it as being the farthest from any human settlement. The place has to be on the land and not in the sea. I tried to google, but couldn'...
1
vote
1answer
16 views

Remoteness Measurements or Accessibility Models in Rural Areas in Africa

I have a points shapefile (villages) that are located in remote areas in Africa. I need to give each village a measure of "remoteness." I dont just want to do a "as the crow flies" calculation from ...
0
votes
0answers
23 views

Huge discrepancy between Google Earth and Google Map Developers

While measuring out the distance from Memphis, TN to a place in Israel (6614.68 statute miles) I noticed a 6.37 miles discrepancy between Google Map Developers (www.mapdevelopers.com) and Google Earth ...
2
votes
1answer
46 views

Distance to coast in specific direction

I have a point layer and want to know the distance to the coastline (line or polygon layer) from each point in a series of directions (0, 10, 20, 30 degrees, etc). I have found this python script (...
2
votes
1answer
83 views

QGIS: calculate distance between points

I'm using QGIS 2.8. I need to calculate the distance between points depending on points ID (not nearest point). I have a CSV table including points ID and coordinates. Each point is referenced on 2 ...
1
vote
1answer
36 views

QGIS _Distance from point to polygon- doubt

I want to calculate the distance between a shp of points and a shp with a few polygons. I am using MMQGIS (Hub distances), a UTM coordinate system, and everything works fine, but I think it is giving ...
2
votes
2answers
30 views

Postgis meassuring distance between first and third points of a polygon

I am using ST_DumpPoints() function first to get the list of the different points in the polygon but after doing that, the first point is in one record and the third point is in another record and I ...