title: How to use GeoPandas Spatial Index with lines?
body: <p>I am trying to find the nearest line to a bunch of points (about 24 billion points, 4 million lines). The points exist in one GeoDataFrame, while the lines exist in another. I tried to follow this: <a href="https://github.com/geopandas/geopandas/issues/140" rel="nofollow">https://github.com/geopandas/geopandas/issues/140</a>, and did this:</p>
  
  <pre><code>lines_sidx = lines_df['geom'].sindex
  [list(lines_sidx.intersection((points.loc[i,'geom'].y, points.loc[i,'geom'].x))) for i in range(len(points))]
  </code></pre>
  
  <p>And this just returns an empty list of lists. What is going on here?</p>
  
  <p>(Note that I am applying this to the first 100 lines and points from both datasets).</p>