public class MapFamily
extends visad.data.FunctionFormFamily
Data data = new MapFamily("maps").open(string);
ShapefileForm,
ZebraMapForm,
MapForm| Constructor and Description |
|---|
MapFamily(java.lang.String name)
Construct a family of the supported map datatype Forms
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addFormToList(visad.data.FormNode form)
Add to the family of the supported map datatype Forms
|
static void |
main(java.lang.String[] args)
Test the MapFamily class.
|
visad.DataImpl |
open(java.lang.String id)
Open a local data object using the first appropriate map form.
|
visad.DataImpl |
open(java.net.URL url)
Open a remote data object using the first appropriate map form.
|
public MapFamily(java.lang.String name)
name - name of the familypublic static void addFormToList(visad.data.FormNode form)
throws java.lang.ArrayIndexOutOfBoundsException
form - FormNode to add to the listjava.lang.ArrayIndexOutOfBoundsException - If there is no more room in the list.public visad.DataImpl open(java.lang.String id)
throws visad.data.BadFormException,
visad.VisADException
open in class visad.data.FunctionFormFamilyid - String representing the path of the map filevisad.data.BadFormException - - no form is appropriatevisad.VisADException - - VisAD errorpublic visad.DataImpl open(java.net.URL url)
throws visad.data.BadFormException,
visad.VisADException,
java.io.IOException
open in class visad.data.FunctionFormFamilyurl - URL representing the location of the map filevisad.data.BadFormException - - no form is appropriatevisad.VisADException - - VisAD errorjava.io.IOException - - file not foundpublic static void main(java.lang.String[] args)
throws visad.data.BadFormException,
java.io.IOException,
java.rmi.RemoteException,
visad.VisADException
args - map file locationsvisad.data.BadFormExceptionjava.io.IOExceptionjava.rmi.RemoteExceptionvisad.VisADException