Comments (3)
When we switched to namespace packages the TilesClient
(the actual implementation of BaseTilesClient
) was dropped. This is fixed in #118, once merged you should be able to enable the tiles extension as follows.
from stac_fastapi.api.app import StacApi
from stac_fastapi.extensions.third_party.tiles import TilesClient, TilesExtension
from stac_fastapi.sqlalchemy.config import SqlalchemySettings
from stac_fastapi.sqlalchemy.core import CoreCrudClient
from stac_fastapi.sqlalchemy.session import Session
settings = SqlalchemySettings()
session = Session.create_from_settings(settings)
db_client = CoreCrudClient(session=session)
api = StacApi(
settings=settings,
extensions=[
TilesExtension(TilesClient(db_client)),
],
client=db_client,
)
app = api.app
Really the only change from your code is we are passing the TilesClient
as a parameter to TilesExtension
. Because the tiles client also requires the database client, its worth pulling that out to global scope so you can re-use it. Once this is set up, when I navigate to one of the tiles
URLs I see the titiler viewer as expected:
from stac-fastapi.
@csaybar thanks for the issue! It wouldn't surprise me if the switch to submodules broke the titiler integration, as there aren't any test cases for this particular feature. I'll give it a try myself to see whats up!
from stac-fastapi.
Thank you @geospatial-jeff it works like a charm!
from stac-fastapi.
Related Issues (20)
- incorrect url in PyPI documentation HOT 1
- Cannot Import 'UndefinedType' from 'pydantic.fields' HOT 5
- Update to pydantic 2.0 HOT 8
- stac-fastapi deleting and recreating collection causes item insert errors HOT 7
- Configurable request models HOT 1
- Error during item insert depending on properties datetime value HOT 2
- ValueError: too many values to unpack in application startup when deployed as a Knative service on Kubernetes HOT 4
- Error AttributeError: 'BaseSearchPostRequest' object has no attribute 'conf' when searching STAC API with POST HOT 2
- Transaction extension inconsistency HOT 4
- CQL2_JSON missing from conformance class
- Add 'make test' to Makefile HOT 1
- Add support for the STAC API Collection Search Extension HOT 1
- Release v2.4.9 HOT 1
- Compute area coverage during search
- how to secure STAC-FASTAPI Transaction Extension HOT 1
- Collection update endpoint
- Upgrade fastapi version for Content-Type Header ReDoS HOT 1
- INFERRED_LINK_RELS is missing `items` links? HOT 1
- Datetime as null is not accepted by the STAC FASTAPI HOT 8
- Aliases in FilterExtensionGetRequest model are not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stac-fastapi.