]> granicus.if.org Git - postgis/commitdiff
move to CLASS/STYLE mapserver 5.X syntax
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 12 Aug 2008 16:42:37 +0000 (16:42 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 12 Aug 2008 16:42:37 +0000 (16:42 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2916 b70326c6-7e19-0410-871a-916f4a2858ee

doc/using_postgis.xml

index a6e28a5bfe698e45a56baf9c248e9cc5499f3093..90d8a1eeb110cfa03dbfadca1d98287e8de6aea2 100644 (file)
@@ -1387,14 +1387,17 @@ gid  | name         | area
   CLASS 
     # Make the superhighways brighter and 2 pixels wide
     EXPRESSION ([numlanes] &gt;= 6) 
-    COLOR 255 22 22 
-    SYMBOL "solid" 
-    SIZE 2 
+    STYLE
+      COLOR 255 22 22 
+      WIDTH 2 
+    END
   END 
   CLASS 
     # All the rest are darker and only 1 pixel wide 
     EXPRESSION ([numlanes] &lt; 6) 
-    COLOR 205 92 82
+    STYLE
+      COLOR 205 92 82
+    END
   END 
 END</programlisting>
 
@@ -1658,7 +1661,9 @@ postgis# VACUUM ANALYZE; -- For PGSQL &gt;= 8.0</programlisting>
   STATUS ON 
   TYPE LINE 
   CLASS 
-    COLOR 0 0 0 
+    STYLE
+      COLOR 0 0 0 
+    END
   END 
 END</programlisting>
 
@@ -1689,11 +1694,15 @@ LAYER
   CLASSITEM road_type 
   CLASS 
     EXPRESSION "highway" 
-    SIZE 2 
-    COLOR 255 0 0  
+    STYLE
+      WIDTH 2 
+      COLOR 255 0 0  
+    END
   END 
   CLASS  
-    COLOR 0 0 0 
+    STYLE
+      COLOR 0 0 0 
+    END
   END 
 END</programlisting>
 
@@ -1729,7 +1738,7 @@ END</programlisting>
       COLOR 0 192 0 
       TYPE truetype 
       FONT arial
-    ENDl
+    END
   END 
 END</programlisting>