Examples of SymbolizerKey


Examples of org.geotools.renderer.style.SLDStyleFactory.SymbolizerKey

        symb.getGraphic().addMark(myMark);
       
        MarkStyle2D ms = (MarkStyle2D) sld.createStyle(feature, symb, range);
        assertNotNull(ms.getShape());
        // make sure the style has been recognized as dynamic
        SymbolizerKey key = new SymbolizerKey(symb, range);
        assertTrue(sld.dynamicSymbolizers.containsKey(key));
        Shape expected = new TTFMarkFactory().getShape(null, ff.literal("ttf://Serif#0xF054"), feature);
       
        // no general path equality implemented, we have to check manually
        PathIterator piExpected = expected.getPathIterator(new AffineTransform());
View Full Code Here

Examples of org.geotools.renderer.style.SLDStyleFactory.SymbolizerKey

        ExternalGraphic eg = sf.createExternalGraphic(url + "${icon}", "image/png");
        symb.getGraphic().addExternalGraphic(eg);
       
        GraphicStyle2D gs = (GraphicStyle2D) sld.createStyle(feature, symb, range);
        // make sure the style has been recognized as dynamic
        SymbolizerKey key = new SymbolizerKey(symb, range);
        assertTrue(sld.dynamicSymbolizers.containsKey(key));

        BufferedImage img = gs.getImage();
        BufferedImage expected = ImageIO.read(StreamingRenderer.class.getResource("test-data/draw.png"));
        assertEquals(expected.getHeight(), img.getHeight());
View Full Code Here

Examples of org.geotools.renderer.style.SLDStyleFactory.SymbolizerKey

        symb.getGraphic().addExternalGraphic(eg);
        sld.setVectorRenderingEnabled(true);
       
        GraphicStyle2D gs = (GraphicStyle2D) sld.createStyle(feature, symb, range);
        // make sure the style has been recognized as dynamic
        SymbolizerKey key = new SymbolizerKey(symb, range);
        assertTrue(sld.dynamicSymbolizers.containsKey(key));

        BufferedImage expected = ImageIO.read(StreamingRenderer.class.getResource("test-data/draw.png"));
        assertEquals(expected.getHeight(), gs.getImage().getHeight());
        assertEquals(expected.getWidth(), gs.getImage().getWidth());
View Full Code Here

Examples of org.geotools.renderer.style.SLDStyleFactory.SymbolizerKey

        ExternalGraphic eg = sf.createExternalGraphic(url + "${icon}", "${symb}");
        symb.getGraphic().addExternalGraphic(eg);
       
        GraphicStyle2D gs = (GraphicStyle2D) sld.createStyle(feature, symb, range);
        // make sure the style has been recognized as dynamic
        SymbolizerKey key = new SymbolizerKey(symb, range);
        assertTrue(sld.dynamicSymbolizers.containsKey(key));

        BufferedImage img = gs.getImage();
        BufferedImage expected = ImageIO.read(StreamingRenderer.class.getResource("test-data/draw.png"));
        assertEquals(expected.getHeight(), img.getHeight());
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.