Skip to content

Commit 912c72d

Browse files
committed
document OGCAPI_HTML_TEMPLATE_DIRECTORY [build_translations]
1 parent a241c8a commit 912c72d

File tree

3 files changed

+60
-15
lines changed

3 files changed

+60
-15
lines changed

en/ogc/ogc_api.txt

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
:Author: Jeff McKenna
1111
:Contact: jmckenna at gatewaygeomatics.com
12-
:Last Updated: 2025-11-19
12+
:Last Updated: 2025-12-12
1313

1414
.. contents:: Table of Contents
1515
:depth: 3
@@ -104,10 +104,11 @@ Example 1. On Unix:
104104
::
105105

106106
$ ./mapserv -v
107-
MapServer version 8.1-dev OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ
108-
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG
109-
SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
110-
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
107+
MapServer version 8.7-dev PROJ version 9.7 GDAL version 3.11 OUTPUT=PNG
108+
OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
109+
SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV
110+
SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
111+
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
111112
SUPPORTS=OGCAPI_SERVER SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS
112113
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF
113114

@@ -116,13 +117,14 @@ Example 2. On Windows:
116117
::
117118

118119
C:\ms4w> mapserv -v
119-
MapServer version 8.1.0-dev (MS4W 5.0.0-dev) OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML
120-
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO
121-
SUPPORTS=SVG_SYMBOLS SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI
122-
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
123-
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=FASTCGI
124-
SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR
125-
INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF
120+
MapServer version 8.7.0-dev (MS4W 5.2.0) PROJ version 9.8
121+
GDAL version 3.13 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG
122+
SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=SVGCAIRO
123+
SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
124+
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
125+
SUPPORTS=OGCAPI_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
126+
SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
127+
INPUT=FLATGEOBUF
126128

127129
.. index::
128130
pair: WMS Server; Mapfile
@@ -141,6 +143,23 @@ mapfile such as::
141143
localdemo "/ms4w/apps/ogcapi-demo/ogcapi-demo.map"
142144
END
143145

146+
You can also point to the location of the HTML templates to use for
147+
`ogcapi?f=html` requests, by setting the `OGCAPI_HTML_TEMPLATE_DIRECTORY`
148+
environment variable in your CONFIG file, such as::
149+
150+
ENV
151+
#
152+
# OGC API
153+
#
154+
OGCAPI_HTML_TEMPLATE_DIRECTORY "/ms4w/share/ogcapi/templates/html-bootstrap/"
155+
END
156+
157+
.. NOTE::
158+
If the `OGCAPI_HTML_TEMPLATE_DIRECTORY` environment variable is not set, or
159+
the mapfile's WEB.METADATA parameter `oga_html_template_directory` is not set,
160+
then no HTML output will be generated (you may see a `"Template directory not
161+
set."` error message for `ogcapi?f=html` requests).
162+
144163
.. TIP::
145164
For Ubuntu users, by default MapServer will install
146165
a sample config file at */usr/local/etc/mapserver-sample.conf*, and you must

en/optimization/environment_variables.txt

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,9 @@ MS_OPENLAYERS_JS_URL
362362
pair: Environment variables; MS_TEMPPATH
363363

364364
MS_TEMPPATH
365-
Set the :ref:`WEB` `TEMPPATH`.
366-
367365
.. versionadded:: 6.0
366+
367+
Set the :ref:`WEB` `TEMPPATH`.
368368

369369
.. index::
370370
pair: Environment variables; MS_XMLMAPFILE_XSLT
@@ -377,6 +377,32 @@ MS_XMLMAPFILE_XSLT
377377

378378
.. index::
379379
pair: Environment variables; PROJ_DATA
380+
381+
.. index::
382+
pair: Environment variables; OGCAPI_HTML_TEMPLATE_DIRECTORY
383+
384+
OGCAPI_HTML_TEMPLATE_DIRECTORY
385+
.. versionadded:: 8.0
386+
387+
The `OGCAPI_HTML_TEMPLATE_DIRECTORY` environment variable can be set
388+
to point to the template files to use for HTML output for the
389+
OGCAPI: Features service.
390+
391+
If this variable is not set, or the mapfile's WEB.METADATA parameter
392+
`oga_html_template_directory` is not set, then no HTML output will be generated
393+
(you may see a `"Template directory not set."` error message for `ogcapi?f=html`
394+
requests).
395+
396+
Example CONFIG file contents::
397+
398+
ENV
399+
#
400+
# OGC API
401+
#
402+
OGCAPI_HTML_TEMPLATE_DIRECTORY "/ms4w/share/ogcapi/templates/html-bootstrap/"
403+
END
404+
405+
.. seealso:: :ref:`ogcapi` & :ref:`rfc134`
380406

381407
PROJ_DATA
382408
The `PROJ_DATA` environment variable or `CONFIG` directive can be

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
alabaster==1.0.0
22
docutils==0.22.3
3-
sphinx==9.0.1
3+
sphinx==9.0.4
44
sphinx-copybutton==0.5.2
55
sphinxcontrib-jquery==4.1
66
--extra-index-url https://test.pypi.org/simple/

0 commit comments

Comments
 (0)