From b7dc1d6739be89033ffbbf577bb0ab1b573e3bb4 Mon Sep 17 00:00:00 2001 From: Mathieu Tachon Date: Fri, 11 Aug 2023 13:45:14 +0200 Subject: [PATCH] Allow JSON as output format by default --- pygeoapi/provider/rasterio_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeoapi/provider/rasterio_.py b/pygeoapi/provider/rasterio_.py index ff67756e6..2848095a2 100644 --- a/pygeoapi/provider/rasterio_.py +++ b/pygeoapi/provider/rasterio_.py @@ -176,7 +176,7 @@ def query(self, properties=[], subsets={}, bbox=None, bbox_crs=4326, :returns: coverage data as dict of CoverageJSON or native format """ - if format_.lower() not in ( + if format_ != 'json' and format_.lower() not in ( f.lower() for f in self.supported_output_formats ): msg = f'Invalid format: {format_}'