Skip to content

Commit 7535886

Browse files
authored
update MapScript map provider output formats (#2131)
* update MapScript map provider output formats * fix syntax in docs
1 parent 7b23766 commit 7535886

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

docs/source/publishing/stac.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ So, the following rules must be respected:
153153
File examples
154154
*************
155155

156-
**Structure of the catalog.json file**
156+
Structure of the ``catalog.json`` file:
157157

158158
.. code-block:: json
159159
@@ -215,7 +215,7 @@ The code above shows the root catalog. The sub-catalogs have an additional ``rel
215215
216216
-------------------------------------
217217

218-
**Structure of the ``collection.json`` file**
218+
Structure of the ``collection.json`` file:
219219

220220
Collections are similar to Catalogs with extra fields.
221221

@@ -272,7 +272,7 @@ Collections are similar to Catalogs with extra fields.
272272
}
273273
274274
275-
**Structure of the Item ``<id>.json`` file**
275+
Structure of the Item ``<id>.json`` file:
276276

277277
The example below shows the content of a file named ``arcticdem-frontiere-0.json``:
278278

pygeoapi/provider/mapscript_.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@
4040
LOGGER = logging.getLogger(__name__)
4141

4242
IMAGE_FORMATS = {
43-
'png': 'GD/PNG',
44-
'png24': 'GD/PNG24',
45-
'gif': 'GD/GIF',
46-
'jpeg': 'GD/JPEG'
43+
'png': 'AGG/PNG', # 24-bit by default
44+
'png8': 'AGG/PNG8',
45+
'jpeg': 'AGG/JPEG'
4746
}
4847

4948

0 commit comments

Comments
 (0)