@Test public void testWKTMarkAlongLine() throws Exception { String xml = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" + "<StyledLayerDescriptor version=\"1.0.0\"" + " xsi:schemaLocation=\"http: + " xmlns=\"http: + " xmlns:xlink=\"http: + " <NamedLayer>" + " <Name>hel-zigzag</Name>" + " <UserStyle>" + " <Title>A sin wave line</Title>" + " <FeatureTypeStyle>" + " <Rule>" + " <Name>Sine Wave</Name>" + " <LineSymbolizer>" + " <Stroke>" + " <GraphicStroke>" + " <Graphic>" + " <Mark>" + " <WellKnownName>wkt: + " <Stroke>" + " <CssParameter name=\"stroke\">0x0000AA</CssParameter>" + " <CssParameter name=\"stroke-width\">3</CssParameter>" + " <CssParameter name=\"stroke-linecap\">round</CssParameter>" + " </Stroke>" + " </Mark>" + " <Size>20</Size>" + " </Graphic>" + " </GraphicStroke>" + " </Stroke>" + " <VendorOption name=\"markAlongLine\">true</VendorOption>" + " <VendorOption name=\"markAlongLineScaleLimit\">0.9</VendorOption>" + " <VendorOption name=\"markAlongLineSimplify\">0.4</VendorOption>" + " </LineSymbolizer>" + " </Rule>" + " </FeatureTypeStyle>" + " </UserStyle>" + " </NamedLayer>" + "</StyledLayerDescriptor>"; StringReader reader = new StringReader(xml); SLDParser sldParser = new SLDParser(sf, reader); Style[] styles = sldParser.readXML(); Style style = styles[0]; Rule rule = style.featureTypeStyles().get(0).rules().get(0); List<? extends Symbolizer> symbolizers = rule.symbolizers(); LineSymbolizer lineSymbolizer = (LineSymbolizer) symbolizers.get(0); assertNotNull(lineSymbolizer); SLDTransformer st = new SLDTransformer(); st.setExportDefaultValues(true); st.setIndentation(2); String lineSymbolizerXML = st.transform(rule); Document doc = buildTestDocument(lineSymbolizerXML); assertXpathExists(" assertXpathExists( " assertXpathExists( " }
public void setExportDefaultValues(boolean exportDefaultValues) { this.exportDefaultValues = exportDefaultValues; }
SLDTransformer extends TransformerBase { public void setExportDefaultValues(boolean exportDefaultValues) { this.exportDefaultValues = exportDefaultValues; } }
SLDTransformer extends TransformerBase { public void setExportDefaultValues(boolean exportDefaultValues) { this.exportDefaultValues = exportDefaultValues; } SLDTransformer();  SLDTransformer(Map nsBindings); }
SLDTransformer extends TransformerBase { public void setExportDefaultValues(boolean exportDefaultValues) { this.exportDefaultValues = exportDefaultValues; } SLDTransformer();  SLDTransformer(Map nsBindings); boolean isExportDefaultValues(); void setExportDefaultValues(boolean exportDefaultValues); Translator createTranslator(ContentHandler handler); static final void main(String[] args); }
SLDTransformer extends TransformerBase { public void setExportDefaultValues(boolean exportDefaultValues) { this.exportDefaultValues = exportDefaultValues; } SLDTransformer();  SLDTransformer(Map nsBindings); boolean isExportDefaultValues(); void setExportDefaultValues(boolean exportDefaultValues); Translator createTranslator(ContentHandler handler); static final void main(String[] args);  }