Package org.geotools.styling

Examples of org.geotools.styling.StyledLayerDescriptor


    //    - ChannelSelection: Gray {Contrast Enh: Histogram}
    //
    // ////////////////////////////////////////////////////////////////////
    java.net.URL surl = TestData.url(this, "1band_Float32_test1.sld");
    SLDParser stylereader = new SLDParser(sf, surl);
    StyledLayerDescriptor sld = stylereader.parseSLD();
    // the RasterSymbolizer Helper
    SubchainStyleVisitorCoverageProcessingAdapter rsh = new RasterSymbolizerHelper(gc, null);

    // build the RasterSymbolizer
    final RasterSymbolizer rs_1 = extractRasterSymbolizer(sld);
View Full Code Here


    //    - ColorMap
    //
    // ////////////////////////////////////////////////////////////////////
    java.net.URL surl = TestData.url(this, "1band_Float32_test2.sld");
    SLDParser stylereader = new SLDParser(sf, surl);
    StyledLayerDescriptor sld = stylereader.parseSLD();
    // the RasterSymbolizer Helper
    SubchainStyleVisitorCoverageProcessingAdapter rsh = new RasterSymbolizerHelper(gc, null);

    // build the RasterSymbolizer
    final UserLayer nl = (UserLayer) sld.getStyledLayers()[0];
    final Style style = nl.getUserStyles()[0];
    final FeatureTypeStyle fts = style.getFeatureTypeStyles()[0];
    final Rule rule = fts.getRules()[0];
    final RasterSymbolizer rs_1 = (RasterSymbolizer) rule.getSymbolizers()[0];
View Full Code Here

    //    - Contrast Enh: Histogram
    //
    // ////////////////////////////////////////////////////////////////////
    java.net.URL surl = TestData.url(this, "4bands_UInt16_test1.sld");
    SLDParser stylereader = new SLDParser(sf, surl);
    StyledLayerDescriptor sld = stylereader.parseSLD();
    // the RasterSymbolizer Helper
    SubchainStyleVisitorCoverageProcessingAdapter rsh = new RasterSymbolizerHelper(gc, null);

    // build the RasterSymbolizer
    final RasterSymbolizer rs_1 = extractRasterSymbolizer(sld);
View Full Code Here

    //    - Contrast Enh: Histogram
    //
    // ////////////////////////////////////////////////////////////////////
    java.net.URL surl = TestData.url(this, "3bands_Byte_test1.sld");
    SLDParser stylereader = new SLDParser(sf, surl);
    StyledLayerDescriptor sld = stylereader.parseSLD();
    // the RasterSymbolizer Helper
    SubchainStyleVisitorCoverageProcessingAdapter rsh = new RasterSymbolizerHelper(gc, null);

    // build the RasterSymbolizer
    final RasterSymbolizer rs_1 = extractRasterSymbolizer(sld);
View Full Code Here

    //    - Contrast Enh: Histogram
    //
    // ////////////////////////////////////////////////////////////////////
    java.net.URL surl = TestData.url(this, "3bands_Byte_test2.sld");
    SLDParser stylereader = new SLDParser(sf, surl);
    StyledLayerDescriptor sld = stylereader.parseSLD();
    // the RasterSymbolizer Helper
    SubchainStyleVisitorCoverageProcessingAdapter rsh = new RasterSymbolizerHelper(gc, null);

    // build the RasterSymbolizer
    final RasterSymbolizer rs_1 = extractRasterSymbolizer(sld);
View Full Code Here

    //    - ChannelSelection: Gray {Contrast Enh: Histogram}
    //
    // ////////////////////////////////////////////////////////////////////
    java.net.URL surl = TestData.url(this, "1band_Float32_test1.sld");
    SLDParser stylereader = new SLDParser(sf, surl);
    StyledLayerDescriptor sld = stylereader.parseSLD();
    // the RasterSymbolizer Helper
    SubchainStyleVisitorCoverageProcessingAdapter rsh = new RasterSymbolizerHelper(gc, null);

    RasterSymbolizer rs_1 = extractRasterSymbolizer(sld);
View Full Code Here

    // Test using an SLD file
    //
    ////
    final URL sldURL = TestData.url(this, "colormap.sld");
    final SLDParser stylereader = new SLDParser(sf, sldURL);
    final StyledLayerDescriptor sld = stylereader.parseSLD();

    // get a coverage
    GeneralEnvelope envelope = new GeneralEnvelope(new double[] { -180,-90 },new double[] { 180,90 });
    envelope.setCoordinateReferenceSystem(DefaultGeographicCRS.WGS84);
          GridCoverage2D gc = CoverageFactoryFinder
View Full Code Here

                // Test using an SLD file
                //
                ////
                final URL sldURL = TestData.url(this, "colormap.sld");
                final SLDParser stylereader = new SLDParser(sf, sldURL);
                final StyledLayerDescriptor sld = stylereader.parseSLD();

                // get a coverage
                GridCoverage2D gc = CoverageFactoryFinder
                                .getGridCoverageFactory(null)
                                .create(
View Full Code Here

       
  @org.junit.Test
  public void rgb() throws IOException, TransformerException {
    java.net.URL surl = TestData.url(this, "testrgb.sld");
    SLDParser stylereader = new SLDParser(sf, surl);
    StyledLayerDescriptor sld = stylereader.parseSLD();

    final GridSampleDimension[] gsd={
        new GridSampleDimension("test1BandByte_SLD1"),
        new GridSampleDimension("test1BandByte_SLD2"),
        new GridSampleDimension("test1BandByte_SLD3"),
View Full Code Here

   */
  @Test
  public void testGapsColor() throws IOException{
            java.net.URL surl = TestData.url(this, "Topsoil-Organic-Carbon.sld");
            SLDParser stylereader = new SLDParser(sf, surl);
            StyledLayerDescriptor sld = stylereader.parseSLD();
   
            final GridSampleDimension[] gsd = { new GridSampleDimension("test1BandByte_SLD1")};
            // get a coverage
            GeneralEnvelope envelope = new GeneralEnvelope(new double[] { -180,-90 },new double[] { 180,90 });
            envelope.setCoordinateReferenceSystem(DefaultGeographicCRS.WGS84);             
View Full Code Here

TOP

Related Classes of org.geotools.styling.StyledLayerDescriptor

Copyright © 2018 www.massapicom. 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.