-
Notifications
You must be signed in to change notification settings - Fork 123
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
Documentation issues - Quickstart gives errors, and tutorial use of .ext fails #665
Comments
@robintw I think this was removed when STAC made the change from short extension IDs (e.g. |
Hmm, that's interesting. I wish STAC hadn't removed short extension IDs, they sound useful! I'll have a think about this and get back to you. |
One possibility that I considered here was to use the prefix (e.g. One option would be to just define our own convention. We could use a lower-cased version of the extension name with spaces and |
I've been trying to get familiar with PySTAC recently, and have found a number of issues with the documentation.
Quickstart
Running the code in the quickstart guide at https://pystac.readthedocs.io/en/1.0/quickstart.html gives a number of errors. For example, the first code block runs
from pystac import STAC_IO
, which fails as it should befrom pystac import StacIO
. A bit further down, the call tocat.get_children()
fails with aTypeError: list indices must be integers or slices, not str
(I couldn't work out how to fix this). I suspect there may be other issues too.Tutorials
In the Creating a Landsat STAC tutorial (https://pystac.readthedocs.io/en/1.0/tutorials/creating-a-landsat-stac.html#Adding-the-EO-extension), it tells you to run
item.ext.enable('eo')
but this fails, saying that theext
attribute doesn't exist. After asking this question on the STAC Gitter chat, I was told to follow the instructions here, which worked.(As an aside, I'd be interested as to why the
.ext
accessor was removed, as it seems to be a nicer way of adding extensions)The text was updated successfully, but these errors were encountered: