Examples of parseSLD()


Examples of org.geotools.styling.SLDParser.parseSLD()

            new GeneralEnvelope(new double[] { -90, -180 },
                new double[] { 90, 180 }));
   
    surl = TestData.url(this, "1band_Float32_test2.sld");
    stylereader = new SLDParser(sf, surl);
    sld = stylereader.parseSLD();
    // the RasterSymbolizer Helper
    rsh = new RasterSymbolizerHelper(gc, null);

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

Examples of org.geotools.styling.SLDParser.parseSLD()

    // 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

Examples of org.geotools.styling.SLDParser.parseSLD()

                // 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

Examples of org.geotools.styling.SLDParser.parseSLD()

       
  @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

Examples of org.geotools.styling.SLDParser.parseSLD()

   */
  @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

Examples of org.geotools.styling.SLDParser.parseSLD()

    ////
      GeneralEnvelope envelope = new GeneralEnvelope(new double[] { -180,-90 },new double[] { 180,90 });
            envelope.setCoordinateReferenceSystem(DefaultGeographicCRS.WGS84);       
    java.net.URL surl = TestData.url(this, "raster_dem.sld");
    SLDParser stylereader = new SLDParser(sf, surl);
    StyledLayerDescriptor sld = stylereader.parseSLD();

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

Examples of org.geotools.styling.SLDParser.parseSLD()

  }
  @org.junit.Test
  public void landsat() throws IOException, TransformerException {
    java.net.URL surl = TestData.url(this, "landsat.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

Examples of org.geotools.styling.SLDParser.parseSLD()

  @Test
  public void twoColorsTest() throws IOException{
    java.net.URL surl = TestData.url(this, "raster_discretecolors.sld");
    SLDParser stylereader = new SLDParser(sf, surl);
    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.getGridCoverageFactory(null)
View Full Code Here

Examples of org.geotools.styling.SLDParser.parseSLD()

    ////
    GeneralEnvelope envelope = new GeneralEnvelope(new double[] { -180,-90 },new double[] { 180,90 });
      envelope.setCoordinateReferenceSystem(DefaultGeographicCRS.WGS84);
    java.net.URL surl = TestData.url(this, "raster.sld");
    SLDParser stylereader = new SLDParser(sf, surl);
    StyledLayerDescriptor sld = stylereader.parseSLD();

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

Examples of org.geotools.styling.SLDParser.parseSLD()

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

    // build the RasterSymbolizer
    final RasterSymbolizer rs_1 = extractRasterSymbolizer(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.