|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.gvsig.mobile.fmap.driver.raster.wms.WmsRasterDriver
This is the WMS driver. It is instantiated after the suer has used the WMS dialog.
WMSLayerDescription
,
WMSProtocolHandler
Field Summary | |
static java.awt.Font |
ERROR_IMAGE_FONT
|
Fields inherited from interface es.prodevelop.gvsig.mobile.fmap.driver.raster.RasterDriver |
ONE_PIXEL_IMAGE_ERROR, ONE_PIXEL_NO_DATA |
Constructor Summary | |
WmsRasterDriver(java.lang.String svrUrl,
java.lang.String lyrs,
java.lang.String info_lyrs,
java.lang.String info_lyrs_names,
java.lang.String imgf,
java.lang.String _srs,
java.awt.geom.Rectangle2D fe,
java.util.ArrayList info_fmts,
java.lang.String v,
java.lang.String symb)
Constructor. |
Method Summary | |
void |
close()
Closes the driver. |
void |
draw(java.awt.Graphics2D g,
ViewPort viewPort)
Draws the image on the given Graphics object. |
boolean |
fileAccepted(java.io.File fName)
Define los tipos de fichero que puede leer el driver. |
java.awt.geom.AffineTransform |
getAffineTransform()
Obtiene la matriz de transformación |
java.lang.Object |
getData(int x,
int y,
int band)
Gets the data associated with the given pixel and band |
java.lang.String |
getFilePath()
|
java.awt.geom.Rectangle2D |
getFullExtent()
Obtiene la extensión en coordenadas del mundo real que ocupa este raster |
java.lang.String |
getImageFormat()
|
java.util.ArrayList |
getInfo(java.awt.Point p,
double tolerance,
Cancellable cancel,
java.lang.String srs)
get info associated with the given screen pixel. |
java.lang.String |
getName()
Debe devolver un objeto que se asociará en el manager al driver. |
int |
getNumBands()
Obtiene el número de bandas del raster |
int[] |
getPixel(double wcx,
double wcy)
Gets the RGB values of the pixel for the given coordinates (in map units) |
IProjection |
getProjection()
Obtiene la proyección en la que está el raster |
int |
getRasterDataType()
|
java.lang.String |
getRequestedLayers()
|
java.lang.String |
getRequestedStyles()
|
java.net.URL |
getServerUrl()
|
java.lang.String |
getSrs()
|
java.lang.String |
getSymbol()
|
int |
getTransparency()
|
java.lang.String |
getVersion()
|
void |
initialize()
Initializes the driver. |
void |
initialize(IProjection p)
Initializes the driver with the given projection |
boolean |
isGeoreferenced()
Obtiene el flag que dice si la imagen está o no georreferenciada |
void |
open(java.io.File f)
Not used. |
void |
setAffineTransform(java.awt.geom.AffineTransform t)
Sets the affine transform associated with this driver. |
void |
setProjection(IProjection p)
Sets a new projection |
void |
setTransparency(int trans)
Sets the transparecncy level. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.awt.Font ERROR_IMAGE_FONT
Constructor Detail |
public WmsRasterDriver(java.lang.String svrUrl, java.lang.String lyrs, java.lang.String info_lyrs, java.lang.String info_lyrs_names, java.lang.String imgf, java.lang.String _srs, java.awt.geom.Rectangle2D fe, java.util.ArrayList info_fmts, java.lang.String v, java.lang.String symb)
svrUrl
- the server URLlyrs
- a comma separated string with the layer idsinfo_lyrs
- a comma separated string with the ids of the infoable layersinfo_lyrs_names
- a comma separated string with the names of the infoable layersimgf
- the image format to be requested_srs
- the SRS to be used in the requestsfe
- the full extent of the layer, provided by the capabilities responseinfo_fmts
- a list of the info formats supported by the serverv
- the version of the WMS protocol to be usedsymb
- the separator symbol to be used in the request URLsMethod Detail |
public java.lang.String getVersion()
public java.lang.String getSymbol()
public void initialize(IProjection p) throws java.io.IOException
initialize
in interface GeorreferencedRasterDriver
p
- the projection used by this driver
java.io.IOException
public IProjection getProjection()
GeorreferencedRasterDriver
getProjection
in interface GeorreferencedRasterDriver
public void setProjection(IProjection p)
setProjection
in interface GeorreferencedRasterDriver
p
- the new projectionpublic java.awt.geom.Rectangle2D getFullExtent()
GeorreferencedRasterDriver
getFullExtent
in interface GeorreferencedRasterDriver
public boolean isGeoreferenced()
GeorreferencedRasterDriver
isGeoreferenced
in interface GeorreferencedRasterDriver
public void setAffineTransform(java.awt.geom.AffineTransform t)
setAffineTransform
in interface GeorreferencedRasterDriver
t
- Matriz de transformaciónpublic java.awt.geom.AffineTransform getAffineTransform()
GeorreferencedRasterDriver
getAffineTransform
in interface GeorreferencedRasterDriver
public boolean fileAccepted(java.io.File fName)
RasterDriver
fileAccepted
in interface RasterDriver
public void open(java.io.File f) throws java.io.IOException
open
in interface RasterDriver
java.io.IOException
public void initialize() throws java.io.IOException
initialize
in interface RasterDriver
java.io.IOException
public void close() throws java.io.IOException
close
in interface RasterDriver
java.io.IOException
public java.lang.String getFilePath()
getFilePath
in interface RasterDriver
public int getNumBands()
RasterDriver
getNumBands
in interface RasterDriver
public int getTransparency()
getTransparency
in interface RasterDriver
public void setTransparency(int trans)
setTransparency
in interface RasterDriver
public void draw(java.awt.Graphics2D g, ViewPort viewPort) throws FMapDriverException
draw
in interface RasterDriver
g
- the graphics object on which the image must be drawnviewPort
- the current viewport object
FMapDriverException
public int getRasterDataType()
getRasterDataType
in interface RasterDriver
public java.lang.Object getData(int x, int y, int band)
getData
in interface RasterDriver
x
- the x coordinate of the pixel of interesty
- the y coordinate of the pixel of interestband
- public int[] getPixel(double wcx, double wcy)
getPixel
in interface RasterDriver
wcx
- x coordinate of the point of interest (map units)wcy
- y coordinate of the point of interest (map units)
public java.lang.String getName()
Driver
getName
in interface Driver
public java.util.ArrayList getInfo(java.awt.Point p, double tolerance, Cancellable cancel, java.lang.String srs) throws FMapDriverException
getInfo
in interface InfoByPoint
p
- the screen point of interesttolerance
- tolerance ised for query width (unused here)cancel
- cancel objectsrs
- used SRS
FMapDriverException
public java.net.URL getServerUrl()
public java.lang.String getRequestedLayers()
public java.lang.String getRequestedStyles()
public java.lang.String getImageFormat()
public java.lang.String getSrs()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |