You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+59-3Lines changed: 59 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,17 +56,73 @@ The only spatial engine with a Polars-native API, cost-model-driven index select
56
56
57
57
---
58
58
59
-
## API Reference Docs
59
+
## Example Operations
60
60
61
-
The full API reference, operation catalogue, and technical deep dive into the planner and cost model live at **[pranav-walimbe.github.io/PyCanopy](https://pranav-walimbe.github.io/PyCanopy)**.
The full pair frame is never materialised. Each probe morsel folds into per-group partials and combines at the end.
103
+
104
+
### Polygon intersects self-join
105
+
106
+
```python
107
+
from shapely.geometry import box
108
+
109
+
polygons = [box(i, 0, i +1.5, 1.0) for i inrange(10_000)]
110
+
sf = SpatialFrame.from_polygons(pl.DataFrame({"id": range(10_000), "geom": polygons}), geometry_col="geom")
111
+
112
+
overlaps = sf.intersects_pairs(key_col="id")
113
+
```
114
+
115
+
Returns all intersecting polygon pairs with overlap area and IoU. `key_col` replaces positional indices with values from that column.
116
+
117
+
For the full operation catalogue, index modes, streaming joins, and API reference see the **[docs site](https://pranav-walimbe.github.io/PyCanopy)**.
62
118
63
119
---
64
120
65
121
## Benchmarks
66
122
67
123
### Apache SpatialBench
68
124
69
-
Run on a single `m7i.2xlarge` (8 vCPU, 32 GB), the same hardware used by [Apache SpatialBench](https://github.com/apache/sedona-spatialbench). PyCanopy is measured live with `index_mode="auto"`.
125
+
Run on a single `m7i.2xlarge` (8 vCPU, 32 GB), the same hardware used by [Apache SpatialBench](https://github.com/apache/sedona-spatialbench). PyCanopy is measured live with `index_mode="auto"`. Results were produced using the benchmark harness in `bench/spatial_bench`.
0 commit comments