[Schmitzm-commits] r1514 - trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Mar 17 03:24:11 CET 2011
Author: alfonx
Date: 2011-03-17 03:24:07 +0100 (Thu, 17 Mar 2011)
New Revision: 1514
Modified:
trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledGridCoverage.java
trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledGridCoverageReader.java
trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledGridCoverageReaderInterface.java
trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledRasterInterface.java
Log:
Added support to define a simple NODATA value of type Double for any StyledRaster.
Modified: trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledGridCoverage.java
===================================================================
--- trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledGridCoverage.java 2011-03-15 17:44:21 UTC (rev 1513)
+++ trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledGridCoverage.java 2011-03-17 02:24:07 UTC (rev 1514)
@@ -55,6 +55,11 @@
public class StyledGridCoverage extends AbstractStyledLayer<GridCoverage2D>
implements StyledGridCoverageInterface {
+ @Override
+ public Double getNodataValue() {
+ return null;
+ }
+
/** Holds the meta data for displaying a legend. */
protected RasterLegendData legendData = null;
@@ -246,6 +251,7 @@
*
* @see GridUtil#createDefaultStyle()
*/
+ @Override
protected Style createDefaultStyle() {
return GridUtil.createDefaultStyle();
}
Modified: trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledGridCoverageReader.java
===================================================================
--- trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledGridCoverageReader.java 2011-03-15 17:44:21 UTC (rev 1513)
+++ trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledGridCoverageReader.java 2011-03-17 02:24:07 UTC (rev 1514)
@@ -61,6 +61,11 @@
return new ReferencedEnvelope(getEnvelope(), getCrs());
}
+ @Override
+ public Double getNodataValue() {
+ return null;
+ }
+
/** Holds the meta data for displaying a legend. */
protected RasterLegendData legendData = null;
@@ -258,6 +263,7 @@
*
* @see GridUtil#createDefaultStyle()
*/
+ @Override
protected Style createDefaultStyle() {
return GridUtil.createDefaultStyle();
}
Modified: trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledGridCoverageReaderInterface.java
===================================================================
--- trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledGridCoverageReaderInterface.java 2011-03-15 17:44:21 UTC (rev 1513)
+++ trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledGridCoverageReaderInterface.java 2011-03-17 02:24:07 UTC (rev 1514)
@@ -28,12 +28,15 @@
* Stefan A. Tzeggai - additional utility classes
******************************************************************************/
package de.schmitzm.geotools.styling;
+
import org.geotools.coverage.grid.io.AbstractGridCoverage2DReader;
/**
- * A {@link StyledRasterInterface} that is typed to wrap a {@link AbstractGridCoverage2DReader}
+ * A {@link StyledRasterInterface} that is typed to wrap a
+ * {@link AbstractGridCoverage2DReader}
*
* @author <a href="mailto:Martin.Schmitz at koeln.de">Martin Schmitz</a>
*/
-public interface StyledGridCoverageReaderInterface extends StyledRasterInterface<AbstractGridCoverage2DReader>{
+public interface StyledGridCoverageReaderInterface extends
+ StyledRasterInterface<AbstractGridCoverage2DReader> {
};
Modified: trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledRasterInterface.java
===================================================================
--- trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledRasterInterface.java 2011-03-15 17:44:21 UTC (rev 1513)
+++ trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledRasterInterface.java 2011-03-17 02:24:07 UTC (rev 1514)
@@ -47,4 +47,6 @@
*/
RasterLegendData getLegendMetaData();
+ Double getNodataValue();
+
}
More information about the Schmitzm-commits
mailing list