Skip to content

Docs on adding extensions is misleading or incomplete #602

@alexgleith

Description

@alexgleith

The Extensions docs say that to add an extension you do:

import pystac
from pystac.extensions.eo import EOExtension

item = Item(...)  # See docs for creating an Item
eo_ext = EOExtension.ext(item)

But in practice you need to do:

EOExtension.add_to(item)
eo = EOExtension.ext(item)

Is this intended, and if yes, can we tweak the docs please?

Metadata

Metadata

Assignees

Labels

documentationIssues related to PySTAC documentation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions