@Test public void testPreserveImageInfo() throws IOException { final Product product2 = ProductSubsetBuilder.createProductSubset(product, null, "subset", ""); final Band band = product2.getBand(INDEX_CODED_BAND_NAME); final Band band2 = product2.getBand(COLORED_BAND_NAME); assertNotNull(band); assertNotNull(band2); final ImageInfo imageInfo = band.getImageInfo(); final ImageInfo imageInfo2 = band2.getImageInfo(); assertNotNull(imageInfo); assertNotNull(imageInfo2); testPalette(imageInfo.getColorPaletteDef(), new Color[]{Color.red, Color.green}); testPalette(imageInfo2.getColorPaletteDef(), new Color[]{Color.blue, Color.black}); }
public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException { return createProductSubset(sourceProduct, false, subsetDef, name, desc); }
ProductSubsetBuilder extends AbstractProductBuilder { public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException { return createProductSubset(sourceProduct, false, subsetDef, name, desc); } }
ProductSubsetBuilder extends AbstractProductBuilder { public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException { return createProductSubset(sourceProduct, false, subsetDef, name, desc); } ProductSubsetBuilder();  ProductSubsetBuilder(boolean sourceProductOwner); }
ProductSubsetBuilder extends AbstractProductBuilder { public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException { return createProductSubset(sourceProduct, false, subsetDef, name, desc); } ProductSubsetBuilder();  ProductSubsetBuilder(boolean sourceProductOwner); static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name,
                                              String desc); static Product createProductSubset(Product sourceProduct, boolean sourceProductOwner,
                                              ProductSubsetDef subsetDef, String name, String desc); }
ProductSubsetBuilder extends AbstractProductBuilder { public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException { return createProductSubset(sourceProduct, false, subsetDef, name, desc); } ProductSubsetBuilder();  ProductSubsetBuilder(boolean sourceProductOwner); static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name,
                                              String desc); static Product createProductSubset(Product sourceProduct, boolean sourceProductOwner,
                                              ProductSubsetDef subsetDef, String name, String desc);  }