According to the documentation ( http://geopandas.org/user.html#geoseries ):
Binary operations can be applied between two GeoSeries, in which case the operation is performed stepwise. Two series will be aligned by matching indices.
Your examples should not work. Therefore, if you want to check that each point is in one polygon, you will need:
poly = GeoSeries(Polygon([(0,0), (0,2), (2,2), (2,0)]))
g1.intersects(poly.ix[0])
Outputs:
0 True
1 True
2 True
dtype: bool
, GeoSeries:
points.intersects(poly.unary_union)
. ( ) . :
from shapely.geometry import *
p1 = Point(.5,.5)
p2 = Point(.5,1)
p3 = Point(1,1)
poly = Polygon([(0,0), (0,2), (2,2), (2,0)])
for p in [p1, p2, p3]:
print(poly.intersects(p))
Shapely , .