public class AddRasterImage
extends java.lang.Object
Constructor and Description |
---|
AddRasterImage() |
Modifier and Type | Method and Description |
---|---|
org.geotools.styling.Style |
createGreyscaleStyle(int band)
Method to create a Style to display the specified band of the GeoTIFF image
as a greyscale layer.
|
org.geotools.styling.Style |
createGreyscaleStyle(org.geotools.swing.JMapFrame frame)
Method to create a Style to display a selected band of the GeoTIFF image
as a greyscale layer.
|
org.geotools.styling.Style |
createRGBStyle()
Method to examine the names of the sample dimensions in the provided coverage looking for
"red
|
void |
displayLayers(javax.swing.JFrame frame,
org.geotools.map.MapContent map,
java.io.File rasterFile)
Method to displays a GeoTIFF file.
|
void |
getLayersAndDisplay(javax.swing.JFrame frame,
org.geotools.map.MapContent map)
Method to prompt the user for a GeoTIFF file and a Shapefile and passes them to the displayLayers
method.
|
public void getLayersAndDisplay(javax.swing.JFrame frame, org.geotools.map.MapContent map) throws java.lang.Exception
java.lang.Exception
public void displayLayers(javax.swing.JFrame frame, org.geotools.map.MapContent map, java.io.File rasterFile) throws java.lang.Exception
frame
- Framemap
- Map contentrasterFile
- GeoTIFF filejava.lang.Exception
public org.geotools.styling.Style createGreyscaleStyle(org.geotools.swing.JMapFrame frame)
public org.geotools.styling.Style createGreyscaleStyle(int band)
band
- the image band to use for the greyscale displaypublic org.geotools.styling.Style createRGBStyle()