Examples of layers()


Examples of org.geotools.map.MapContent.layers()

        DirectPosition2D pos = ev.getWorldPos();
        createReporter();
        report(pos);

        MapContent content = getMapPane().getMapContent();
        final int nlayers = content.layers().size();
        int n = 0;
        for (Layer layer : content.layers()) {
            if (layer.isSelected()) {
                InfoToolHelper helper = null;
View Full Code Here

Examples of org.geotools.map.MapContent.layers()

        report(pos);

        MapContent content = getMapPane().getMapContent();
        final int nlayers = content.layers().size();
        int n = 0;
        for (Layer layer : content.layers()) {
            if (layer.isSelected()) {
                InfoToolHelper helper = null;

                String layerName = layer.getTitle();
                if (layerName == null || layerName.length() == 0) {
View Full Code Here

Examples of org.geotools.map.MapContent.layers()

        DirectPosition2D pos = ev.getMapPosition();
        report(pos);

        MapContent context = getMapPane().getMapContent();
        for( Layer layer : context.layers() ) {
            if (layer.isSelected()) {
                InfoToolHelper<?> helper = null;

                String layerName = layer.getTitle();
                if (layerName == null || layerName.length() == 0) {
View Full Code Here

Examples of org.geotools.map.MapContent.layers()

            disconnectFromMapContent();
            MapContent newMapContent = (MapContent) ev.getData();
            connectToMapContent(newMapContent);
           
            if (newMapContent != null) {
                for (Layer layer : newMapContent.layers()) {
                    table.onAddLayer(layer);
                }
            }
        }
View Full Code Here

Examples of org.geotools.styling.StyledLayerDescriptor.layers()

            .andExpect(status().isOk())
            .andExpect(content().contentType(YsldMessageConverter.MEDIA_TYPE))
            .andReturn();

        StyledLayerDescriptor sld = Ysld.parse(result.getResponse().getContentAsString());
        Style style = ((NamedLayer)sld.layers().get(0)).getStyles()[0];

        assertTrue(style.featureTypeStyles().get(0).rules().get(0).symbolizers().get(0) instanceof PointSymbolizer);
    }

    @Test
View Full Code Here

Examples of org.geotools.styling.StyledLayerDescriptor.layers()

        // define feature type styles used to actually
        // define how features are rendered
        //
        layer.userStyles().add(style);

        sld.layers().add(layer);
    }

    @Test
    public void emailExample() {
        StyleBuilder builder = new StyleBuilder();
View Full Code Here

Examples of org.geotools.styling.StyledLayerDescriptor.layers()

   
    style.featureTypeStyles().add(featureTypeStyle);
   
    layer.userStyles().add(style);
   
    sld.layers().add(layer);
    // styleFactoryExample end
}

private void styleBuilderExample() throws Exception {
    // styleBuilderExample start
View Full Code Here

Examples of org.geotools.styling.StyledLayerDescriptor.layers()

    // define feature type styles used to actually
    // define how features are rendered
    //
    layer.userStyles().add(style);
   
    sld.layers().add(layer);
    // sldExample end
}

private void featureTypeStyleExample() {
    // featureTypeStyleExample start
View Full Code Here

Examples of org.geotools.styling.StyledLayerDescriptor.layers()

    final SLDParser parser = new SLDParser(
        CommonFactoryFinder.getStyleFactory(null),
        new ByteArrayInputStream(
            rulesBinary));
    final StyledLayerDescriptor sld = parser.parseSLD();
    final List<StyledLayer> layers = sld.layers();
    if ((layers != null) && !layers.isEmpty()) {
      // drill down to eventually get the rules from the sld
      for (final StyledLayer l : layers) {
        if (l instanceof NamedLayer) {
          final Style[] styles = ((NamedLayer) l).getStyles();
View Full Code Here

Examples of org.qi4j.api.structure.UsedLayersDescriptor.layers()

    {
        object();
        field( "name", visited.name() );
        array( "uses" );
        UsedLayersDescriptor usedLayersDescriptor = visited.usedLayers();
        for( LayerDescriptor used : usedLayersDescriptor.layers() )
        {
            value( used.name() );
        }
        endArray();
        array( "modules" );
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.