Given a set of points (with meters coordinates), I am trying to create lines between them. But I don't want to create lines of each pair of points, Iwant to create thoses lines if the distance between two points is inferior or equal to a threshold value (let's say 1000m).
And from there, I am quite lost. The distance()
function only returns a GeoSerie
of the points with themselves, so all my values are at 0.0
.
I am also facing issues with the buffer()
function, not knowing how to properly use the GeoSerie
result once computed.
From what I tested so far:
intersection()
returns aGeoSerie
with only one reference,sjoin
does not work withGeoSeries
- converting the buffer
GeoSerie
to aGeoDataFrame
results inAttributeError: No geometry data set yet (expected in column 'geometry'
Any leads about how to achieve that?