Results 181 issues of Tom Augspurger

[`__geo_interface__`](https://gist.github.com/sgillies/2217756) is a way for Python objects to return geojson (-like) representations of themselves. Should pystac objects implement this? This might be helpful for cases like https://github.com/stac-utils/pystac-client/issues/146, where libraries want...

enhancement

I'm writing up an extension, and my wrists hurt from all the typing :) I wonder if we could use [descriptors](https://docs.python.org/3/howto/descriptor.html) to cut down on the boilerplate. For a typical...

enhancement

Hi all, I'm tentatively making a pitch to add convenience methods for converting pystac objects (Asset, Item, ItemCollection, ...) and their linked assets to commonly used data containers (`xarray.Dataset`, `geopandas.GeoDataFrame`,...

enhancement

`Item.get_links` includes some arguments to filter which links are returned by `rel` and `media_type`: https://github.com/stac-utils/pystac/blob/876b60a8547d9307b564cfb372c1237b324c555b/pystac/stac_object.py#L115-L119 `Item.get_assets` would be more useful if it could filter on `roles` and `media_type`. We could...

In methods like https://github.com/stac-utils/pystac/blob/2e76a877b02eccf4d8e8ec6ad7b4aa7cf09aa268/pystac/collection.py#L100-L102, `.clone()` uses the class itself. ```python class Extent: def clone(self): return Extent(...) ``` Instead of hard-coding `Extent(...)` in the return there, we should use `type(self)(...)` to...

Currently, alternative constructors like `Collection.from_dict` define the return type as `"Collection"`. https://github.com/stac-utils/pystac/blob/2e76a877b02eccf4d8e8ec6ad7b4aa7cf09aa268/pystac/collection.py#L607-L615 This makes is hard for subclasses to properly override the methods, since they'll be returning the subclasses type....

https://github.com/stac-extensions/version offers a mechanism for marking a collection or item as deprecated. We at the Planetary Computer are deprecating our `landsat-8-c2-l2` collection in favor of `landsat-c2-l2`. I would love it...

I'm trying to diagnose a slowdown I'm observing in `pystac.to_dict()` is slower. Right now I'm unsure if the slowdown is due to a change in pystac or in our STAC...

In writing tests for #379, I stumbled over Asset objects not defining `__eq__`. ```python In [1]: import pystac In [2]: pystac.Asset(href='a') == pystac.Asset(href='a') Out[2]: False ``` Looking briefly, I don't...

enhancement
discussion

If I make a request to an endpoint for a collection that doesn't exists, I get a 404 ```python In [14]: import requests In [19]: r = requests.get("https://pct-pqe-staging.westeurope.cloudapp.azure.com/stac/v1/collections/not-a-collection") In [20]:...

pgstac
spec
sqlalchemy