starepandas.STAREDataFrame.stare_intersects#
- STAREDataFrame.stare_intersects(other, method='binsearch', n_partitions=1, num_workers=None)#
Returns a
Seriesofdtype('bool')with valueTruefor each geometry that intersects other. An object is said to intersect other if its ring and interior intersects in any way with those of the other.- Parameters:
- other: int or listlike
The SID collection representing the spatial object to test if is intersected.
- method: str
Method for STARE intersects test ‘skiplist’, ‘binsearch’ or ‘nn’. Default: ‘binsearch’.
- n_partitions: int
number of dask dataframe partitions to use
- num_workers: int:
number of dask workers to use
Examples
>>> germany = [4251398048237748227, 4269412446747230211, 4278419646001971203, ... 4539628424389459971, 4548635623644200963, 4566650022153682947] >>> cities = {'name': ['berlin', 'madrid'], 'sid': [4258121269174388239, 4288120002905386575]} >>> cities = starepandas.STAREDataFrame(cities, sids='sid') >>> cities.stare_intersects(germany) 0 True 1 False dtype: bool