+ outputPath + " containing " + w + " x " + h + " interpolated pixels of type " + ProductData.getTypeString(grid.getDataType()) + "...");
Band targetBand = new Band(sourceGrid.getName(), sourceGrid.getDataType(), width, height); ProductUtils.copyRasterDataNodeProperties(sourceGrid, targetBand); targetBand.setSourceImage(createTargetImage(sourceGrid, operationName, operationParameters, renderingHints));
targetBandName = slaveComponentPattern.replace(SOURCE_NAME_REFERENCE, targetBandName); final Band targetBand = targetProduct.addBand(targetBandName, sourceGrid.getDataType()); ProductUtils.copyRasterDataNodeProperties(sourceGrid, targetBand); sourceRasterMap.put(targetBand, sourceGrid);
"Name of TiePointGrid " + i + " expected <" + expTPGrid.getName() + "> but was <" + currentTPGrid.getName() + ">\r\n"); if (expTPGrid.getDataType() != currentTPGrid.getDataType()) { diff.append( "DataType of TiePointGrid " + i + " expected <" + expTPGrid.getDataType() + "> but was <" + currentTPGrid.getDataType() + ">\r\n");
@Override protected void computeProductData(ProductData productData, Rectangle destRect) throws IOException { if (getLevel() == 0) { getTiePointGrid().readPixels(destRect.x, destRect.y, destRect.width, destRect.height, (float[]) productData.getElems(), ProgressMonitor.NULL); } else { final int sourceWidth = getSourceWidth(destRect.width); final ProductData lineData = ProductData.createInstance(getTiePointGrid().getDataType(), sourceWidth); final int[] sourceCoords = getSourceCoords(sourceWidth, destRect.width); final int srcX = getSourceX(destRect.x); for (int y = 0; y < destRect.height; y++) { getTiePointGrid().readPixels(srcX, getSourceY(destRect.y + y), sourceWidth, 1, (float[]) lineData.getElems(), ProgressMonitor.NULL); copyLine(y, destRect.width, lineData, productData, sourceCoords); } } }
tiePointGridInfo); JDomHelper.addElement(DimapProductConstants.TAG_TIE_POINT_DATA_TYPE, ProductData.getTypeString(tiePointGrid.getDataType()), tiePointGridInfo); JDomHelper.addElement(DimapProductConstants.TAG_TIE_POINT_NCOLS, tiePointGrid.getRasterWidth(), tiePointGridInfo);
int datasetID = -1; try { dataTypeID = createH5TypeID(grid.getDataType()); dataSpaceID = H5.H5Screate_simple(2, dims, null); datasetID = H5.H5Dcreate(_fileID,
printLine(indent + 2, DimapProductConstants.TAG_TIE_POINT_GRID_NAME, tiePointGrid.getName()); printLine(indent + 2, DimapProductConstants.TAG_TIE_POINT_DATA_TYPE, ProductData.getTypeString(tiePointGrid.getDataType())); printLine(indent + 2, DimapProductConstants.TAG_TIE_POINT_NCOLS, tiePointGrid.getRasterWidth()); printLine(indent + 2, DimapProductConstants.TAG_TIE_POINT_NROWS, tiePointGrid.getRasterHeight());