Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/stac-utils/pystac into s…
Browse files Browse the repository at this point in the history
…et_property

# Conflicts:
#	pystac/extensions/projection.py
  • Loading branch information
volaya committed Mar 4, 2021
2 parents ae7343f + eebfe89 commit f4ed8ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixed

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

### Changed

Expand Down
8 changes: 8 additions & 0 deletions tests/extensions/test_projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ def test_apply(self):
shape=[100, 100],
transform=[30.0, 0.0, 224985.0, 0.0, -30.0, 6790215.0, 0.0, 0.0, 1.0])

def test_partial_apply(self):
proj_item = pystac.read_file(self.example_uri)

proj_item.ext.projection.apply(epsg=1111)

self.assertEqual(proj_item.ext.projection.epsg, 1111)
proj_item.validate()

def test_validate_proj(self):
item = pystac.read_file(self.example_uri)
item.validate()
Expand Down

0 comments on commit f4ed8ba

Please sign in to comment.