forked from bcdev/beam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redefined 'beam.imageManager.enableSourceTileCaching' as 'beam.imageM…
…anager.disableSourceTileCaching' with default value 'false'
- Loading branch information
Showing
3 changed files
with
6 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (C) 2010 Brockmann Consult GmbH ([email protected]) | ||
* Copyright (C) 2012 Brockmann Consult GmbH ([email protected]) | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the Free | ||
|
@@ -37,7 +37,7 @@ public BandOpImage(Band band) { | |
|
||
public BandOpImage(Band band, ResolutionLevel level) { | ||
super(band, level); | ||
if (!Boolean.getBoolean("beam.imageManager.enableSourceTileCaching")) { | ||
if (Boolean.getBoolean("beam.imageManager.disableSourceTileCaching")) { | ||
setTileCache(null); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (C) 2010 Brockmann Consult GmbH ([email protected]) | ||
* Copyright (C) 2012 Brockmann Consult GmbH ([email protected]) | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the Free | ||
|
@@ -52,22 +52,12 @@ public class RasterDataNodeIOTest extends TestCase { | |
private Product p; | ||
private TestProductReader pr; | ||
private Rectangle rectangle; | ||
private String enableSourceTileCachingOld; | ||
|
||
@Override | ||
protected void setUp() { | ||
p = createTestProduct(); | ||
pr = (TestProductReader) p.getProductReader(); | ||
rectangle = new Rectangle(0, 0, SW, SH); | ||
enableSourceTileCachingOld = System.getProperty("beam.imageManager.enableSourceTileCaching"); | ||
System.setProperty("beam.imageManager.enableSourceTileCaching", "true"); | ||
} | ||
|
||
@Override | ||
public void tearDown() throws Exception { | ||
if (enableSourceTileCachingOld != null) { | ||
System.setProperty("beam.imageManager.enableSourceTileCaching", enableSourceTileCachingOld); | ||
} | ||
} | ||
|
||
public void testThatSourceImagesGeneratedForBandsAreCached() throws IOException { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters