Skip to content

Commit f4ed8ba

Browse files
committed
Merge branch 'develop' of https://github.com/stac-utils/pystac into set_property
# Conflicts: # pystac/extensions/projection.py
2 parents ae7343f + eebfe89 commit f4ed8ba

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Fixed
66

77
- Fix handling of optional properties when using apply on view extension ([#259](https://github.com/stac-utils/pystac/pull/259))
8+
- Fixed issue with setting None into projection extension fields that are not required breaking validation ([#269](https://github.com/stac-utils/pystac/pull/269))
89

910
### Changed
1011

tests/extensions/test_projection.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ def test_apply(self):
9797
shape=[100, 100],
9898
transform=[30.0, 0.0, 224985.0, 0.0, -30.0, 6790215.0, 0.0, 0.0, 1.0])
9999

100+
def test_partial_apply(self):
101+
proj_item = pystac.read_file(self.example_uri)
102+
103+
proj_item.ext.projection.apply(epsg=1111)
104+
105+
self.assertEqual(proj_item.ext.projection.epsg, 1111)
106+
proj_item.validate()
107+
100108
def test_validate_proj(self):
101109
item = pystac.read_file(self.example_uri)
102110
item.validate()

0 commit comments

Comments
 (0)