# Tag Info

4

If you inverse the coordinates, it does not work (geopy uses (latitude,longitude) in the WGS84 crs) dublin = (53.33306,-6.24889) liverpool = ( 53.41058,-2.97794) print distance(dublin, liverpool).km 217.863019038 print(vincenty(dublin, liverpool).kilometers) 217.863019038 print(great_circle(dublin, liverpool).kilometers) 217.211596704 GEOS (...

3

Have you tried the Points2One plugin mentioned in this post. You should be able to create lines, grouped by the point IDs. Once you have the line layer you could calculate a line length to get the distance between the two points. FYI - using the plugin on Mac created the line layer but wouldn't add it to my project, I thought it did't work but it does. You ...

3

There are a couple of versions of this tool. If you use the one from the Processing Toolbox, it will contain distances within the origin points. Instead, use the Distance Matrix tool from the menubar: Vector > Analysis Tools > Distance Matrix This version ignores calculating the distance of the origin points with itself.

3

For FME it's best to have FME2015 or newer, because it has a new option for "Number of Neighbors to Find": Here I find the nearest three parks to a specific location. Notice I set Neighbors to Find = 3 and set a list name as ParkList. That list will contain the attributes of the three closest parks. I saved the above workspace as a template for FME 2016 ...

2

Perhaps the easiest way is using the near tool if you have the license. If you don't have the license then there are ways to code this functionality. Or you can possibly run a buffer of .5 m to create small polygons and then do a spatial join between the buffer and the point layers. Then you can select the points that share the same buffer feature ID.

2

The PostGIS extension of PostgreSQL contains an executable (shp2pgsql) to import shapefiles (.shp) to PostgreSQL. The pgRouting extension contains functions for the routing of networks (ways), such as pgr_dijkstra(). You could either write a stored procedure to do the automation or use python to access and automate the functions.

2

First of all what is your coordinate system? The people in your field are correct, the euclidean distance is the distance of a straight line between two points (also in 3 dimensions). When your coordinate system is a projected one it is usually a planar surface, thats also correct. But it is not correct to say it ignores surface curvature. You need to ...

2

A strikingly similar Q/A is here. Their question discusses finding the shortest path from a point to a coastline and the answer to their question gives a bit more detail on how to use the GRASS v.distance tool. Give it a shot. Basically, input your points as the 'from' layer and the coast as the 'to' layer. A new vector map can be created with lines ...

2

First create a buffer 10km from your lines, then either as @Micheal suggests select all the points that intersect the buffer (using the spatial query plugin) and then invert the selection. Or more directly select using isDisjoint (which is not intersects really).

2

You are correct in that it calculates the distance between your points to the centroid of polygons/lines. You could: Convert your polygon to lines (Vector > Geometry Tools > Polygons to Lines) Convert your lines to points (Processing Toolbox > SAGA > Shapes - Points > Convert Lines to Points) Then run the Hub distances using your main points ...

1

You can also use ST_PointN on the exterior ring of your polygon. SELECT ST_Distance(ST_PointN(geom, 1), ST_PointN(geom, 3)) dist FROM ( SELECT ST_ExteriorRing(geom) geom FROM my_polygon_layer ) a;

1

You can create a 0.5m buffer zone and then use the select by location tool (top toolbar under Selection). At the target layer you select the buffer and at the source layer prompt the other layer. At the spatial selection method you can select "are within the source layer feature".

1

Yes, you can. You need to use the Geostatical Analyst's "Areal Interpolation" method in ArcGIS. This will give you a statistically sound "smoothed" / interpolated surface for your data.

1

Disclaimer: I work for iGeolise To model travel times you can use the TravelTime platform API. It uses a range of transport and map sources to produce travel time isochrones including ATOC, DFT, TFL and open street map. The image attached is an example isochrone of all locations reachable within 45 minutes using public transport from Waterloo in London (...

Only top voted, non community-wiki answers of a minimum length are eligible