Skip to content
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

Floris/update stacs #54

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Floris/update stacs #54

wants to merge 16 commits into from

Conversation

FlorisCalkoen
Copy link
Collaborator

Hi @EtienneKras,

This is a PR with some nice changes for GCTS, GCTR, DeltaDTM as well as 2 new collections Coastal Zone and Coastal Grid.

  • GCTS and GCTR now include a HTTPS href under item.links.alternate
  • GCTS and GCTR now use the citation extension
  • DeltaDTM is now updated to V1.1 - (bug fix)
  • DeltaDTM now includes https hrefs instead of cloud uri's
  • DeltaDTM has now a link to the WMS server (instead of an asset). The link is at collection level. This should be communicated with @IoannaMi
  • New STACs for a coastal zone (vectorized coastline buffer)
  • New STACs for a coastal grid to process data at scale (somewhat similar to Deltares box system)
  • All new STACs now use the appropriate asset types
  • All new stacs now adhere to best practices on datetime usage

I have tested the four STACs and they look OK. Hopefully you can merge without any trouble!

@FlorisCalkoen FlorisCalkoen mentioned this pull request Dec 10, 2024
@FlorisCalkoen
Copy link
Collaborator Author

@IoannaMi @EtienneKras,

So In DeltaDTM I have referenced the WMS now in a STAC Link instead of as an asset. You can see that it nicely shows up in the browser under additional resources.

In PySTAC you can find the link under service:

coclico_catalog = pystac.Catalog.from_file(
    "https://coclico.blob.core.windows.net/stac/v1/catalog.json"
)

ddtm_collection = coclico_catalog.get_child("deltares-delta-dtm")
print(ddtm_collection.get_single_link("service"))

rel "service"
href "https://coclico.avi.deltares.nl/geoserver/cfhp/wms?bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&srs=EPSG:3857&transparent=true&width=256&height=256&layers=cfhp:HIGH_DEFENDED_MAPS_Mean_spring_tide"
type "application/vnd.ogc.wms_xml"
title "Geoserver WMS Link"

Similarly you can now find https references for STAC items that have a cloud uri in their asset:

coclico_catalog = pystac.Catalog.from_file(
    "https://coclico.blob.core.windows.net/stac/v1/catalog.json"
)
coastal_zone_collection = coclico_catalog.get_child("coastal-grid")
item = coastal_zone_collection.get_item("coastal_grid_z6_10000m")
href = item.assets["data"].href
print(href)

'az://coastal-grid/release/2024-12-10/coastal_grid_z6_10000m.parquet'

# the https protocol is stored under alternate
print(item.get_single_link("alternate"))

rel "alternate"
href "https://coclico.blob.core.windows.net/coastal-grid/release/2024-12-10/coastal_grid_z6_10000m.parquet"
type "application/vnd.apache.parquet"
title "HTTPS access"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant