I am trying to use Shapely's within
function to do a 'spatial join' of a LineString and a Point file (FYI, the point file was generated using the interpolate
function on the LineString
). Problem is - nothing is being returned.
# this condition is never satisfied
if point.within(line):
# here I write stuff to a file
where:
point = POINT (-9763788.9782693591000000 5488878.3678984242000000)
line = LINESTRING (-9765787.998118492 5488940.974948905, -9748582.801636808 5488402.127570709)
What am I missing?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…