public ProductNodeGroup<Placemark> getGcpGroup(final Band band) { ProductNodeGroup<Placemark> gcpGroup = bandGCPGroup.get(createKey(band)); if(gcpGroup == null) { gcpGroup = new ProductNodeGroup<>(band.getProduct(), "ground_control_points", true); bandGCPGroup.put(createKey(band), gcpGroup); } return gcpGroup; }
autogroupingNodes[i] = new ProductNodeGroup<>(autoGrouping.get(i)[0]); autogroupingNodes[autoGrouping.size()] = new ProductNodeGroup<>(Bundle.LBL_BandGroupName()); for (int i = 0; i < this.group.getNodeCount(); i++) { final Band band = this.group.get(i);
autogroupingNodes[i] = new ProductNodeGroup<>(autoGrouping.get(i)[0]); autogroupingNodes[autoGrouping.size()] = new ProductNodeGroup<>(Bundle.LBL_TiePointGroupName()); for (int i = 0; i < this.group.getNodeCount(); i++) { final TiePointGrid tiePointGrid = this.group.get(i);
autogroupingNodes[i] = new ProductNodeGroup<>(autoGrouping.get(i)[0]); autogroupingNodes[autoGrouping.size()] = new ProductNodeGroup<>(Bundle.LBL_MaskGroupName()); for (int i = 0; i < this.group.getNodeCount(); i++) { final Mask mask = this.group.get(i);
private ProductNodeGroup<Mask> getMaskGroup() { if (product == null) { return null; } else if (visibleBand == null) { return product.getMaskGroup(); } else { final ProductNodeGroup<Mask> visibleMasks = new ProductNodeGroup<Mask>("Masks for " + visibleBand.getName()); final ProductNodeGroup<Mask> maskGroup = product.getMaskGroup(); for (int i = 0; i < maskGroup.getNodeCount(); i++) { final Mask mask = maskGroup.get(i); // todo - [multisize_products] fix: ask ImageGeometry whether mask and band have the same scenerastertransform if (mask.getRasterWidth() == visibleBand.getRasterWidth() && mask.getRasterHeight() == visibleBand.getRasterHeight()) { visibleMasks.add(mask); } } return visibleMasks; } }