From: Ian T. <ian...@us...> - 2002-06-27 16:27:04
|
Update of /cvsroot/geotools/geotools2/geotools-src/sldstyling/tests/unit/testData In directory usw-pr-cvs1:/tmp/cvs-serv27504/geotools-src/sldstyling/tests/unit/testData Modified Files: sample.sld Log Message: updated to test graphic fills and strokes Index: sample.sld =================================================================== RCS file: /cvsroot/geotools/geotools2/geotools-src/sldstyling/tests/unit/testData/sample.sld,v retrieving revision 1.8 retrieving revision 1.9 diff -w -C2 -d -r1.8 -r1.9 *** sample.sld 25 Jun 2002 16:21:14 -0000 1.8 --- sample.sld 27 Jun 2002 16:27:01 -0000 1.9 *************** *** 26,34 **** <CssParameter name="stroke">#FF0000</CssParameter> <CssParameter name="stroke-width">10</CssParameter> <GraphicFill> <Graphic> - <mark> <size>10</size> ! <wellknownname>square</wellknownname> <fill> <CssParameter name="fill">#00FF00</CssParameter> --- 26,65 ---- <CssParameter name="stroke">#FF0000</CssParameter> <CssParameter name="stroke-width">10</CssParameter> + </Stroke> + </LineSymbolizer> + <!-- multiple linesyombolizers are applied one after the other --> + <LineSymbolizer> + <Stroke> + <CssParameter name="stroke">#0000FF</CssParameter> + <CssParameter name="width"> + <Add> + <literal>1</literal> + <literal>2</literal> + </Add> + </CssParameter> + </Stroke> + </LineSymbolizer> + </Rule> + </FeatureTypeStyle> + + <FeatureTypeStyle> + <!-- this describes the featureTypeName to apply this style to e.g. road --> + <FeatureTypeName>linefeature2</FeatureTypeName> + <!-- the actual rule describes the style --> + <Rule> + <!-- these are lines so we need a line symbolizer --> + <LineSymbolizer> + <!-- A stroke describes how the line looks --> + <Stroke> + <!-- the CssParameters describe the actual style + you can set stroke (color of line), stroke-width, stroke-opacity, stroke-linejoin + stroke-linecap, stroke-dasharray and stroke-dashoffset --> + <CssParameter name="stroke">#FF0000</CssParameter> + <CssParameter name="stroke-width">10</CssParameter> <GraphicFill> <Graphic> <size>10</size> ! <mark> ! <wellknownname>triangle</wellknownname> <fill> <CssParameter name="fill">#00FF00</CssParameter> *************** *** 39,52 **** </Stroke> </LineSymbolizer> ! <!-- multiple linesyombolizers are applied one after the other --> <LineSymbolizer> <Stroke> ! <CssParameter name="stroke">#0000FF</CssParameter> ! <CssParameter name="width"> ! <Add> ! <literal>1</literal> ! <literal>2</literal> ! </Add> ! </CssParameter> </Stroke> </LineSymbolizer> --- 70,97 ---- </Stroke> </LineSymbolizer> ! </Rule> ! </FeatureTypeStyle> ! <FeatureTypeStyle> ! <FeatureTypeName>linefeature3</FeatureTypeName> ! <Rule> <LineSymbolizer> + <!-- A stroke describes how the line looks --> <Stroke> ! <!-- the CssParameters describe the actual style ! you can set stroke (color of line), stroke-width, stroke-opacity, stroke-linejoin ! stroke-linecap, stroke-dasharray and stroke-dashoffset --> ! <CssParameter name="stroke">#FF0000</CssParameter> ! <CssParameter name="stroke-width">10</CssParameter> ! <GraphicStroke> ! <Graphic> ! <size>15</size> ! <mark> ! <wellknownname>triangle</wellknownname> ! <fill> ! <CssParameter name="fill">#0000FF</CssParameter> ! </fill> ! </mark> ! </Graphic> ! </GraphicStroke> </Stroke> </LineSymbolizer> |