Tag Info

Hot answers tagged

2

With Fiona and shapely (in pure Python, no need of ArcPy or PyQGIS) from shapely import shape import fiona # reading the 2 shapefiles feat1 = list(fiona.open('point1.shp')) # list of dictionaries feat2 = list(fiona.open('point2.shp')) # find the linear distance between points that are paired by their site_code attribute data pairs = zip(feat1,feat2) print ...


2

ArcGIS GUI solution: Merge all points into one file Run Points to Line tool, using site_code as Line Field. If you save it to a geodatabase, SHAPE_LENGTH will be the distance of the line. Otherwise, calculate the length of the line yourself. ArcGIS (10.1+) field calculator solution: This matches points with the same 'site_code' between two files. ...


1

You quote I want the distance that every point has from the coastline In fact if i got you "Generate Near Table" tool will work for you if you have Advance License (e.g. compare distance) but both point and line feature layers to be projected on the projected coordinate system beforehand. My clarification is as below..


1

The approach to this that I would use is to: Convert the vertices of your line to points using Feature Vertices To Point Calculate distances to those points from your original point using Point Distance Both tools require an Advanced level license but, if you do not have that, then searching this site may be able to uncover workarounds that create the ...


1

Have you looked at the Near tool? If I understand the question correctly, it seems like that might be the solution to your problem.



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