Skip to content

Commit f9dd420

Browse files
committed
update MVT notes
1 parent 4e26a34 commit f9dd420

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

en/output/tile_mode.txt

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
:Contact: pramsey at cleverelephant.ca
99
:Author: Jeff McKenna
1010
:Contact: jmckenna at gatewaygeomatics.com
11-
:Last Updated: 2025-07-25
11+
:Last Updated: 2025-07-26
1212

1313
.. contents:: Table of Contents
1414
:depth: 2
@@ -208,17 +208,33 @@ Since the MapServer 7.2.0 release, MapServer is able to output MVT vector tiles.
208208
and then compile MapServer with the `-DWITH_PROTOBUFC=ON` switch
209209

210210
- verify that your mapfile has a :ref:`PROJECTION` object defined for
211-
every :ref:`LAYER`
211+
every :ref:`LAYER` (to define the source projection for every layer)
212+
213+
.. code-block:: mapfile
214+
215+
LAYER
216+
...
217+
#the data's source projection
218+
# latlong, see https://spatialreference.org/ref/epsg/4326/
219+
PROJECTION
220+
"init=epsg:4326"
221+
END
222+
...
223+
END
212224

213225
- add an OUTPUTFORMAT block to your mapfile, such as :
214226

215227
.. code-block:: mapfile
216228

217-
OUTPUTFORMAT
218-
NAME "mvt"
219-
DRIVER MVT
220-
#FORMATOPTION "EXTENT=512" # default is 4096
221-
FORMATOPTION "EDGE_BUFFER=20"
229+
MAP
230+
...
231+
OUTPUTFORMAT
232+
NAME "mvt"
233+
DRIVER MVT
234+
#FORMATOPTION "EXTENT=512" # default is 4096
235+
FORMATOPTION "EDGE_BUFFER=20"
236+
END
237+
...
222238
END
223239

224240
- now test this output by adding the `&map.imagetype=mvt` switch to your earlier

0 commit comments

Comments
 (0)