Skip to content

Commit 8a6430c

Browse files
authored
fix: read proj geometry (#125)
cc @ceholden Closes #124
1 parent 8801a52 commit 8a6430c

File tree

3 files changed

+28
-17
lines changed

3 files changed

+28
-17
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88
### Fixed
99

1010
- Search ([#122](https://github.com/stac-utils/rustac-py/pull/122))
11+
- Reading `proj:geometry` (and other geometries) ([#125](https://github.com/stac-utils/rustac-py/pull/125))
1112

1213
## [0.7.1] - 2025-05-02
1314

Cargo.lock

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test_read.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from pathlib import Path
2+
from typing import Any
23

34
import rustac
45
from pystac import Item
@@ -17,3 +18,12 @@ async def test_asset_ordering(examples: Path) -> None:
1718
lists.append(list(item["assets"].keys()))
1819
for sublist in lists[1:]:
1920
assert lists[0] == sublist
21+
22+
23+
async def test_read_proj_geometry(
24+
tmp_path: Path, maxar_items: list[dict[str, Any]]
25+
) -> None:
26+
path = str(tmp_path / "out.parquet")
27+
await rustac.write(path, maxar_items)
28+
items = await rustac.read(path)
29+
assert len(items["features"]) == 2

0 commit comments

Comments
 (0)