[mapserver-commits] r11435 - trunk/docs/en/mapfile

svn at osgeo.org svn at osgeo.org
Thu Mar 31 11:15:42 EDT 2011


Author: havatv
Date: 2011-03-31 08:15:41 -0700 (Thu, 31 Mar 2011)
New Revision: 11435

Modified:
   trunk/docs/en/mapfile/style.txt
Log:
STYLE: More detailed description for PATTERN

Modified: trunk/docs/en/mapfile/style.txt
===================================================================
--- trunk/docs/en/mapfile/style.txt	2011-03-31 14:47:48 UTC (rev 11434)
+++ trunk/docs/en/mapfile/style.txt	2011-03-31 15:15:41 UTC (rev 11435)
@@ -174,10 +174,28 @@
 
       The associated RFC document for this feature is :ref:`RFC19`.
 
-PATTERN [num on] [num off] [num on] ... END
+PATTERN [double on] [double off] [double on] [double off] ... END
 
-    Defines a dash style or pattern for line symbologies.
+    Defines a dash pattern for line work (lines, polygon outlines, ...).
+    The numbers (doubles) specify the lengths of the dashes and gaps
+    of the dash pattern in layer `SIZEUNITS`.
 
+    For scaling symbols (`SYMBOLSCALEDENOM` is specified for the
+    :ref:`LAYER`), the numbers specify the lengths of the dashes
+    and gaps in layer `SIZEUNITS` at the map scale 1:`SYMBOLSCALEDENOM`.
+
+    To specify a dashed line that is 5 units wide, with dash lengths
+    of 5 units and gaps of 5 units, the following style can be used:
+
+      .. code-block:: mapfile
+
+        STYLE
+          COLOR 0 0 0
+          WIDTH 5
+          LINECAP BUTT
+          PATTERN 5 5 END
+        END
+
     .. versionadded:: 6.0 moved from :ref:`SYMBOL`
 
 SIZE [double|attribute]



More information about the mapserver-commits mailing list