Skip to content

Commit 0516f9d

Browse files
authored
fix: proj:geometry (#120)
1 parent 9b9b47f commit 0516f9d

File tree

7 files changed

+1685
-1456
lines changed

7 files changed

+1685
-1456
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55

66
## [Unreleased]
77

8+
### Fixed
9+
10+
- `proj:geometry` ([#120](https://github.com/stac-utils/rustac-py/pull/120))
11+
812
## [0.7.0] - 2025-04-29
913

1014
### Added

Cargo.lock

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

tests/conftest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import json
22
from pathlib import Path
3+
from typing import cast
34

5+
import pystac
46
import pytest
57
from rustac import Item
68

@@ -29,3 +31,15 @@ def data(root: Path) -> Path:
2931
def item(examples: Path) -> Item:
3032
with open(examples / "simple-item.json") as f:
3133
return json.load(f)
34+
35+
36+
@pytest.fixture
37+
def maxar_items(root: Path) -> list[Item]:
38+
# https://github.com/stac-utils/rustac/issues/722
39+
directory = root / "tests" / "data" / "maxar-hurricane-ian-2022"
40+
item_a = pystac.read_file(directory / "031331303020" / "10300100DB064000.json")
41+
item_b = pystac.read_file(directory / "031331303211" / "10300100DB064000.json")
42+
return [
43+
cast(Item, item_a.to_dict(transform_hrefs=False)),
44+
cast(Item, item_b.to_dict(transform_hrefs=False)),
45+
]

0 commit comments

Comments
 (0)