@@ -132,20 +132,23 @@ def map(
132132 )
133133
134134
135+ prefix = pc_tile_factory .operation_prefix
136+
137+
135138# crop/feature endpoint compat with titiler<0.15 (`/crop` was renamed `/feature`)
136139@pc_tile_factory .router .post (
137140 r"/crop" ,
138- operation_id = f"{ pc_tile_factory . operation_prefix } postDataForGeoJSONCrop" ,
141+ operation_id = f"{ prefix } postDataForGeoJSONCrop" ,
139142 ** img_endpoint_params ,
140143)
141144@pc_tile_factory .router .post (
142145 r"/crop.{format}" ,
143- operation_id = f"{ pc_tile_factory . operation_prefix } postDataForGeoJSONWithFormatCrop" ,
146+ operation_id = f"{ prefix } postDataForGeoJSONWithFormatCrop" ,
144147 ** img_endpoint_params ,
145148)
146149@pc_tile_factory .router .post (
147150 r"/crop/{width}x{height}.{format}" ,
148- operation_id = f"{ pc_tile_factory . operation_prefix } postDataForGeoJSONWithSizesAndFormatCrop" ,
151+ operation_id = f"{ prefix } postDataForGeoJSONWithSizesAndFormatCrop" ,
149152 ** img_endpoint_params ,
150153)
151154def geojson_crop ( # type: ignore
@@ -156,7 +159,7 @@ def geojson_crop( # type: ignore
156159 format : Annotated [
157160 ImageType ,
158161 Field (
159- description = "Default will be automatically defined if the output image needs a mask (png) or not (jpeg)."
162+ description = "Default will be automatically defined if the output image needs a mask (png) or not (jpeg)." # noqa: E501
160163 ),
161164 ] = None , # type: ignore[assignment]
162165 src_path = Depends (pc_tile_factory .path_dependency ),
@@ -196,42 +199,42 @@ def geojson_crop( # type: ignore
196199# /tiles endpoint compat with titiler<0.15, Optional `tileMatrixSetId`
197200@pc_tile_factory .router .get (
198201 "/tiles/{z}/{x}/{y}" ,
199- operation_id = f"{ pc_tile_factory . operation_prefix } getWebMercatorQuadTile" ,
202+ operation_id = f"{ prefix } getWebMercatorQuadTile" ,
200203 ** img_endpoint_params ,
201204)
202205@pc_tile_factory .router .get (
203206 "/tiles/{z}/{x}/{y}.{format}" ,
204- operation_id = f"{ pc_tile_factory . operation_prefix } getWebMercatorQuadTileWithFormat" ,
207+ operation_id = f"{ prefix } getWebMercatorQuadTileWithFormat" ,
205208 ** img_endpoint_params ,
206209)
207210@pc_tile_factory .router .get (
208211 "/tiles/{z}/{x}/{y}@{scale}x" ,
209- operation_id = f"{ pc_tile_factory . operation_prefix } getWebMercatorQuadTileWithScale" ,
212+ operation_id = f"{ prefix } getWebMercatorQuadTileWithScale" ,
210213 ** img_endpoint_params ,
211214)
212215@pc_tile_factory .router .get (
213216 "/tiles/{z}/{x}/{y}@{scale}x.{format}" ,
214- operation_id = f"{ pc_tile_factory . operation_prefix } getWebMercatorQuadTileWithFormatAndScale" ,
217+ operation_id = f"{ prefix } getWebMercatorQuadTileWithFormatAndScale" ,
215218 ** img_endpoint_params ,
216219)
217220def tile_compat ( # type: ignore
218221 request : fastapi .Request ,
219222 z : Annotated [
220223 int ,
221224 Path (
222- description = "Identifier (Z) selecting one of the scales defined in the TileMatrixSet and representing the scaleDenominator the tile." ,
225+ description = "Identifier (Z) selecting one of the scales defined in the TileMatrixSet and representing the scaleDenominator the tile." , # noqa: E501
223226 ),
224227 ],
225228 x : Annotated [
226229 int ,
227230 Path (
228- description = "Column (X) index of the tile on the selected TileMatrix. It cannot exceed the MatrixHeight-1 for the selected TileMatrix." ,
231+ description = "Column (X) index of the tile on the selected TileMatrix. It cannot exceed the MatrixHeight-1 for the selected TileMatrix." , # noqa: E501
229232 ),
230233 ],
231234 y : Annotated [
232235 int ,
233236 Path (
234- description = "Row (Y) index of the tile on the selected TileMatrix. It cannot exceed the MatrixWidth-1 for the selected TileMatrix." ,
237+ description = "Row (Y) index of the tile on the selected TileMatrix. It cannot exceed the MatrixWidth-1 for the selected TileMatrix." , # noqa: E501
235238 ),
236239 ],
237240 scale : Annotated [
@@ -241,7 +244,7 @@ def tile_compat( # type: ignore
241244 format : Annotated [
242245 Optional [ImageType ],
243246 Field (
244- description = "Default will be automatically defined if the output image needs a mask (png) or not (jpeg)."
247+ description = "Default will be automatically defined if the output image needs a mask (png) or not (jpeg)." # noqa: E501
245248 ),
246249 ] = None ,
247250 src_path = Depends (pc_tile_factory .path_dependency ),
@@ -293,7 +296,7 @@ def tilejson_compat( # type: ignore
293296 tile_format : Annotated [
294297 Optional [ImageType ],
295298 Query (
296- description = "Default will be automatically defined if the output image needs a mask (png) or not (jpeg)." ,
299+ description = "Default will be automatically defined if the output image needs a mask (png) or not (jpeg)." , # noqa: E501
297300 ),
298301 ] = None ,
299302 tile_scale : Annotated [
0 commit comments