-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
intersection and spatial join support for Point arrays #21
Conversation
Added comment with the numba error message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
|
||
from spatialpandas.geometry.base import GeometryDtype | ||
from spatialpandas.geometry.basefixed import GeometryFixed, GeometryFixedArray | ||
from dask.dataframe.extensions import make_array_nonempty | ||
from spatialpandas.utils import ngpjit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these be relative imports? Seems odd to see imports from "spatialpandas" inside spatialpandas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They could be, but this library is already Python 3 only (due to pandas dependency) so it works either way.
spatialpandas/tools/sjoin.py
Outdated
rsuffix: Suffix to apply to overlapping column names from the right GeoDataFrame | ||
|
||
Returns: | ||
GeoDataFrame or DaskGeoDataFrame |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where the type returned depends on left_df?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Added comment with the numba error message
…to point_intersect
This PR adds an initial partial implementation of the
intersects
andsjoin
operations.From the updated Overview notebook:
The most common use-case that this functionality is designed to support is performing a spatial join between a large
GeoDataFrame
orDaskGeoDataFrame
of Points and a small to moderate sizedGeoDataFrame
of (Multi)Polygons.As usual, the new functionality is tested against geopandas using hypothesis property tests.