[mapserver-commits] r12014 - branches/branch-6-0/docs/en/mapfile trunk/docs/en/mapfile

svn at osgeo.org svn at osgeo.org
Sat Aug 6 06:11:05 EDT 2011


Author: havatv
Date: 2011-08-06 03:11:05 -0700 (Sat, 06 Aug 2011)
New Revision: 12014

Modified:
   branches/branch-6-0/docs/en/mapfile/template.txt
   trunk/docs/en/mapfile/template.txt
Log:
Updating the explanation of inner ring templating (#3606).

Modified: branches/branch-6-0/docs/en/mapfile/template.txt
===================================================================
--- branches/branch-6-0/docs/en/mapfile/template.txt	2011-08-06 07:22:43 UTC (rev 12013)
+++ branches/branch-6-0/docs/en/mapfile/template.txt	2011-08-06 10:11:05 UTC (rev 12014)
@@ -579,19 +579,23 @@
      - cs=
              Coordinate separator.  Default is ",". 
     
-     - irh=, irf=
-             Characters to be put before (`irh`) and after (`irf`) an
-             inner ring (polygons).
+     - irh=, irf=, orh=, orf=
 
-     - orh=, orf=
-             Characters to be put before (`orh`) and after (`orf`) the
-             outer ring (polygons).  Defaults are "".
+             Characters to be put before (`irh`) and after (`irf`)
+             inner rings, and before (`orh`) and after (`orf`) outer
+             rings of polygons with holes.  Defaults are "".
 
+             .. note::
+                Within each polygon, the outer ring is always output
+                first, followed by the inner rings.
+
+             If neither `irh` nor `orh` are set, rings are output as
+             "parts" using `ph`/`pf`/`ps`.
+
      - ph=, pf=, ps=
              Characters to put before (`ph`) and after (`pf`) and
-             separators between (`ps`) feature parts (e.g. holes,
-             defaults are no characters).   Defaults are ph="", pf=""
-             and ps=" ".
+             separators between (`ps`) feature parts (e.g. rings of
+             multigeometries).  Defaults are ph="", pf="" and ps=" ".
      
      - precision=
              The number of decimal places to output for coordinates.
@@ -623,6 +627,24 @@
      ::
      
         [shpxy xh="(" yf=")"] will result in: (x1 y1),(x2 y2),(x3 y3)
+
+     And a more complicated example of outputting KML for
+     multipolygons which may potentially have holes (note that the
+     parameters must all be on one line):
+
+     :: 
+ 
+       <MultiGeometry> 
+           <Point> 
+             <coordinates>[shplabel proj=epsg:4326 precision=10],0</coordinates> 
+           </Point> 
+           [shpxy ph="<Polygon><tessellate>1</tessellate>" pf="</Polygon>" xf=","
+            xh=" " yh=" " yf=",0 " orh="<outerBoundaryIs><LinearRing><coordinates>"
+            orf="</coordinates></LinearRing></outerBoundaryIs>"
+            irh="<innerBoundaryIs><LinearRing><coordinates>"
+            irf="</coordinates></LinearRing></innerBoundaryIs>" proj=epsg:4326
+            precision=10] 
+       </MultiGeometry> 
         
 [tileindex]
      Index value of the current tile. If no tiles used for the current

Modified: trunk/docs/en/mapfile/template.txt
===================================================================
--- trunk/docs/en/mapfile/template.txt	2011-08-06 07:22:43 UTC (rev 12013)
+++ trunk/docs/en/mapfile/template.txt	2011-08-06 10:11:05 UTC (rev 12014)
@@ -579,19 +579,23 @@
      - cs=
              Coordinate separator.  Default is ",". 
     
-     - irh=, irf=
-             Characters to be put before (`irh`) and after (`irf`) an
-             inner ring (polygons).
+     - irh=, irf=, orh=, orf=
 
-     - orh=, orf=
-             Characters to be put before (`orh`) and after (`orf`) the
-             outer ring (polygons).  Defaults are "".
+             Characters to be put before (`irh`) and after (`irf`)
+             inner rings, and before (`orh`) and after (`orf`) outer
+             rings of polygons with holes.  Defaults are "".
 
+             .. note::
+                Within each polygon, the outer ring is always output
+                first, followed by the inner rings.
+
+             If neither `irh` nor `orh` are set, rings are output as
+             "parts" using `ph`/`pf`/`ps`.
+
      - ph=, pf=, ps=
              Characters to put before (`ph`) and after (`pf`) and
-             separators between (`ps`) feature parts (e.g. holes,
-             defaults are no characters).   Defaults are ph="", pf=""
-             and ps=" ".
+             separators between (`ps`) feature parts (e.g. rings of
+             multigeometries).  Defaults are ph="", pf="" and ps=" ".
      
      - precision=
              The number of decimal places to output for coordinates.
@@ -623,6 +627,24 @@
      ::
      
         [shpxy xh="(" yf=")"] will result in: (x1 y1),(x2 y2),(x3 y3)
+
+     And a more complicated example of outputting KML for
+     multipolygons which may potentially have holes (note that the
+     parameters must all be on one line):
+
+     :: 
+ 
+       <MultiGeometry> 
+           <Point> 
+             <coordinates>[shplabel proj=epsg:4326 precision=10],0</coordinates> 
+           </Point> 
+           [shpxy ph="<Polygon><tessellate>1</tessellate>" pf="</Polygon>" xf=","
+            xh=" " yh=" " yf=",0 " orh="<outerBoundaryIs><LinearRing><coordinates>"
+            orf="</coordinates></LinearRing></outerBoundaryIs>"
+            irh="<innerBoundaryIs><LinearRing><coordinates>"
+            irf="</coordinates></LinearRing></innerBoundaryIs>" proj=epsg:4326
+            precision=10] 
+       </MultiGeometry> 
         
 [tileindex]
      Index value of the current tile. If no tiles used for the current



More information about the mapserver-commits mailing list