public LayerGroupInfo createLayerGroup() { return new LayerGroupInfoImpl(); }
public static LayerGroupInfoImpl mockGroup(String name, LayerInfo... layers) { LayerGroupInfoImpl lg = new LayerGroupInfoImpl(); lg.setId("id-" + name); lg.setName(name); lg.setLayers(Lists.newArrayList(layers)); lg.setBounds(new ReferencedEnvelope(-180, -90, 180, 90, DefaultGeographicCRS.WGS84)); return lg; }
styles.add(catalog.getLayerByName("Buildings").getDefaultStyle()); styles.add(catalog.getLayerByName("DividedRoutes").getDefaultStyle()); LayerGroupInfoImpl layerGroup = new LayerGroupInfoImpl(); layerGroup.setName("layer_group"); layerGroup.setLayers(layers);
styles.add(catalog.getLayerByName("Buildings").getDefaultStyle()); styles.add(catalog.getLayerByName("DividedRoutes").getDefaultStyle()); LayerGroupInfoImpl layerGroup = new LayerGroupInfoImpl(); layerGroup.setName("layer_group"); layerGroup.setLayers(layers);
private void createTetLayerGroup() { Catalog catalog = getCatalog(); // preparing the list of layers LayerInfo roads = catalog.getLayerByName(new NameImpl(MockData.ROAD_SEGMENTS)); LayerInfo bridges = catalog.getLayerByName(new NameImpl(MockData.BRIDGES)); List<PublishedInfo> layers = Arrays.asList(roads, bridges); // creating the layer group LayerGroupInfoImpl layerGroup = new LayerGroupInfoImpl(); layerGroup.setId(TEST_LAYER_GROUP_NAME); layerGroup.setName(TEST_LAYER_GROUP_NAME); layerGroup.setLayers(layers); // adding a style, jms catalog handler expect the layer group to have styles layerGroup.setStyles(Arrays.asList(roads.getDefaultStyle(), bridges.getDefaultStyle())); // save the layer group catalog.add(layerGroup); } }
layerInfo.setStyles(alternateStyles); layerGroup = new LayerGroupInfoImpl(); final String layerGroupId = "mock-layergroup-id"; layerGroup.setId(layerGroupId);
LayerGroupInfo eoProduct = new LayerGroupInfoImpl(); eoProduct.setName("EO Sample"); eoProduct.setMode(LayerGroupInfo.Mode.EO);
LayerGroupInfo eoProduct = new LayerGroupInfoImpl(); eoProduct.setName("EO Sample"); eoProduct.setMode(LayerGroupInfo.Mode.EO);
catalog.add(wmsLayer); LayerGroupInfo layerGroup = new LayerGroupInfoImpl(); layerGroup.setTitle("layerGroup-Title"); layerGroup.setName("layerGroup-Name");