2 |
* Copyright (c) 2009 Martin O. J. Schmitz. |
* Copyright (c) 2009 Martin O. J. Schmitz. |
3 |
* |
* |
4 |
* This file is part of the SCHMITZM library - a collection of utility |
* This file is part of the SCHMITZM library - a collection of utility |
5 |
* classes based on Java 1.6, focussing (not only) on Java Swing |
* classes based on Java 1.6, focusing (not only) on Java Swing |
6 |
* and the Geotools library. |
* and the Geotools library. |
7 |
* |
* |
8 |
* The SCHMITZM project is hosted at: |
* The SCHMITZM project is hosted at: |
25 |
* |
* |
26 |
* Contributors: |
* Contributors: |
27 |
* Martin O. J. Schmitz - initial API and implementation |
* Martin O. J. Schmitz - initial API and implementation |
28 |
* Stefan A. Krüger - additional utility classes |
* Stefan A. Tzeggai - additional utility classes |
29 |
******************************************************************************/ |
******************************************************************************/ |
30 |
package skrueger.geotools; |
package skrueger.geotools; |
31 |
|
|
35 |
|
|
36 |
import org.geotools.coverage.grid.GridCoverage2D; |
import org.geotools.coverage.grid.GridCoverage2D; |
37 |
import org.geotools.coverage.grid.io.AbstractGridCoverage2DReader; |
import org.geotools.coverage.grid.io.AbstractGridCoverage2DReader; |
38 |
|
import org.geotools.geometry.jts.ReferencedEnvelope; |
39 |
import org.geotools.styling.Style; |
import org.geotools.styling.Style; |
40 |
|
|
41 |
import schmitzm.geotools.JTSUtil; |
import schmitzm.geotools.JTSUtil; |
52 |
* @version 1.0 |
* @version 1.0 |
53 |
*/ |
*/ |
54 |
public class StyledGridCoverageReader extends AbstractStyledLayer<AbstractGridCoverage2DReader> implements StyledGridCoverageReaderInterface { |
public class StyledGridCoverageReader extends AbstractStyledLayer<AbstractGridCoverage2DReader> implements StyledGridCoverageReaderInterface { |
55 |
|
@Override |
56 |
|
public ReferencedEnvelope getReferencedEnvelope() { |
57 |
|
return new ReferencedEnvelope(getEnvelope(), getCrs()); |
58 |
|
} |
59 |
|
|
60 |
/** Holds the meta data for displaying a legend. */ |
/** Holds the meta data for displaying a legend. */ |
61 |
protected RasterLegendData legendData = null; |
protected RasterLegendData legendData = null; |
243 |
return null; |
return null; |
244 |
} |
} |
245 |
|
|
246 |
|
|
247 |
/** |
/** |
248 |
* If true, this layer will not be shown in the legend. Default = false |
* If true, this layer will not be shown in the legend. Default = false |
249 |
*/ |
*/ |