public class FLyrWCS extends DefaultFLyrRaster
DefaultFLyrRaster.RasterTaskStatus
FLyrDefault.RegisterMetadata, FLyrDefault.RegisterPersistence
colorTableLoadedFromProject, crsUtil, dataStore, fileUtil, lastLegend, loadedFromProject, mathUtil, PERSISTENT_DESCRIPTION, PERSISTENT_NAME, rasterUtil, readingData, recalcLevel, render, zoomLevel
layerListeners, metadataContainer
BANDS_FILE_LIST, BANDS_RGB, BRIGHTNESSCONTRAST, CLIPPING, COLOR_TABLE, CREATEOVERVIEWS, ENHANCED, FILTER, FLYRASTER_BAR_TOOLS, GEOLOCATION, HISTOGRAM, NODATA, OPACITY, PANSHARPENING, RASTER_PROPERTIES, REMOTE_ACTIONS, REPROJECT, SAVE_COLORINTERP, SAVEAS, SELECT_LAYER, STATS, TAILTRIM, TRANSPARENCY, ZOOM_PIXEL_RESOLUTION
AWAKE, CLOSED, OPEN, STOPPED, UNDEFINED
METADATA_CRS, METADATA_DEFINITION_DESCRIPTION, METADATA_DEFINITION_NAME, METADATA_NAME
Constructor and Description |
---|
FLyrWCS() |
FLyrWCS(DataStoreParameters dataStoreParameters) |
Modifier and Type | Method and Description |
---|---|
FLayer |
cloneLayer()
This method can be used to have a fast cloned layer.
|
static DataStore |
createDataStore(String host,
IProjection srs) |
void |
deleteCache(boolean deleteCache)
Assigns the flag to delete this layer from the cache
|
void |
draw(BufferedImage image,
Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale)
Draws the layer using a buffer.
|
String |
getDataWorldFile(Rectangle2D bBox,
Dimension sz)
Calcula el contenido del fichero de georreferenciación de una imagen.
|
WCSServerExplorer |
getExplorer()
Gets the explorer
|
String |
getFileFormat()
Returs a string with the extension of the first file
|
Extent |
getFullRasterExtent()
Gets the full extent
|
DynObjectSet |
getInfo(Point p,
double tolerance,
Cancellable cancel,
boolean fast)
Executes a consultation about information of a point on the layer.
|
Point2D |
getMaxResolution()
Gets the max resolution allowed by the coverage.
|
WCSDataParameters |
getParameters() |
HashMap<String,Object> |
getProperties() |
Transparency |
getRenderTransparency() |
int[] |
getTileSize()
Gets the tile size
|
String |
getTocImageIcon()
Returns the image icon that will be shown in the TOC next to this layer.
|
boolean |
isActionEnabled(int action)
Controla si una acción está activa o no para una determinada capa.
|
boolean |
isRemote()
Returns true if this layer is remote
|
boolean |
isTiled()
Returns true if the drawn is going to be tiled
|
boolean |
overviewsSupport()
Devuelve si la capa tiene soporte para poder generar overviews
|
void |
print(Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
PrintRequestAttributeSet properties) |
static void |
registerPersistent() |
void |
setDataStore(DataStore dataStore)
Fija el DataStore asociado a la capa.
|
void |
setExplorer(WCSServerExplorer explorer)
Sets the explorer
|
void |
setFullEnvelope(Envelope envelope)
Inserta la extensión total de la capa en la proyeccion original.
|
void |
setFullExtent(Rectangle2D fullExtent)
Sets the layer's full extent.
|
void |
setParameters(DataStoreParameters params)
Sets the data store parameters
|
addFile, addLegendListener, adjustWorldRequest, createLayer, decreaseZoomLevel, disableStopped, doDispose, draw, enableAwake, enableClosed, enableOpen, enableStopped, existColorTable, existsAlphaBand, finalize, getAffineTransform, getAffineTransformHistorical, getAlphaBandNumber, getAttributes, getBandCountFromDataset, getCellSize, getColorInterpretation, getConfiguration, getCoordsInLevel, getDataStore, getDataType, getFile, getFileCount, getFileLayer, getFileSize, getFullEnvelope, getGeometryType, getInfo, getInfo, getInfo, getLegend, getMaxX, getMaxY, getMetadataChildren, getMetadataID, getMetadataName, getMinX, getMinY, getNoDataValue, getProjection, getRasterStrategy, getRender, getRois, getROIsFiles, getShapeType, getTransparency, getURI, getUris, getWCHeight, getWCWidth, getWktProjection, getZoomLevel, increaseZoomLevel, init, initFilters, isAwake, isClosed, isEnabledMultiresolution, isFileAccepted, isFileSupported, isGeoreferenced, isInside, isOpen, isReadingData, isRemoveRasterFlag, isRenderingAsGray, isReproyectable, isRGB, isStopped, isTransparent, load, loadFromState, print, queryByPoint, readProjection, registerDynClass, registerPersistence, registerPersistence, reload, removeFile, removeLayerListener, removeLegendListener, saveGeoToRmf, saveToState, setAffineTransform, setAffineTransformWithoutHistorical, setConfiguration, setDataStore, setLastLegend, setLayerInitialized, setName, setNoDataTransparent, setNoDataValue, setOpenRasterStore, setProjection, setProjection, setReadingData, setRemoveRasterFlag, setRenderFilterList, setRois, setROIsFiles, setTileServer, setTransparency, setVisible, setZoomLevel, visualPropertyValueChanged, wakeUp
activationChanged, addError, addLayerListener, allowLinks, callEditionChanged, callLegendChanged, clear, delegate, drawValueChanged, editionChanged, getClassName, getCoordTrans, getDrawVersion, getDynClass, getDynValue, getError, getErrors, getExtendedProperties, getFLayerStatus, getInfoString, getLayerListeners, getLink, getLinkProperties, getMapContext, getMaxScale, getMinScale, getName, getNumErrors, getParentLayer, getProperty, getTocStatusImage, hasChangedForDrawing, hasDynValue, hidesThisArea, implement, invokeDynMethod, invokeDynMethod, isActive, isAvailable, isEditing, isInTOC, isOk, isTemporary, isVisible, isWithinScale, isWritable, nameChanged, newComposedLayer, reProject, setActive, setAvailable, setCoordTrans, setDynValue, setEditing, setError, setFLayerStatus, setInTOC, setMaxScale, setMinScale, setParentLayer, setProperty, setTemporary, setTocStatusImage, toString, updateDrawVersion, visibilityChanged, visibleRequired
dispose, dispose
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMapContext, getMaxScale, getMinScale, getName, setMaxScale, setMinScale
addError, addLayerListener, allowLinks, getCoordTrans, getDrawVersion, getError, getErrors, getFLayerStatus, getInfoString, getLayerListeners, getLink, getLinkProperties, getNumErrors, getParentLayer, getTocStatusImage, isActive, isAvailable, isEditing, isInTOC, isOk, isTemporary, isVisible, isWithinScale, isWritable, newComposedLayer, setActive, setAvailable, setCoordTrans, setEditing, setError, setFLayerStatus, setInTOC, setParentLayer, setTemporary, visibleRequired
clear, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValue
dispose
getExtendedProperties, getProperty, setProperty
public FLyrWCS()
public FLyrWCS(DataStoreParameters dataStoreParameters) throws Exception
Exception
public static DataStore createDataStore(String host, IProjection srs) throws InitializeException
InitializeException
public void setDataStore(DataStore dataStore) throws LoadLayerException
SingleLayer
setDataStore
in interface SingleLayer
setDataStore
in class DefaultFLyrRaster
dataStore
- a usar en la capa.LoadLayerException
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale) throws ReadException
FLayer
draw
in interface FLayer
draw
in interface FLyrRaster
draw
in class DefaultFLyrRaster
image
- an image used to accelerate the screen drawg
- for rendering 2-dimensional shapes, text and images on the Java(tm) platformviewPort
- information for drawing this layercancel
- an object thread that implements the Cancellable
interface, and will allow to cancel the drawscale
- value that represents the scaleReadException
- if fails the driver used in this method.com.iver.cit.gvsig.fmap.layers.LayerOperations#draw(java.awt.image.BufferedImage,
java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort,
com.iver.utiles.swing.threads.Cancellable)
public Point2D getMaxResolution()
Gets the max resolution allowed by the coverage. Requesting a higher resolution
than this value does not cause any error, but the info responsed is just an
interpolation.
In exchange for obtaining a greater file and without additional information,
we can easily fit it into the View.
Obtiene la resolución máxima soportada por la cobertura. La petición
de una resolución superior a la soportada no provoca ningún error, aunque
la información obtenida sólo es una mera interpolación de información.
A cambio de obtener un archivo mayor y sin información adicional, podemos
fácilmente acoplarlo a la vista.
public WCSServerExplorer getExplorer()
public String getDataWorldFile(Rectangle2D bBox, Dimension sz) throws IOException
bBox
- Tamaño y posición de la imagen (en coordenadas de usuario)sz
- Tamaño de la imagen en pixeles.IOException
public FLayer cloneLayer() throws Exception
FLayer
This method can be used to have a fast cloned layer.
The implementations should take care of not recreate this layer. Instead of this, is better to use the same source (driver) and deepclone the legend. Exception: the labels aren't deepcloned to avoid memory consumption.
Note: Labels are memory consuming to speed up layers like PostGIS and so on.
cloneLayer
in interface FLayer
cloneLayer
in interface FLyrRaster
cloneLayer
in class DefaultFLyrRaster
Exception
- any exception produced during the cloning of this layer.public Transparency getRenderTransparency()
public void print(Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, PrintRequestAttributeSet properties) throws ReadException
ReadException
public void setFullEnvelope(Envelope envelope)
fullExtent
- Rectángulo.public void setFullExtent(Rectangle2D fullExtent)
rect
- public int[] getTileSize()
FLyrRaster
getTileSize
in interface FLyrRaster
getTileSize
in class DefaultFLyrRaster
public String getTocImageIcon()
FLayer
getTocImageIcon
in interface FLayer
getTocImageIcon
in class DefaultFLyrRaster
null
if there isn't anypublic boolean isTiled()
FLyrRaster
isTiled
in interface FLyrRaster
isTiled
in class DefaultFLyrRaster
public boolean isRemote()
FLyrRaster
isRemote
in interface FLyrRaster
isRemote
in class DefaultFLyrRaster
public DynObjectSet getInfo(Point p, double tolerance, Cancellable cancel, boolean fast) throws LoadLayerException, DataException
InfoByPoint
Executes a consultation about information of a point on the layer.
There is an area around the point where will got the information.
getInfo
in interface InfoByPoint
getInfo
in class DefaultFLyrRaster
p
- point where is the consultationtolerance
- permissible margin around the coordinates of the point where
the method will got the information. Each
singular implementation of this method would use it in a
different way. The coordinates also depend on the
implementation.cancel
- shared object that determines if this layer can continue being
drawnfast
- if true try to reuse objects as much as possible to make the
object iteration faster. If true, DynObjects got through the
returned set must not be stored unless cloned.LoadLayerException
- any exception produced using the driver.DataException
- TODOpublic String getFileFormat()
FLyrRaster
getFileFormat
in interface FLyrRaster
getFileFormat
in class DefaultFLyrRaster
public boolean isActionEnabled(int action)
IRasterLayerActions
isActionEnabled
in interface IRasterLayerActions
isActionEnabled
in class DefaultFLyrRaster
action
- Acción definida en LayerActionSupportedpublic boolean overviewsSupport()
DefaultFLyrRaster
overviewsSupport
in class DefaultFLyrRaster
public Extent getFullRasterExtent()
FLyrRaster
getFullRasterExtent
in interface FLyrRaster
getFullRasterExtent
in class DefaultFLyrRaster
public WCSDataParameters getParameters()
public void setExplorer(WCSServerExplorer explorer)
explorer
- public void deleteCache(boolean deleteCache)
selected
- public void setParameters(DataStoreParameters params) throws InitializeException
params
- InitializeException
public static void registerPersistent()