@@ -141,12 +141,17 @@ def get_collection_tiles(api: API, request: APIRequest,
141
141
142
142
tiling_schemes = p .get_tiling_schemes ()
143
143
144
+ datatype = 'vector'
145
+
146
+ if t ['format' ]['mimetype' ].startswith ('image' ):
147
+ datatype = 'map'
148
+
144
149
for matrix in tiling_schemes :
145
150
tile_matrix = {
146
151
'title' : dataset ,
147
152
'tileMatrixSetURI' : matrix .tileMatrixSetURI ,
148
153
'crs' : matrix .crs ,
149
- 'dataType' : 'vector' ,
154
+ 'dataType' : datatype ,
150
155
'links' : []
151
156
}
152
157
tile_matrix ['links' ].append ({
@@ -464,12 +469,17 @@ def get_oas_30(cfg: dict, locale: str) -> tuple[list[dict[str, str]], dict[str,
464
469
title = l10n .translate (v ['title' ], locale )
465
470
description = l10n .translate (v ['description' ], locale )
466
471
472
+ datatype = 'vector'
473
+
474
+ if tile_extension ['format' ]['mimetype' ].startswith ('image' ):
475
+ datatype = 'map'
476
+
467
477
paths [tiles_path ] = {
468
478
'get' : {
469
479
'summary' : f'Fetch a { title } tiles description' ,
470
480
'description' : description ,
471
481
'tags' : [k ],
472
- 'operationId' : f'describe{ k .capitalize ()} .collection.vector .getTileSetsList' , # noqa
482
+ 'operationId' : f'describe{ k .capitalize ()} .collection.{ datatype } .getTileSetsList' , # noqa
473
483
'parameters' : [
474
484
{'$ref' : '#/components/parameters/f' },
475
485
{'$ref' : '#/components/parameters/lang' }
@@ -490,7 +500,7 @@ def get_oas_30(cfg: dict, locale: str) -> tuple[list[dict[str, str]], dict[str,
490
500
'summary' : f'Get a { title } tile' ,
491
501
'description' : description ,
492
502
'tags' : [k ],
493
- 'operationId' : f'get{ k .capitalize ()} .collection.vector .getTile' , # noqa
503
+ 'operationId' : f'get{ k .capitalize ()} .collection.{ datatype } .getTile' , # noqa
494
504
'parameters' : [
495
505
{'$ref' : f"{ OPENAPI_YAML ['oapit' ]} #/components/parameters/tileMatrixSetId" }, # noqa
496
506
{'$ref' : f"{ OPENAPI_YAML ['oapit' ]} #/components/parameters/tileMatrix" }, # noqa
0 commit comments