Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Extension: Render (#1464) #1465

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
11 changes: 11 additions & 0 deletions pystac/extensions/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from pystac.extensions.pointcloud import PointcloudExtension
from pystac.extensions.projection import ProjectionExtension
from pystac.extensions.raster import RasterExtension
from pystac.extensions.render import Render, RenderExtension
from pystac.extensions.sar import SarExtension
from pystac.extensions.sat import SatExtension
from pystac.extensions.scientific import ScientificExtension
Expand All @@ -36,6 +37,7 @@
"pc",
"proj",
"raster",
"render",
"sar",
"sat",
"sci",
Expand All @@ -58,6 +60,7 @@
PointcloudExtension.name: PointcloudExtension,
ProjectionExtension.name: ProjectionExtension,
RasterExtension.name: RasterExtension,
RenderExtension.name: RenderExtension,
SarExtension.name: SarExtension,
SatExtension.name: SatExtension,
ScientificExtension.name: ScientificExtension,
Expand Down Expand Up @@ -110,6 +113,10 @@ def cube(self) -> DatacubeExtension[Collection]:
def item_assets(self) -> dict[str, AssetDefinition]:
return ItemAssetsExtension.ext(self.stac_object).item_assets

@property
def render(self) -> dict[str, Render]:
return RenderExtension.ext(self.stac_object).renders

@property
def sci(self) -> ScientificExtension[Collection]:
return ScientificExtension.ext(self.stac_object)
Expand Down Expand Up @@ -164,6 +171,10 @@ def pc(self) -> PointcloudExtension[Item]:
def proj(self) -> ProjectionExtension[Item]:
return ProjectionExtension.ext(self.stac_object)

@property
def render(self) -> RenderExtension[Item]:
return RenderExtension.ext(self.stac_object)

@property
def sar(self) -> SarExtension[Item]:
return SarExtension.ext(self.stac_object)
Expand Down
Loading