[mapserver-commits] r11649 - in trunk/msautotest/query: . template

svn at osgeo.org svn at osgeo.org
Thu May 5 00:35:45 EDT 2011


Author: sdlime
Date: 2011-05-04 21:35:45 -0700 (Wed, 04 May 2011)
New Revision: 11649

Added:
   trunk/msautotest/query/template/feature.tmpl
Modified:
   trunk/msautotest/query/template.map
Log:
New test to try and show all the feature-level template tags.

Added: trunk/msautotest/query/template/feature.tmpl
===================================================================
--- trunk/msautotest/query/template/feature.tmpl	                        (rev 0)
+++ trunk/msautotest/query/template/feature.tmpl	2011-05-05 04:35:45 UTC (rev 11649)
@@ -0,0 +1,13 @@
+<!-- MapServer Template -->
+This template tests various per feature template output...
+[resultset layer="bdry_counpy2"]
+  --------------------------------------
+  [feature]
+    ITEM TAGS: [item name="cty_name"]:[item name="cty_abbr"]
+    OLD-STYLE TAG (case sensitive): [CTY_NAME], [cty_name]
+    SHPEXT (basic): [shpext]
+    SHPEXT (precision=0): [shpext precision="0"]
+    SHPXY (basic): [shpxy]
+  [/feature]
+  --------------------------------------
+[/resultset]

Modified: trunk/msautotest/query/template.map
===================================================================
--- trunk/msautotest/query/template.map	2011-05-05 04:04:47 UTC (rev 11648)
+++ trunk/msautotest/query/template.map	2011-05-05 04:35:45 UTC (rev 11649)
@@ -1,6 +1,7 @@
 #
 # Test 1: simple mode=query, HTML template 
 # RUN_PARMS: template_test001.html [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=query&qlayer=bdry_counpy2&mapxy=467000+5259000&qformat=html' > [RESULT_DEMIME]
+# RUN_PARMS: template_test002.html [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=query&qlayer=bdry_counpy2&mapxy=467000+5259000&qformat=feature' > [RESULT_DEMIME]
 #
 MAP
   NAME 'query'
@@ -14,6 +15,13 @@
     FORMATOPTION "FILE=template/html.tmpl"
   END
 
+  OUTPUTFORMAT
+    NAME 'feature'
+    DRIVER 'TEMPLATE'
+    MIMETYPE 'text/html'
+    FORMATOPTION "FILE=template/feature.tmpl"
+  END
+
   LAYER
     NAME 'bdry_counpy2'
     INCLUDE 'include/bdry_counpy2_shapefile.map'



More information about the mapserver-commits mailing list