[mapserver-commits] r11718 - in trunk/msautotest/wxs: . expected
svn at osgeo.org
svn at osgeo.org
Mon May 16 11:17:57 EDT 2011
Author: assefa
Date: 2011-05-16 08:17:57 -0700 (Mon, 16 May 2011)
New Revision: 11718
Added:
trunk/msautotest/wxs/expected/wms_get_map_multi_styles_same_layer.png
trunk/msautotest/wxs/expected/wms_get_map_multi_styles_sld_same_layer.png
Modified:
trunk/msautotest/wxs/wms_sld.map
Log:
test for multi styles using the same layer (#1602)
Added: trunk/msautotest/wxs/expected/wms_get_map_multi_styles_same_layer.png
===================================================================
(Binary files differ)
Property changes on: trunk/msautotest/wxs/expected/wms_get_map_multi_styles_same_layer.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/msautotest/wxs/expected/wms_get_map_multi_styles_sld_same_layer.png
===================================================================
(Binary files differ)
Property changes on: trunk/msautotest/wxs/expected/wms_get_map_multi_styles_sld_same_layer.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/msautotest/wxs/wms_sld.map
===================================================================
--- trunk/msautotest/wxs/wms_sld.map 2011-05-16 15:13:11 UTC (rev 11717)
+++ trunk/msautotest/wxs/wms_sld.map 2011-05-16 15:17:57 UTC (rev 11718)
@@ -71,6 +71,14 @@
# RUN_PARMS: wms_get_map_line_filter_islike.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-68.125,42,-58.375,48.5&FORMAT=image/png; mode=24bit&WIDTH=300&HEIGHT=200&STYLES=&LAYERS=road&sld_body=<StyledLayerDescriptor version='1.0.0'><NamedLayer><Name>road</Name><UserStyle><Title>xxx</Title><FeatureTypeStyle><Rule><Filter><Or><PropertyIsLike+wildCard='*'+singleChar='.'+escape='!'><PropertyName>NAME_E</PropertyName><Literal>Trans*</Literal></PropertyIsLike><PropertyIsLessThan><PropertyName>ROAD_ID</PropertyName><Literal>100</Literal></PropertyIsLessThan></OR></Filter><LineSymbolizer><Geometry><PropertyName>center-line</PropertyName></Geometry><Stroke><CssParameter name='stroke'>#0000ff</CssParameter><CssParameter name='stroke-width'>2.0</CssParameter></Stroke></LineSymbolizer></Rule></FeatureTypeStyle></UserStyle></NamedLayer></StyledLayerDescriptor>" > [RESULT_DEMIME]
#
+# Generate map image by using multi styles for the same layer
+# RUN_PARMS: wms_get_map_multi_styles_same_layer.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:4326&WIDTH=560&HEIGHT=350&LAYERS=road_styles,road_styles,road_styles&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE&EXCEPTIONS=INIMAGE&BBOX=44.6139013125,-66.998804375,48.0904731875,-61.436289375&STYLES=style_red,style_green,style_blue" > [RESULT_DEMIME]
+
+
+
+# Generate map image by using multi styles using sld for the same layer
+# RUN_PARMS: wms_get_map_multi_styles_sld_same_layer.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:4326&WIDTH=560&HEIGHT=350&LAYERS=road_styles,road_styles,road_styles&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE&EXCEPTIONS=INIMAGE&BBOX=44.6139013125,-66.998804375,48.0904731875,-61.436289375&SLD_BODY=%3CStyledLayerDescriptor%20version%3D%221.0.0%22%3E%0A%3CNamedLayer%3E%0A%3CName%3Eroad_styles%3C%2FName%3E%0A%3CUserStyle%3E%0A%3CTitle%3Exxx%3C%2FTitle%3E%0A%3CFeatureTypeStyle%3E%0A%3CRule%3E%0A%3CLineSymbolizer%3E%0A%3CGeometry%3E%0A%3CPropertyName%3Ecenter-line%3C%2FPropertyName%3E%0A%3C%2FGeometry%3E%0A%3CStroke%3E%0A%3CCssParameter%20name%3D%22stroke%22%3E%23ff0000%3C%2FCssParameter%3E%0A%3CCssParameter%20name%3D%22stroke-width%22%3E16%3C%2FCssParameter%3E%0A%3C%2FStroke%3E%0A%3C%2FLineSymbolizer%3E%0A%3C%2FRule%3E%0A%3C%2FFeatureTypeStyle%3E%0A%3C%2FUserStyle%3E%0A%3C%2FNamedLayer%3E%0A%3CNamedLayer%3E%0A%3CName%3Eroad
_styles%3C%2FName%3E%0A%3CUserStyle%3E%0A%3CTitle%3Exxx%3C%2FTitle%3E%0A%3CFeatureTypeStyle%3E%0A%3CRule%3E%0A%3CLineSymbolizer%3E%0A%3CGeometry%3E%0A%3CPropertyName%3Ecenter-line%3C%2FPropertyName%3E%0A%3C%2FGeometry%3E%0A%3CStroke%3E%0A%3CCssParameter%20name%3D%22stroke%22%3E%2300ff00%3C%2FCssParameter%3E%0A%3CCssParameter%20name%3D%22stroke-width%22%3E8%3C%2FCssParameter%3E%0A%3C%2FStroke%3E%0A%3C%2FLineSymbolizer%3E%0A%3C%2FRule%3E%0A%3C%2FFeatureTypeStyle%3E%0A%3C%2FUserStyle%3E%0A%3C%2FNamedLayer%3E%0A%3CNamedLayer%3E%0A%3CName%3Eroad_styles%3C%2FName%3E%0A%3CUserStyle%3E%0A%3CTitle%3Exxx%3C%2FTitle%3E%0A%3CFeatureTypeStyle%3E%0A%3CRule%3E%0A%3CLineSymbolizer%3E%0A%3CGeometry%3E%0A%3CPropertyName%3Ecenter-line%3C%2FPropertyName%3E%0A%3C%2FGeometry%3E%0A%3CStroke%3E%0A%3CCssParameter%20name%3D%22stroke%22%3E%230000ff%3C%2FCssParameter%3E%0A%3CCssParameter%20name%3D%22stroke-width%22%3E2%3C%2FCssParameter%3E%0A%3C%2FStroke%3E%0A%3C%2FLineSymbolizer%3E%0A%3C%2FRule%3E%0A%
3C%2FFeatureTypeStyle%3E%0A%3C%2FUserStyle%3E%0A%3C%2FNamedLayer%3E%0A%3C%2FStyledLayerDescriptor%3E%0A" > [RESULT_DEMIME]
+
MAP
NAME WMS_SLD
@@ -200,4 +208,53 @@
END # Layer
+LAYER
+ NAME road_styles
+ DATA road
+ METADATA
+ "wms_title" "road_styles"
+ "wms_description" "Roads of I.P.E."
+ END
+ TYPE LINE
+ STATUS ON
+ PROJECTION
+ "init=epsg:3978"
+ END
+
+ DUMP TRUE
+
+ CLASSITEM "Name_e"
+ CLASSGROUP 'style_red'
+ CLASS
+ GROUP 'style_red'
+ NAME "Roads"
+ STYLE
+
+ COLOR 220 0 0
+ WIDTH 16
+ END
+ END #Class
+
+ CLASS
+ GROUP 'style_green'
+ NAME "Roads"
+ STYLE
+
+ COLOR 0 220 0
+ WIDTH 8
+ END
+ END #Class
+
+ CLASS
+ GROUP 'style_blue'
+ NAME "Roads"
+ STYLE
+
+ COLOR 0 0 220
+ WIDTH 2
+ END
+ END #Class
+END # Layer
+
+
END # Map File
More information about the mapserver-commits
mailing list