|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectLayer
StyleLayer
RasterLayer
GridCoverageLayer
public class GridCoverageLayer
Layer used to draw a raster 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.
Field Summary | |
---|---|
protected GridCoverage2D |
coverage
Grid Coverage to be drawn. |
Fields inherited from class RasterLayer |
---|
source |
Fields inherited from class StyleLayer |
---|
style |
Fields inherited from class Layer |
---|
listenerList, LOGGER, selected, title, userData, visible |
Constructor Summary | |
---|---|
GridCoverageLayer(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 | |
---|---|
void |
dispose()
Allows a Layer to clean up any listeners, or internal caches or resources it has added during use. |
ReferencedEnvelope |
getBounds()
Layer bounds generated from the grid coverage. |
GridCoverage2D |
getCoverage()
Access to the grid coverage being drawn. |
SimpleFeatureCollection |
toFeatureCollection()
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 |
---|
getFeatureSource |
Methods inherited from class StyleLayer |
---|
getStyle, setStyle |
Methods inherited from class Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected GridCoverage2D coverage
Constructor Detail |
---|
public GridCoverageLayer(GridCoverage2D coverage, Style style)
coverage
- The new layer that has been added.style
-
SchemaException
FactoryRegistryException
TransformException
public GridCoverageLayer(GridCoverage2D coverage, Style style, String title)
coverage
- style
- title
- Method Detail |
---|
public void dispose()
Layer
dispose
in class RasterLayer
public GridCoverage2D getCoverage()
public ReferencedEnvelope getBounds()
getBounds
in class Layer
public SimpleFeatureCollection toFeatureCollection()
RasterLayer
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 FeatureUtilities
useful in wrapping up your raster content.
toFeatureCollection
in class RasterLayer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |