public class WMSDataParametersImpl extends AbstractRasterDataParameters implements WMSDataParameters
Modifier and Type | Field and Description |
---|---|
protected static DynClass |
DYNCLASS |
static java.lang.String |
DYNFIELDNAME_AUTHENTICATION_CONFIG |
static java.lang.String |
FIELD_LAYERQUERY |
PERSISTENT_DESCRIPTION, PERSISTENT_NAME
CRS_PARAMTER_NAME
DONT_CHANGE_PROJECTION, FIELD_CRS, FIELD_RMF_FOLDER, FIELD_URI, NEW_PROJETION_TO_THE_LAYER, NOT_LOAD, ON_THE_FLY, REPROJECT_DATA, REPROJECT_VIEW
Constructor and Description |
---|
WMSDataParametersImpl() |
Modifier and Type | Method and Description |
---|---|
void |
assignFields(RasterDataParameters par,
RasterDataServerExplorer explorer)
Assigns field from a data parameters to other
|
WMSDataParameters |
clone()
Clones this RemoteStoreParameters
|
void |
deleteCache(boolean deleteCache)
Sets the flag to delete cache
|
ICancellable |
getCancellable() |
java.lang.String |
getDataStoreName()
Returns the DataStore's name
|
protected DelegatedDynObject |
getDelegatedDynObject()
Returns an instance of the
DynObject to delegate to. |
java.lang.String |
getDescription()
Returns the DataStore's description
|
java.util.Vector<java.lang.String> |
getDimensions()
Gets the dimension vector that is a list of key-value pairs containing
the name of the dimension and the value for it
|
java.lang.String |
getExplorerName() |
java.awt.geom.Rectangle2D |
getExtent()
Gets the bounding box
|
java.awt.Dimension |
getFixedSize()
Gets the value of the fixed size
|
java.lang.String |
getFormat()
Gets the format
|
int |
getHeight()
Gets the height
|
java.lang.String |
getInfoFormat()
Gets the info by point format
|
java.lang.String |
getInfoLayerQuery() |
java.lang.String |
getLayerQuery() |
java.lang.String |
getName() |
java.util.Map<java.lang.String,java.lang.String> |
getOnlineResource()
Gets the online resource map
|
java.lang.String |
getOnlineResource(java.lang.String operation)
Gets the URL that should be accessed for an operation performed
to the server.
|
java.lang.String |
getSRSCode()
Devuelve el SRS.
|
java.util.List<RemoteWMSStyle> |
getStyles() |
int |
getWidth()
Gets the width
|
protected void |
initialize() |
boolean |
isDeletingCache()
Gets true if the cache is going to be deleted
|
boolean |
isOverridingHost() |
boolean |
isQueryable()
If it is true, this layer accepts GetFeatureInfo operations.
|
boolean |
isSizeFixed()
Tells whether if this layer must deal with the server with the constant-size
limitations or not.
|
boolean |
isValid()
Indicates whether these parameters are valid.
|
boolean |
isWmsTransparent() |
boolean |
isXyAxisOrder()
Gets the behaviour of the parser with regards the axis order
Returns
true if the WMS parser should assume that the
order of the coordinates follows the XY axis order
(the first coordinate corresponds to the horizontal X
axis, while the second coordinate corresponds to the
vertical Y axis), regardless the protocol version and CRS in use. |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static DynStruct |
registerDynClass() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setCancellable(ICancellable cancel) |
void |
setDimensions(java.util.Vector<java.lang.String> dimensions)
Sets the dimension vector that is a list of key-value pairs containing
the name of the dimension and the value for it
|
void |
setExtent(java.awt.geom.Rectangle2D bBox)
Assigns the extent.
|
void |
setFixedSize(java.awt.Dimension sz)
When a server is not fully featured and it only can serve constant map
sizes this value must be set.
|
void |
setFormat(java.lang.String format)
Sets the format
|
void |
setHeight(int h)
Sets the height
When a provider is initialized this will need to know what is the height before the request.
|
void |
setInfoFormat(java.lang.String format)
Sets the info by point format
|
void |
setInfoLayerQuery(java.lang.String infoLayerQuery) |
void |
setLayerQuery(java.lang.String layerQuery) |
void |
setName(java.lang.String name) |
void |
setOnlineResources(java.util.Map<java.lang.String,java.lang.String> onlineResources)
Sets the set of URLs that should be accessed for each operation performed
to the server.
|
void |
setOverrideHost(boolean over) |
void |
setQueryable(boolean b)
If it is true, this layer accepts GetFeatureInfo operations.
|
void |
setSRS(java.lang.String m_srs)
Inserta el SRS.
|
void |
setSRSID(java.lang.String srsid) |
void |
setStyles(java.util.List<RemoteWMSStyle> styles) |
void |
setWidth(int w)
Sets the width
When a provider is initialized this will need to know what is the width before the request.
|
void |
setWmsTransparency(boolean wmsTransparency) |
void |
setXyAxisOrder(boolean assumeXY)
Sets the behaviour of the parser with regards the axis order.
|
getAlphaBand, getFrame, getReprojectionOption, getRMFFolder, getSRS, getSRSID, getURI, isSourceTiled, isVisible, registerDynClass, setAlphaBand, setFrame, setReprojectionOption, setRMFFolder, setSRS, setURI, setVisible
getSourceId, isTheSameStore
clear, copyValuesTo, delegate, equals, fromByteArray, fromJson, getCause, getCopy, getDynClass, getDynValue, getMessage, getProviderName, hasDynValue, hashCode, implement, invokeDynMethod, invokeDynMethod, isValid, loadPRJ, loadWLD, setDynValue, toByteArray, toJson, toJsonBuilder, toString, toString, validate
finalize, getClass, notify, notifyAll, wait, wait, wait
getSRS, getURI, setURI
getAlphaBand, getFrame, setAlphaBand, setFrame
getProviderName, getSourceId, isTheSameStore
clear, getCopy, toByteArray, toString, validate
clone, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValue
toJson, toJson, toJsonBuilder, toJsonBuilder
fromJson
public static final java.lang.String FIELD_LAYERQUERY
public static final java.lang.String DYNFIELDNAME_AUTHENTICATION_CONFIG
protected static DynClass DYNCLASS
protected void initialize()
public static DynStruct registerDynClass()
public java.lang.String getFormat()
getFormat
in interface WMSDataParameters
public void setFormat(java.lang.String format)
setFormat
in interface WMSDataParameters
format
- public java.lang.String getInfoFormat()
getInfoFormat
in interface WMSDataParameters
public void setInfoFormat(java.lang.String format)
setInfoFormat
in interface WMSDataParameters
public java.lang.String getLayerQuery()
getLayerQuery
in interface WMSDataParameters
public void setLayerQuery(java.lang.String layerQuery)
setLayerQuery
in interface WMSDataParameters
public java.lang.String getSRSCode()
getSRSCode
in interface WMSDataParameters
public void setSRS(java.lang.String m_srs)
setSRS
in interface WMSDataParameters
m_srs
- SRS.public void setSRSID(java.lang.String srsid)
setSRSID
in interface RasterDataParameters
setSRSID
in class AbstractRasterDataParameters
public java.lang.String getName()
getName
in interface WMSDataParameters
public void setName(java.lang.String name)
setName
in interface WMSDataParameters
public boolean isWmsTransparent()
isWmsTransparent
in interface WMSDataParameters
public void setWmsTransparency(boolean wmsTransparency)
setWmsTransparency
in interface WMSDataParameters
wmsTransparency
- The wmsTransparency to set.public java.lang.String getInfoLayerQuery()
getInfoLayerQuery
in interface WMSDataParameters
public void setInfoLayerQuery(java.lang.String infoLayerQuery)
setInfoLayerQuery
in interface WMSDataParameters
public void setQueryable(boolean b)
setQueryable
in interface WMSDataParameters
b
- public void setCancellable(ICancellable cancel)
setCancellable
in interface WMSDataParameters
public ICancellable getCancellable()
getCancellable
in interface WMSDataParameters
public boolean isQueryable()
WMSDataParameters
isQueryable
in interface WMSDataParameters
public boolean isOverridingHost()
isOverridingHost
in interface RasterDataParameters
public void setOverrideHost(boolean over)
setOverrideHost
in interface RasterDataParameters
setOverrideHost
in interface WMSDataParameters
public void setStyles(java.util.List<RemoteWMSStyle> styles)
setStyles
in interface WMSDataParameters
public java.util.List<RemoteWMSStyle> getStyles()
getStyles
in interface WMSDataParameters
styles
- public void setDimensions(java.util.Vector<java.lang.String> dimensions)
WMSDataParameters
setDimensions
in interface WMSDataParameters
public java.util.Vector<java.lang.String> getDimensions()
getDimensions
in interface WMSDataParameters
public void setOnlineResources(java.util.Map<java.lang.String,java.lang.String> onlineResources)
WMSDataParameters
setOnlineResources
in interface WMSDataParameters
public java.lang.String getOnlineResource(java.lang.String operation)
WMSDataParameters
getOnlineResource
in interface WMSDataParameters
public java.util.Map<java.lang.String,java.lang.String> getOnlineResource()
WMSDataParameters
getOnlineResource
in interface WMSDataParameters
public void setFixedSize(java.awt.Dimension sz)
setFixedSize
in interface WMSDataParameters
Dimension
- szpublic boolean isSizeFixed()
isSizeFixed
in interface RemoteStoreParameters
public java.awt.Dimension getFixedSize()
getFixedSize
in interface WMSDataParameters
public void setExtent(java.awt.geom.Rectangle2D bBox)
setExtent
in interface WMSDataParameters
bBox
- public void setWidth(int w)
RemoteStoreParameters
setWidth
in interface RemoteStoreParameters
public void setHeight(int h)
RemoteStoreParameters
setHeight
in interface RemoteStoreParameters
public java.awt.geom.Rectangle2D getExtent()
getExtent
in interface WMSDataParameters
public int getWidth()
getWidth
in interface WMSDataParameters
public int getHeight()
getHeight
in interface WMSDataParameters
public java.lang.String getDataStoreName()
DataStoreParameters
getDataStoreName
in interface DataStoreParameters
getDataStoreName
in class AbstractDataParameters
public java.lang.String getDescription()
DataStoreParameters
getDescription
in interface DataStoreParameters
getDescription
in class AbstractDataParameters
public java.lang.String getExplorerName()
public boolean isValid()
DataStoreParameters
isValid
in interface RasterDataParameters
isValid
in interface DataStoreParameters
isValid
in class AbstractRasterDataParameters
protected DelegatedDynObject getDelegatedDynObject()
AbstractDataParameters
DynObject
to delegate to.getDelegatedDynObject
in class AbstractDataParameters
DynObject
public void deleteCache(boolean deleteCache)
RemoteStoreParameters
deleteCache
in interface RemoteStoreParameters
public boolean isDeletingCache()
RemoteStoreParameters
isDeletingCache
in interface RemoteStoreParameters
public WMSDataParameters clone()
RemoteStoreParameters
clone
in interface RemoteStoreParameters
clone
in class java.lang.Object
public void assignFields(RasterDataParameters par, RasterDataServerExplorer explorer)
RasterDataParameters
assignFields
in interface RasterDataParameters
assignFields
in class AbstractRasterDataParameters
public boolean isXyAxisOrder()
WMSDataParameters
Gets the behaviour of the parser with regards the axis order
Returns true
if the WMS parser should assume that the
order of the coordinates follows the XY axis order
(the first coordinate corresponds to the horizontal X
axis, while the second coordinate corresponds to the
vertical Y axis), regardless the protocol version and CRS in use.
Returns false
if the WMS parser should decide the
axis order based on the protocol version and the coordinate
reference system (CRS) in use. In particular, if protocol
version is >= 1.3.0, then the WMS parser assumes
the axis order defined in the official EPSG registry for the
CRS in use. For versions < 1.3.0, the XY axis order is assumed.
The default value is false
isXyAxisOrder
in interface WMSDataParameters
WMSDataParameters.setXyAxisOrder(boolean)
public void setXyAxisOrder(boolean assumeXY)
WMSDataParameters
Sets the behaviour of the parser with regards the axis order.
If set to true
, then the XY axis order
is assumed for all the WMS
protocol versions and coordinate reference systems.
If set to false
then the WMS parser will decide the axis order based on
the protocol version and the coordinate reference system (CRS)
in use. In particular, if protocol
version is >= 1.3.0, then the WMS parser assumes
the axis order defined in the official EPSG registry for the
CRS in use. For versions < 1.3.0, the XY axis order is assumed.
setXyAxisOrder
in interface WMSDataParameters
WMSDataParameters.isXyAxisOrder()
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class AbstractDataParameters
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class AbstractDataParameters
PersistenceException