Package org.geotools.styling

Examples of org.geotools.styling.RasterSymbolizer.accept()


            TextSymbolizer ps = (TextSymbolizer) arg0;
            ps.accept(this);
        }
        if (arg0 instanceof RasterSymbolizer) {
            RasterSymbolizer ps = (RasterSymbolizer) arg0;
            ps.accept(this);
        }
    }

    public void visit( PointSymbolizer arg0 ) {
        arg0.getGraphic().accept(this);
View Full Code Here


            ps.accept(this);
        }

        if (sym instanceof RasterSymbolizer) {
            RasterSymbolizer rs = (RasterSymbolizer) sym;
            rs.accept(this);
        }
    }

    /*
     * (non-Javadoc)
 
View Full Code Here

    public void testRasterSymbolizerDuplication() {
      // create a default RasterSymbolizer
      RasterSymbolizer original = sb.createRasterSymbolizer();

      // duplicate it
      original.accept(visitor);
      RasterSymbolizer copy = (RasterSymbolizer) visitor.getCopy();
     
      // compare it
      assertNotNull(copy);
      assertEquals(original, copy);
View Full Code Here

    }

    public void testRasterSymbolizerWithUOM() throws Exception {
        RasterSymbolizer rasterSymb = sf.createRasterSymbolizer();
        rasterSymb.setUnitOfMeasure(UomOgcMapping.FOOT.getUnit());
        rasterSymb.accept(visitor);
        RasterSymbolizer clone = (RasterSymbolizer) visitor.getCopy();

        assertEquals(clone.getUnitOfMeasure(), rasterSymb.getUnitOfMeasure());

        RasterSymbolizer notEq = sf.createRasterSymbolizer();
View Full Code Here

        // Set a function as geometry
        Function geomFunc = ff.function("centroid", ff.property("thr_geom"));
        original.setGeometry(geomFunc);

        // duplicate it
        original.accept(visitor);
        RasterSymbolizer copy = (RasterSymbolizer) visitor.getCopy();

        // compare it
        assertEquals("Any Expression set as Geometry must be correctly replicated", geomFunc, copy
                .getGeometry());
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.