Interface StyledLayerDescriptor

  • All Known Implementing Classes:

    public interface StyledLayerDescriptor
    Holds styling information (from a StyleLayerDescriptor document).

    This interface is bound to version 1.0 of the SLD specification.

    For many of us in geotools this is the reason we came along for the ride - a pretty picture. For documentation on the use of this class please consult the SLD 1.0 specification.

    We may experiment with our own (or SLD 1.1) ideas but will mark such experiments for you. This is only an issue of you are considering writing out these objects for interoptability with other systems.

    General stratagy for supporting multiple SLD versions (and experiments):

    • These interfaces will reflect the current published specification
    • Our implementations will be BIGGER and more capabile then any one specification
    • We cannot defined explicit interfaces tracking each version until we move to Java 5 (perferably GeoAPI would hold these anyways)
    • We can provided javadocs indicating extentions, and isolate these using the normal java convention: TextSymbolizer and TextSymbolizer2 (In short you will have to go out of your way to work with a hack or experiment, you won't depend on one by accident)
    • We can use Factories (aka SLD1Factory and SLD1_1Factory and SEFactory) to support the creation of conformant datastructures. Code (such as user interfaces) can be parameratized with these factories when they need to confirm to an exact version supported by an individual service. We hope that specifications are always adative, and will be forced to throw unsupported exceptions when functionality is removed from a specification.
    GeoTools 2.0
    Ian Turton, CCG, James Macgill, CCG, Jody Garnett, Refractions Research
    • Method Detail

      • setStyledLayers

        void setStyledLayers​(StyledLayer... layers)
      • addStyledLayer

        void addStyledLayer​(StyledLayer layer)
      • layers

        List<StyledLayer> layers()
        Direct access to layers list.
        Direct access to layers list.
      • getName

        String getName()
        Getter for property name.
        Value of property name.
      • setName

        void setName​(String name)
        Setter for property name.
        name - New value of property name.
      • getTitle

        String getTitle()
        Getter for property title.
        Value of property title.
      • setTitle

        void setTitle​(String title)
        Setter for property title.
        title - New value of property title.
      • getAbstract

        String getAbstract()
        Getter for property abstractStr.
        Value of property abstractStr.
      • setAbstract

        void setAbstract​(String abstractStr)
        Setter for property abstractStr.
        abstractStr - New value of property abstractStr.
      • accept

        void accept​(StyleVisitor visitor)
        Used to navigate a Style/SLD.