|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectLayer
StyleLayer
RasterLayer
public abstract class RasterLayer
Layer responsible for raster content.
Field Summary | |
---|---|
protected SimpleFeatureSource |
source
SimpleFeatureSource used to provide the outline of the raster content. |
Fields inherited from class StyleLayer |
---|
style |
Fields inherited from class Layer |
---|
listenerList, LOGGER, selected, title, userData, visible |
Constructor Summary | |
---|---|
RasterLayer(Style style)
|
|
RasterLayer(Style style,
String title)
|
Method Summary | |
---|---|
void |
dispose()
Allows a Layer to clean up any listeners, or internal caches or resources it has added during use. |
SimpleFeatureSource |
getFeatureSource()
FetureSource representation of raster contents (in case a vector based renderer wishes to draw a polygon outline). |
abstract 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 StyleLayer |
---|
getStyle, setStyle |
Methods inherited from class Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected SimpleFeatureSource source
Constructor Detail |
---|
public RasterLayer(Style style)
public RasterLayer(Style style, String title)
Method Detail |
---|
public SimpleFeatureSource getFeatureSource()
This method uses DataUtilities#source(org.opengis.feature.simple.SimpleFeature[]) to wrap up the result of {@link #toFeatureCollection()}
getFeatureSource
in class Layer
public void dispose()
Layer
dispose
in class StyleLayer
public abstract SimpleFeatureCollection toFeatureCollection()
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |