Package org.geotools.styling

Examples of org.geotools.styling.NamedLayer.addStyle()


    StyledLayerDescriptor sld = p.parseSLD();
    if (sld.getStyledLayers().length == 0) {
      Style[] style = p.readDOM();
      if (style.length > 0) {
        NamedLayer l = styleFactory.createNamedLayer();
        l.addStyle(style[0]);
        sld.addStyledLayer(l);
      }
    }
    return Styles.style(sld);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.