44# Tanvi Prasad <tanvi.prasad@cdpg.org.in>
55# Bryan Robert <bryan.robert@cdpg.org.in>
66# Benjamin Webb <bwebb@lincolninst.edu>
7+ # Tom Kralidis <tomkralidis@gmail.com>
78#
89# Copyright (c) 2025 Prajwal Amaravati
910# Copyright (c) 2025 Tanvi Prasad
1011# Copyright (c) 2025 Bryan Robert
1112# Copyright (c) 2025 Benjamin Webb
13+ # Copyright (c) 2026 Tom Kralidis
1214#
1315# Permission is hereby granted, free of charge, to any person
1416# obtaining a copy of this software and associated documentation
@@ -229,11 +231,14 @@ def get_default_metadata(self, dataset, server_url, layer, tileset,
229231 tiling_scheme_url_type = 'application/json'
230232 tiling_scheme_url_title = f'{ schema .tileMatrixSet } tile matrix set definition' # noqa
231233
232- tiling_scheme = LinkType (
233- href = tiling_scheme_url ,
234- rel = 'http://www.opengis.net/def/rel/ogc/1.0/tiling-scheme' ,
235- type_ = tiling_scheme_url_type ,
236- title = tiling_scheme_url_title )
234+ link = {
235+ 'href' : tiling_scheme_url ,
236+ 'rel' : 'http://www.opengis.net/def/rel/ogc/1.0/tiling-scheme' , # noqa
237+ 'type' : tiling_scheme_url_type ,
238+ 'title' : tiling_scheme_url_title
239+ }
240+
241+ tiling_scheme = LinkType (** link )
237242
238243 if tiling_scheme is None :
239244 msg = 'Could not identify a valid tiling schema'
@@ -247,16 +252,22 @@ def get_default_metadata(self, dataset, server_url, layer, tileset,
247252 links = []
248253 service_url_link_type = 'application/vnd.mapbox-vector-tile'
249254 service_url_link_title = f'{ tileset } vector tiles for { layer } '
250- service_url_link = LinkType (href = service_url , rel = 'item' ,
251- type_ = service_url_link_type ,
252- title = service_url_link_title )
255+
256+ link = {
257+ 'href' : service_url ,
258+ 'rel' : 'item' ,
259+ 'type' : service_url_link_type ,
260+ 'title' : service_url_link_title
261+ }
262+
263+ service_url_link = LinkType (** link )
253264
254265 links .append (tiling_scheme )
255266 links .append (service_url_link )
256267
257268 content .links = links
258269
259- return content .model_dump (exclude_none = True )
270+ return content .model_dump (exclude_none = True , by_alias = True )
260271
261272 @staticmethod
262273 def get_envelope (z , y , x , tileset ):
0 commit comments