Closed karenmajewicz closed 4 weeks ago
Credentials for accessing GeoDev's S3 bucket have been generated for the Geoportal.
I added a few assets to this record:
https://geodev.btaa.org/admin/documents/d6ea0892-585b-4573-932d-e893a8216968/assets
They will download, but the PM Tiles will not display in a viewer
This was a link that worked previously, but the credentials expired: https://geobtaa-assets-dev.s3.us-east-2.amazonaws.com/store/asset/cc4742ab-0663-4d47-90b4-7bc0b2c84e45/fe6b24dbd756c20c76cbdbaa65743490.pmtiles?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIARXTIOBZOJJCDQO6D%2F20240528%2Fus-east-2%2Fs3%2Faws4_request&X-Amz-Date=20240528T173504Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=319b5a2a0546cf3b33e608ae7ae45002a3b1720724ebd9625ac9ed7f3269ea2a
I set up a test S3 bucket on a personal account. Working with Eliot, we got it so that the CORS worked for the PM Tiles. [ The address for the file in this bucket is here: https://pmtiles-test-jkl.s3.us-east-2.amazonaws.com/states.pmtiles
Here is the CORS setting:
[
{
"AllowedHeaders": [
"range",
"if-match"
],
"AllowedMethods": [
"GET",
"HEAD"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": [
"etag"
]
}
]
This folder has three types of assets: https://github.com/geobtaa/geodata-pilot/tree/main/000_fixtures
GeoProd is running the Geoportal's feature/kithe-thumbnails branch with support for file uploads with S3.