Skip to content

Commit

Permalink
Remove conformance override in pgstac
Browse files Browse the repository at this point in the history
  • Loading branch information
moradology committed Aug 13, 2021
1 parent b6c8cef commit 73d57dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion stac_fastapi/pgstac/stac_fastapi/pgstac/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from stac_fastapi.pgstac.types.search import PgstacSearch
from stac_fastapi.types.core import AsyncBaseCoreClient
from stac_fastapi.types.errors import NotFoundError
from stac_fastapi.types.stac import Collection, Conformance, Item, ItemCollection
from stac_fastapi.types.stac import Collection, Item, ItemCollection

NumType = Union[float, int]

Expand Down
11 changes: 1 addition & 10 deletions stac_fastapi/sqlalchemy/stac_fastapi/sqlalchemy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from stac_fastapi.types.config import Settings
from stac_fastapi.types.core import BaseCoreClient
from stac_fastapi.types.errors import NotFoundError
from stac_fastapi.types.stac import Collection, Conformance, Item, ItemCollection
from stac_fastapi.types.stac import Collection, Item, ItemCollection

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -57,15 +57,6 @@ def _lookup_id(
raise NotFoundError(f"{table.__name__} {id} not found")
return row

def conformance(self, **kwargs) -> Conformance:
"""Conformance classes."""
return Conformance(
conformsTo=[
"https://stacspec.org/STAC-api.html",
"http://docs.opengeospatial.org/is/17-069r3/17-069r3.html#ats_geojson",
]
)

def all_collections(self, **kwargs) -> List[Collection]:
"""Read all collections from the database."""
base_url = str(kwargs["request"].base_url)
Expand Down

0 comments on commit 73d57dc

Please sign in to comment.