-
Notifications
You must be signed in to change notification settings - Fork 74
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
Demo website isn't working #182
Comments
Whoops! Thanks for letting us know. The demo server runs an outdated version of Terracotta. I'm not sure how to best fix this (and avoid regressions in the future). Perhaps the Satlas and TC demo server should be separate deployments, where the latter one is deployed automatically on new releases (but they can use the same data). Would that be doable @j08lue? |
Yes. I'll set up a dedicated demo deployment (AWS Lambda) with latest Terracotta. How about we use some publicly available set of COGs and just index that? Any preferences? Maybe we can find some under this Twitter handle https://twitter.com/cogeotiff ... In the https://registry.opendata.aws/ there are
We could also include historical maps from https://prd-tnm.s3.amazonaws.com/StagedProducts/Maps/HistoricalTopo/GeoTIFF/CA/CA_Yosemite_299696_1897_125000_geo.tif |
Sure! Anything that's pretty to look at will do for me, really. If you can handle the AWS side of things and send me an access key, I can handle the Travis deployment. I think I would do it like this:
|
That hinges on the open data being cloud-optimized, though. Do you have any experience with that? Otherwise we would need to dump that into a dedicated S3 bucket (maybe the safer option anyway). |
Yes, the data I suggested is all COG. But we could also use our own data. The best would probably be to have both float and categorical data, so that we can nicely demo the color stretch functionality and users can also explore custom categorical color maps etc. So maybe I should just upload some of the old anyways. Regarding deployment/upgrades: you are not talking about doing this in CI/CD, are you? Because, AFAIK, Zappa still requires an admin-ish account to create all the resources and roles that the S3 / Lambda / API Gateway stack needs and I don't want to store that anywhere, not even in GitHub/Travis secrets. |
Don't bother with categorical data, the viewer doesn't expose that functionality.
Even when updating a Lambda? I imagine that S3 push access should be enough (but might be a PITA to figure out all the permissions) |
@j08lue Would it be possible to make a SQLite version of the Satlas database and deploy that for now? Just so we get the demo up and running again. |
Do you have a working demo right now? I've just checked it and the linked demo still dies with the same error. |
I am terribly behind on getting a demo back up and will try to bump that up the priority list now. But in the meantime, you would be welcome to check out a deployment we have elsewhere: https://ix8zgaqqe1.execute-api.eu-central-1.amazonaws.com/production . |
Thanks for the reply, unfortunately it is a 404. I've managed to set up terracotta and test it on my computer, but I'm pretty sure it would be an important first step for other new users too to be able to see it before trying it out. |
Oh, sorry about that. The above URL is the Terracotta server deployment, so there is nothing to see there, but you can check out the REST API: the docs are at https://ix8zgaqqe1.execute-api.eu-central-1.amazonaws.com/production/apidoc. To see it in action in the browser, you actually need to run the demo web client yourself, like
You can also see the same server in action here: https://www.satlas.dk since we use it to feed that web app. Not the most recent viewer we have using Terracotta, but gives you an impression. We have probably 30 React web apps that show data hosted in various Terracotta deployments for various projects. Perhaps check out https://italy.satlas.dk or https://et4fao.dhigroup.com . I'll still fix the docs so they point to a working deployment, of course. |
I created a demo that uses the terracotta frontend. https://terracotta-demo-frontend.orangebeach-11aa4896.westeurope.azurecontainerapps.io/. It has a cold start so please be patient at the beginning I will add that to the docs in the near future with some explanation. |
Awesome, thanks @charalamm. Some questions:
|
Hello @dionhaefner
|
https://terracotta-python.readthedocs.io/en/latest/preview-app.html on loading, gives the following error in browser console
The text was updated successfully, but these errors were encountered: