Skip to content

Commit

Permalink
SNAP-350 ... BandMaths operator fails copying the latitude tie-point …
Browse files Browse the repository at this point in the history
…grid
  • Loading branch information
SabineEmbacher committed Dec 10, 2015
1 parent c5ed9f0 commit d35d0cf
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -1145,7 +1145,9 @@ public static void copyImageGeometry(RasterDataNode sourceRaster, RasterDataNode
public static void copyTiePointGrids(Product sourceProduct, Product targetProduct) {
for (int i = 0; i < sourceProduct.getNumTiePointGrids(); i++) {
TiePointGrid srcTPG = sourceProduct.getTiePointGridAt(i);
targetProduct.addTiePointGrid(srcTPG.cloneTiePointGrid());
if (!targetProduct.containsRasterDataNode(srcTPG.getName())) {
targetProduct.addTiePointGrid(srcTPG.cloneTiePointGrid());
}
}
}

Expand Down

0 comments on commit d35d0cf

Please sign in to comment.