Examples of VectorLayerRasterizingInfo


Examples of org.geomajas.plugin.rasterizing.command.dto.VectorLayerRasterizingInfo

  private StyleFactory styleFactory = CommonFactoryFinder.getStyleFactory(null);

  @Test
  public void testLabels() throws IOException {
    VectorLayerRasterizingInfo vectorLayerRasterizingInfo = new VectorLayerRasterizingInfo();
    vectorLayerRasterizingInfo.setPaintGeometries(false);
    vectorLayerRasterizingInfo.setPaintLabels(true);
    RasterizingStyleVisitor visitor = new RasterizingStyleVisitor(vectorLayerRasterizingInfo);
    SLDParser parser = new SLDParser(styleFactory);
    parser.setInput(getClass().getResource("point_pointwithdefaultlabel.sld"));
    Style[] styles = parser.readXML();
    Assert.assertEquals(1, styles.length);
View Full Code Here

Examples of org.geomajas.plugin.rasterizing.command.dto.VectorLayerRasterizingInfo

    Assert.assertFalse(it.hasNext());
  }

  @Test
  public void testGeometries() throws IOException{
    VectorLayerRasterizingInfo vectorLayerRasterizingInfo = new VectorLayerRasterizingInfo();
    vectorLayerRasterizingInfo.setPaintGeometries(true);
    vectorLayerRasterizingInfo.setPaintLabels(false);
    RasterizingStyleVisitor visitor = new RasterizingStyleVisitor(vectorLayerRasterizingInfo);
    SLDParser parser = new SLDParser(styleFactory);
    parser.setInput(getClass().getResource("point_pointwithdefaultlabel.sld"));
    Style[] styles = parser.readXML();
    Assert.assertEquals(1, styles.length);
View Full Code Here

Examples of org.geomajas.plugin.rasterizing.command.dto.VectorLayerRasterizingInfo

    Assert.assertFalse(it.hasNext());
  }

  @Test
  public void testLabelsAndGeometries() throws IOException{
    VectorLayerRasterizingInfo vectorLayerRasterizingInfo = new VectorLayerRasterizingInfo();
    vectorLayerRasterizingInfo.setPaintGeometries(true);
    vectorLayerRasterizingInfo.setPaintLabels(true);
    RasterizingStyleVisitor visitor = new RasterizingStyleVisitor(vectorLayerRasterizingInfo);
    SLDParser parser = new SLDParser(styleFactory);
    parser.setInput(getClass().getResource("point_pointwithdefaultlabel.sld"));
    Style[] styles = parser.readXML();
    Assert.assertEquals(1, styles.length);
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.