Class GridCoverageLayer
GridCoverage.
Direct access to the GridCoverage is available using getCoverage(), the outline of the raster is
also available via toFeatureCollection() for vector based rendering systems.
- Since:
- 2.7
- Author:
- Jody Garnett
-
Field Summary
FieldsFields inherited from class RasterLayer
sourceFields inherited from class StyleLayer
style -
Constructor Summary
ConstructorsConstructorDescriptionGridCoverageLayer(GridCoverage2D coverage, Style style) Create layer to draw the provided grid coverage.GridCoverageLayer(GridCoverage2D coverage, Style style, String title) Create layer to draw the provided grid coverage. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Allows a Layer to clean up any listeners, or internal caches or resources it has added during use.Layer bounds generated from the grid coverage.Access to the grid coverage being drawn.Supply a FeatureCollection indicating where the raster is located, we ask that the features use the same coordinate reference system as your raster data and form an outline or foot print of the information you have available.Methods inherited from class RasterLayer
getFeatureSourceMethods inherited from class StyleLayer
getStyle, setStyleMethods inherited from class Layer
addMapLayerListener, connectDataListener, finalize, fireMapLayerListenerLayerChanged, fireMapLayerListenerLayerDeselected, fireMapLayerListenerLayerHidden, fireMapLayerListenerLayerPreDispose, fireMapLayerListenerLayerSelected, fireMapLayerListenerLayerShown, getQuery, getTitle, getUserData, isSelected, isVisible, preDispose, removeMapLayerListener, setSelected, setTitle, setVisible, toString
-
Field Details
-
coverage
Grid Coverage to be drawn.
-
-
Constructor Details
-
GridCoverageLayer
Create layer to draw the provided grid coverage.- Parameters:
coverage- The new layer that has been added.
-
GridCoverageLayer
Create layer to draw the provided grid coverage.
-
-
Method Details
-
dispose
public void dispose()Description copied from class:LayerAllows a Layer to clean up any listeners, or internal caches or resources it has added during use.- Overrides:
disposein classRasterLayer
-
getCoverage
Access to the grid coverage being drawn.- Returns:
- grid coverage being drawn.
-
getBounds
Layer bounds generated from the grid coverage. -
toFeatureCollection
Description copied from class:RasterLayerSupply a FeatureCollection indicating where the raster is located, we ask that the features use the same coordinate reference system as your raster data and form an outline or foot print of the information you have available.This is an interesting method for a RasterLayer to have; some of the rendering systems are willing to render your raster content as an outline; for this to work they need this method to supply a feature collection indicating where the content is located. The information may also be used to determine if any of your raster content is on screen (and thus needs to be rendered).
Note this is a feature collection to allow for raster content that contains more than one image; and is not based bounding boxes (as sometimes rasters are rotated or stretched into position).
You may find the
FeatureUtilitiesuseful in wrapping up your raster content.- Specified by:
toFeatureCollectionin classRasterLayer- Returns:
- SimpleFeatureCollection indicating the location of raster content
-