Skip to content

Commit

Permalink
#132 Account for new geom in odc-1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tisham Dhar authored and whatnick committed Jun 3, 2020
1 parent c6c0769 commit e063610
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion cubedash/summary/_extents.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,10 @@ def geographic_extent(self, region_code: str) -> GeometryCollection:
# So we're now converting to shapely to do it.
# TODO: Is there a nicer way to do this?
# pylint: disable=protected-access
return shapely.wkb.loads(extent._geom.ExportToWkb())
try:
return shapely.wkb.loads(extent._geom.ExportToWkb())
except AttributeError:
return extent.geom

def region_label(self, region_code: str) -> str:
return "Tile {:+d}, {:+d}".format(*_from_xy_region_code(region_code))
Expand Down
4 changes: 2 additions & 2 deletions requirements-docker.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
--extra-index-url https://packages.dea.ga.gov.au/
--extra-index-url https://packages.dea.ga.gov.au/ --pre
digitalearthau
datacube
datacube>=1.8.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"cachetools",
"click",
"dataclasses>=0.6;python_version<'3.7'",
"datacube>=1.7",
"datacube>=1.8",
"fiona",
"flask",
"Flask-Caching",
Expand Down

0 comments on commit e063610

Please sign in to comment.