Skip to content

Commit 303426d

Browse files
committed
point to vector optimization
1 parent f9dd420 commit 303426d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

en/mapfile/layer.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,18 @@ ENCODING [string]
380380
.. index::
381381
pair: LAYER; EXTENT
382382
:name: mapfile-layer-extent
383+
384+
.. _layer-extent:
383385

384386
EXTENT [minx] [miny] [maxx] [maxy]
385387
The spatial extent of the data. In most cases you will not need
386388
to specify this, but it can be used to avoid the speed cost of having
387389
MapServer compute the extents of the data. An application can also
388390
possibly use this value to override the extents of the map.
391+
392+
.. TIP::
393+
Setting EXTENT at the layer-level is a common optimization step
394+
for database connections (see :ref:`Vector Data Management & Optimization <vector-database-optimization>`)
389395

390396
.. index::
391397
pair: LAYER; FEATURE

en/optimization/vector.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
:Author: Jeff McKenna
1111
:Contact: jmckenna at gatewaygeomatics.com
1212
:Original Author: HostGIS
13-
:Last Updated: 2022-08-12
13+
:Last Updated: 2025-07-29
1414

1515
.. contents:: Table of Contents
1616
:depth: 3
@@ -426,6 +426,8 @@ The following steps will help you examine the issue (using a WFS case) :
426426

427427
.. index::
428428
pair: Optimization; Databases
429+
430+
.. _vector-database-optimization:
429431

430432
Databases in General (PostGIS, Oracle, SpatiaLite, GeoPackage, Microsoft SQL Server, MySQL)
431433
-------------------------------------------------------------------------------------------
@@ -453,7 +455,7 @@ Set EXTENT at the LAYER level of mapfile
453455
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
454456

455457
Also for performance, each of your LAYERs with a database connection should
456-
have EXTENT set at the layer level (as well as *ows_extent* metadata if you
458+
have :ref:`EXTENT <layer-extent>` set at the layer level (as well as *ows_extent* metadata if you
457459
are serving through OGC services), such as:
458460

459461
.. code-block:: mapfile

0 commit comments

Comments
 (0)