ucar.unidata.idv.chooser
Class WmsHandler

java.lang.Object
  extended by ucar.unidata.idv.chooser.XmlHandler
      extended by ucar.unidata.idv.chooser.WmsHandler

public class WmsHandler
extends XmlHandler

This handles capability xml document from web maps servers (WMS). It is used by the XmlChooser

Version:
$Revision: 1.53 $Date: 2007/07/09 22:59:58 $
Author:
IDV development team

Field Summary
static String ATTR_FIXEDHEIGHT
          xml attribute name
static String ATTR_FIXEDWIDTH
          xml attribute name
static String ATTR_MAXX
          xml attribute name
static String ATTR_MAXY
          xml attribute name
static String ATTR_MINX
          xml attribute name
static String ATTR_MINY
          xml attribute name
static String ATTR_NAME
          xml attribute name
static String ATTR_NOSUBSETS
          xml attribute name
static String ATTR_VERSION
          xml attribute name
static String TAG_ABSTRACT
          XML tag name for the "Abstract" tag
static String TAG_BOUNDINGBOX
          xml tag name
static String TAG_CAPABILITY
          XML tag name for the "Capability" tag
static String TAG_CRS
          xml tag name
static String TAG_DIMENSION
          XML tag name for the "Dimension" tag
static String TAG_LATLONBOUNDINGBOX
          xml tag name
static String TAG_LAYER
          XML tag name for the "Layer" tag
static String TAG_SRS
          xml tag name
static String TAG_STYLE
          XML tag name for the "Style" tag
static String TAG_TITLE
          XML tag name for the "Title" tag
static String TAG_WMS1
          This is one of the root document xml tags that I have seen for a WMS cababilities document
static String TAG_WMS2
          This is the ther root document xml tags that I have seen for a WMS cababilities document
static String VALUE_TIME
          xml attribute value
 
Fields inherited from class ucar.unidata.idv.chooser.XmlHandler
chooser, path, root, tree
 
Constructor Summary
WmsHandler(XmlChooser chooser, Element root, String path)
          Create the handler
 
Method Summary
static void convertToKml(String url)
          Humm??
 void doLoad()
          The user has pressed the 'Load' button.
protected  JComponent doMakeContents()
          Construct and return the UI component.
static void main(String[] args)
          test
protected  void updateStatus()
           
 
Methods inherited from class ucar.unidata.idv.chooser.XmlHandler
getContents, getPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_ABSTRACT

public static final String TAG_ABSTRACT
XML tag name for the "Abstract" tag

See Also:
Constant Field Values

TAG_DIMENSION

public static final String TAG_DIMENSION
XML tag name for the "Dimension" tag

See Also:
Constant Field Values

TAG_LAYER

public static final String TAG_LAYER
XML tag name for the "Layer" tag

See Also:
Constant Field Values

TAG_LATLONBOUNDINGBOX

public static final String TAG_LATLONBOUNDINGBOX
xml tag name

See Also:
Constant Field Values

TAG_BOUNDINGBOX

public static final String TAG_BOUNDINGBOX
xml tag name

See Also:
Constant Field Values

TAG_SRS

public static final String TAG_SRS
xml tag name

See Also:
Constant Field Values

TAG_CRS

public static final String TAG_CRS
xml tag name

See Also:
Constant Field Values

TAG_TITLE

public static final String TAG_TITLE
XML tag name for the "Title" tag

See Also:
Constant Field Values

TAG_STYLE

public static final String TAG_STYLE
XML tag name for the "Style" tag

See Also:
Constant Field Values

TAG_CAPABILITY

public static final String TAG_CAPABILITY
XML tag name for the "Capability" tag

See Also:
Constant Field Values

TAG_WMS1

public static final String TAG_WMS1
This is one of the root document xml tags that I have seen for a WMS cababilities document

See Also:
Constant Field Values

TAG_WMS2

public static final String TAG_WMS2
This is the ther root document xml tags that I have seen for a WMS cababilities document

See Also:
Constant Field Values

ATTR_FIXEDWIDTH

public static final String ATTR_FIXEDWIDTH
xml attribute name

See Also:
Constant Field Values

ATTR_VERSION

public static final String ATTR_VERSION
xml attribute name

See Also:
Constant Field Values

ATTR_FIXEDHEIGHT

public static final String ATTR_FIXEDHEIGHT
xml attribute name

See Also:
Constant Field Values

ATTR_NAME

public static final String ATTR_NAME
xml attribute name

See Also:
Constant Field Values

ATTR_NOSUBSETS

public static final String ATTR_NOSUBSETS
xml attribute name

See Also:
Constant Field Values

ATTR_MINX

public static final String ATTR_MINX
xml attribute name

See Also:
Constant Field Values

ATTR_MAXX

public static final String ATTR_MAXX
xml attribute name

See Also:
Constant Field Values

ATTR_MINY

public static final String ATTR_MINY
xml attribute name

See Also:
Constant Field Values

ATTR_MAXY

public static final String ATTR_MAXY
xml attribute name

See Also:
Constant Field Values

VALUE_TIME

public static final String VALUE_TIME
xml attribute value

See Also:
Constant Field Values
Constructor Detail

WmsHandler

public WmsHandler(XmlChooser chooser,
                  Element root,
                  String path)
Create the handler

Parameters:
chooser - The chooser we are in
root - The root of the xml tree
path - The url path of the xml document
Method Detail

updateStatus

protected void updateStatus()
Overrides:
updateStatus in class XmlHandler

doMakeContents

protected JComponent doMakeContents()
Construct and return the UI component. We use an XmlTree to show the XML and a

Specified by:
doMakeContents in class XmlHandler
Returns:
The UI component

doLoad

public void doLoad()
The user has pressed the 'Load' button. Check if a node is selected and if so create the WMS data source.

Specified by:
doLoad in class XmlHandler

convertToKml

public static void convertToKml(String url)
                         throws Exception
Humm??

Parameters:
url - Humm
Throws:
Exception - On badness

main

public static void main(String[] args)
                 throws Exception
test

Parameters:
args - args
Throws:
Exception - On badness