public class FLyrWMS extends DefaultFLyrRaster
DefaultFLyrRaster.RasterTaskStatusFLyrDefault.RegisterMetadata, FLyrDefault.RegisterPersistence| Modifier and Type | Field and Description |
|---|---|
static String |
PERSISTENT_DESCRIPTION |
static String |
PERSISTENT_NAME |
colorTableLoadedFromProject, crsUtil, dataStore, fileUtil, lastLegend, loadedFromProject, mathUtil, rasterUtil, readingData, recalcLevel, render, zoomLevellayerListeners, metadataContainerBANDS_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_RESOLUTIONAWAKE, CLOSED, OPEN, STOPPED, UNDEFINEDMETADATA_CRS, METADATA_DEFINITION_DESCRIPTION, METADATA_DEFINITION_NAME, METADATA_NAME| Constructor and Description |
|---|
FLyrWMS() |
FLyrWMS(DataStoreParameters dataStoreParameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
_print(Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale) |
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
|
protected void |
disableUpdateDrawVersion() |
void |
draw(BufferedImage image,
Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale)
Draws the layer using a buffer.
|
protected void |
enableUpdateDrawVersion() |
WMSServerExplorer |
getExplorer()
Gets the explorer
|
String |
getFileFormat()
Returs a string with the extension of the first file
|
FLayer |
getFileLayer()
Gets a layer which the source is a file
|
Envelope |
getFullEnvelope()
Devuelve el envelope en la proyeccion de la vista
|
Extent |
getFullRasterExtent()
Gets the full extent
|
DynObjectSet |
getInfo(Point p,
double tolerance)
Executes a consultation about information of a point on the layer.
|
DynObjectSet |
getInfo(Point p,
double tolerance,
Cancellable cancel,
boolean fast)
Executes a consultation about information of a point on the layer.
|
ILegend |
getLegend()
Devuelve la Leyenda de la capa.
|
WMSDataParameters |
getParameters() |
HashMap<String,Object> |
getProperties() |
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 |
isInside(Point2D p)
Metodo que obtiene si un punto cae dentro de los límites de la capa
o fuera de ellos.
|
boolean |
isRemote()
Returns true if this layer is remote
|
boolean |
isTiled()
Returns true if the drawn is going to be tiled
|
ComposedLayer |
newComposedLayer()
Returns a new instance of
ComposedLayer. |
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(WMSServerExplorer explorer)
Sets the explorer
|
void |
setParameters(DataStoreParameters params)
Sets the data store parameters
|
String |
toMapContext(String mapContextVersion)
Creates the part of a OGC's MapContext document that would describe this
layer(s).
|
protected void |
updateDrawVersion() |
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, getFileSize, getGeometryType, getInfo, getInfo, 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, 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, wakeUpactivationChanged, 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, reProject, setActive, setAvailable, setCoordTrans, setDynValue, setEditing, setError, setFLayerStatus, setInTOC, setMaxScale, setMinScale, setParentLayer, setProperty, setTemporary, setTocStatusImage, toString, visibilityChanged, visibleRequireddispose, disposeclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMapContext, getMaxScale, getMinScale, getName, setMaxScale, setMinScaleaddError, addLayerListener, allowLinks, getCoordTrans, getDrawVersion, getError, getErrors, getFLayerStatus, getInfoString, getLayerListeners, getLink, getLinkProperties, getNumErrors, getParentLayer, getTocStatusImage, isActive, isAvailable, isEditing, isInTOC, isOk, isTemporary, isVisible, isWithinScale, isWritable, setActive, setAvailable, setCoordTrans, setEditing, setError, setFLayerStatus, setInTOC, setParentLayer, setTemporary, visibleRequiredclear, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValuedisposegetExtendedProperties, getProperty, setPropertypublic static final String PERSISTENT_NAME
public static final String PERSISTENT_DESCRIPTION
public FLyrWMS()
public FLyrWMS(DataStoreParameters dataStoreParameters) throws Exception
Exceptionpublic static DataStore createDataStore(String host, IProjection srs) throws InitializeException
InitializeExceptionpublic void setDataStore(DataStore dataStore) throws LoadLayerException
SingleLayersetDataStore in interface SingleLayersetDataStore in class DefaultFLyrRasterdataStore - a usar en la capa.LoadLayerExceptionpublic static void registerPersistent()
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale) throws ReadException
FLayerdraw in interface FLayerdraw in interface FLyrRasterdraw in class DefaultFLyrRasterimage - 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 void print(Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, PrintRequestAttributeSet properties) throws ReadException
ReadExceptioncom.iver.cit.gvsig.fmap.layers.FLayer#print(java.awt.Graphics2D,
com.iver.cit.gvsig.fmap.ViewPort,
com.iver.cit.gvsig.fmap.operations.Cancellable)public void _print(Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale) throws ReadException
ReadExceptionpublic String toMapContext(String mapContextVersion)
version, - The desired version of the resulting document. (1.1.0)UnsupportedVersionLayerExceptionpublic String getTocImageIcon()
FLayergetTocImageIcon in interface FLayergetTocImageIcon in class DefaultFLyrRasternull if there isn't anypublic int[] getTileSize()
FLyrRastergetTileSize in interface FLyrRastergetTileSize in class DefaultFLyrRasterpublic boolean isTiled()
FLyrRasterisTiled in interface FLyrRasterisTiled in class DefaultFLyrRasterpublic ComposedLayer newComposedLayer()
FLayerReturns a new instance of ComposedLayer.
This allows make a single draw for a group of layers with the same source.
If this operation isn't applicable for this kind of layer, this method returns null.
By default this operation is not supported.
newComposedLayer in interface FLayernewComposedLayer in class FLyrDefaultnull if not supportedComposedLayerpublic boolean isActionEnabled(int action)
IRasterLayerActionsisActionEnabled in interface IRasterLayerActionsisActionEnabled in class DefaultFLyrRasteraction - Acción definida en LayerActionSupportedpublic ILegend getLegend()
DefaultFLyrRastergetLegend in interface ClassifiablegetLegend in class DefaultFLyrRasterpublic boolean isRemote()
FLyrRasterisRemote in interface FLyrRasterisRemote in class DefaultFLyrRasterpublic boolean overviewsSupport()
DefaultFLyrRasteroverviewsSupport in class DefaultFLyrRasterprotected void updateDrawVersion()
updateDrawVersion in class FLyrDefaultprotected void disableUpdateDrawVersion()
protected void enableUpdateDrawVersion()
public String getFileFormat()
FLyrRastergetFileFormat in interface FLyrRastergetFileFormat in class DefaultFLyrRasterpublic FLayer getFileLayer() throws RasterDriverException
FLyrRastergetFileLayer in interface FLyrRastergetFileLayer in class DefaultFLyrRasterRasterDriverExceptionpublic Envelope getFullEnvelope()
getFullEnvelope in interface FLayergetFullEnvelope in interface FLyrRastergetFullEnvelope in class DefaultFLyrRasterpublic Extent getFullRasterExtent()
FLyrRastergetFullRasterExtent in interface FLyrRastergetFullRasterExtent in class DefaultFLyrRasterpublic DynObjectSet getInfo(Point p, double tolerance) throws LoadLayerException, DataException
InfoByPointExecutes 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 InfoByPointgetInfo in class DefaultFLyrRasterp - point in map coordinates 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 unit are in map coordinates.LoadLayerExceptionDataExceptionpublic DynObjectSet getInfo(Point p, double tolerance, Cancellable cancel, boolean fast) throws LoadLayerException, DataException
InfoByPointExecutes 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 InfoByPointgetInfo in class DefaultFLyrRasterp - 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 void setParameters(DataStoreParameters params) throws InitializeException
params - InitializeExceptionpublic WMSDataParameters getParameters()
public void deleteCache(boolean deleteCache)
selected - public void setExplorer(WMSServerExplorer explorer)
explorer - public WMSServerExplorer getExplorer()
public FLayer cloneLayer() throws Exception
FLayerThis 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 FLayercloneLayer in interface FLyrRastercloneLayer in class DefaultFLyrRasterException - any exception produced during the cloning of this layer.public boolean isInside(Point2D p)
FLyrRasterisInside in interface FLyrRasterisInside in class DefaultFLyrRasterp - Punto a calcular