This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sedona-db.git
The following commit(s) were added to refs/heads/main by this push:
new 9928717 docs: Update README.md code example and output (#132)
9928717 is described below
commit 9928717300e2db62fdfe1299a64c2d33e0088822
Author: Peter Nguyen <[email protected]>
AuthorDate: Mon Sep 22 22:00:41 2025 -0700
docs: Update README.md code example and output (#132)
---
README.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index bc5a1dc..3a1a0a4 100644
--- a/README.md
+++ b/README.md
@@ -88,6 +88,7 @@ sd = sedona.db.connect()
Set some AWS environment variables to access the data:
```python
+import os
os.environ["AWS_SKIP_SIGNATURE"] = "true"
os.environ["AWS_DEFAULT_REGION"] = "us-west-2"
```
@@ -98,6 +99,7 @@ Read the dataset into a Python SedonaDB `DataFrame`. This is
lazy: even though t
df = sd.read_parquet(
"s3://overturemaps-us-west-2/release/2025-08-20.0/theme=buildings/type=building/"
)
+df.to_view("buildings")
```
Now run a query to compute the centroids of tall buildings (above 20 meters)
in New York City:
@@ -130,7 +132,7 @@ Here's the query output:
```
┌─────────────────────────┬────────────────────┬────────────┬────────────┬─────────────────────────┐
│ id ┆ height ┆ num_floors ┆ roof_shape ┆
centroid │
-│ utf8view ┆ float64 ┆ int32 ┆ utf8view ┆
wkb <ogc:crs84> │
+│ utf8 ┆ float64 ┆ int32 ┆ utf8 ┆
geometry │
╞═════════════════════════╪════════════════════╪════════════╪════════════╪═════════════════════════╡
│ 1b9040c2-2e79-4f56-aba… ┆ 22.4 ┆ ┆ ┆
POINT(-74.230407502993… │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤