@@ -135,17 +135,17 @@ def map(
135135# crop/feature endpoint compat with titiler<0.15 (`/crop` was renamed `/feature`)
136136@pc_tile_factory .router .post (
137137 r"/crop" ,
138- operation_id = f"{ self .operation_prefix } postDataForGeoJSONCrop" ,
138+ operation_id = f"{ pc_tile_factory .operation_prefix } postDataForGeoJSONCrop" ,
139139 ** img_endpoint_params ,
140140)
141141@pc_tile_factory .router .post (
142142 r"/crop.{format}" ,
143- operation_id = f"{ self .operation_prefix } postDataForGeoJSONWithFormatCrop" ,
143+ operation_id = f"{ pc_tile_factory .operation_prefix } postDataForGeoJSONWithFormatCrop" ,
144144 ** img_endpoint_params ,
145145)
146146@pc_tile_factory .router .post (
147147 r"/crop/{width}x{height}.{format}" ,
148- operation_id = f"{ self .operation_prefix } postDataForGeoJSONWithSizesAndFormatCrop" ,
148+ operation_id = f"{ pc_tile_factory .operation_prefix } postDataForGeoJSONWithSizesAndFormatCrop" ,
149149 ** img_endpoint_params ,
150150)
151151def geojson_crop ( # type: ignore
@@ -214,7 +214,7 @@ def geojson_crop( # type: ignore
214214 operation_id = f"{ pc_tile_factory .operation_prefix } getWebMercatorQuadTileWithFormatAndScale" ,
215215 ** img_endpoint_params ,
216216)
217- def tile_compat (
217+ def tile_compat ( # type: ignore
218218 request : fastapi .Request ,
219219 z : Annotated [
220220 int ,
@@ -239,7 +239,7 @@ def tile_compat(
239239 Field (gt = 0 , le = 4 , description = "Tile size scale. 1=256x256, 2=512x512..." ),
240240 ] = 1 ,
241241 format : Annotated [
242- ImageType ,
242+ Optional [ ImageType ] ,
243243 Field (
244244 description = "Default will be automatically defined if the output image needs a mask (png) or not (jpeg)."
245245 ),
@@ -288,7 +288,7 @@ def tile_compat(
288288 response_model_exclude_none = True ,
289289 operation_id = f"{ pc_tile_factory .operation_prefix } getWebMercatorQuadTileJSON" ,
290290)
291- def tilejson_compat (
291+ def tilejson_compat ( # type: ignore
292292 request : fastapi .Request ,
293293 tile_format : Annotated [
294294 Optional [ImageType ],
0 commit comments