Skip to content

Commit

Permalink
update geoserver link
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneKras committed Nov 21, 2024
1 parent dac2f81 commit 0eb0c14
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion current/cba/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
]
},
"geoserver_link": {
"href": "https://coclico.avi.deltares.nl/geoserver/gwc/service/wmts?REQUEST=GetTile&SERVICE=WMTS&VERSION=1.0.0&LAYER=cfhp:lau_nuts_cfhp&STYLE=&TILEMATRIX=EPSG:900913:{z}&TILEMATRIXSET=EPSG:900913&FORMAT=application/vnd.mapbox-vector-tile&TILECOL={x}&TILEROW={y}",
"href": "https://coclico.avi.deltares.nl/geoserver/gwc/service/wmts?REQUEST=GetTile&SERVICE=WMTS&VERSION=1.0.0&LAYER=cba:GCF_open_CBA_country_all_EPSG4326&STYLE=&TILEMATRIX=EPSG:900913:{z}&TILEMATRIXSET=EPSG:900913&FORMAT=application/vnd.mapbox-vector-tile&TILECOL={x}&TILEROW={y}",
"type": "application/vnd.apache.parquet",
"title": "Geoserver Parquet link"
}
Expand Down
12 changes: 11 additions & 1 deletion scripts/create_stacs/33_cba_stacs.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,16 @@ def create_collection(
media_type=pystac.MediaType.JPEG,
),
)

collection.add_asset(
"geoserver_link",
pystac.Asset(
"https://coclico.avi.deltares.nl/geoserver/gwc/service/wmts?REQUEST=GetTile&SERVICE=WMTS&VERSION=1.0.0&LAYER=cba:GCF_open_CBA_country_all_EPSG4326&STYLE=&TILEMATRIX=EPSG:900913:{z}&TILEMATRIXSET=EPSG:900913&FORMAT=application/vnd.mapbox-vector-tile&TILECOL={x}&TILEROW={y}",
title="Geoserver Parquet link",
media_type="application/vnd.apache.parquet",
),
)

# collection.links = links
collection.keywords = metadata["KEYWORDS"]

Expand Down Expand Up @@ -449,7 +459,7 @@ def create_item(

# Also upload the Front-end geopackage if it exists
if FE_gpkg_fp != None:
# upload directory to the cloud (files already parquet)
# upload directory to the cloud (files already parquet)
file_to_google_cloud(
file_path=str(FE_gpkg_fp),
gcs_project=GCS_PROJECT,
Expand Down

0 comments on commit 0eb0c14

Please sign in to comment.