Package ucar.visad
Class MapFamily
java.lang.Object
visad.data.FormNode
visad.data.FormFamily
visad.data.FunctionFormFamily
ucar.visad.MapFamily
A container for all the supported Map types. Currently, ESRI
shapefiles, McIDAS and Zebra map files are supported.
To read a Data object from a file or URL:
Data data = new MapFamily("maps").open(string);
- Version:
- $Revision: 1.10 $
- Author:
- Don Murray
- See Also:
-
Field Summary
Fields inherited from class visad.data.FormFamily
forms
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addFormToList
(FormNode form) Add to the family of the supported map datatype Formsstatic void
Test the MapFamily class.Open a local data object using the first appropriate map form.Open a remote data object using the first appropriate map form.Methods inherited from class visad.data.FunctionFormFamily
add, save
Methods inherited from class visad.data.FormFamily
addFormNode, getForms
-
Constructor Details
-
MapFamily
Construct a family of the supported map datatype Forms- Parameters:
name
- name of the family
-
-
Method Details
-
addFormToList
Add to the family of the supported map datatype Forms- Parameters:
form
- FormNode to add to the list- Throws:
ArrayIndexOutOfBoundsException
- If there is no more room in the list.
-
open
Open a local data object using the first appropriate map form.- Overrides:
open
in classFunctionFormFamily
- Parameters:
id
- String representing the path of the map file- Returns:
- the VisAD Data representation of the map file
- Throws:
BadFormException
- - no form is appropriateVisADException
- - VisAD error
-
open
Open a remote data object using the first appropriate map form.- Overrides:
open
in classFunctionFormFamily
- Parameters:
url
- URL representing the location of the map file- Returns:
- the VisAD Data representation of the map file
- Throws:
BadFormException
- - no form is appropriateVisADException
- - VisAD errorIOException
- - file not found
-
main
public static void main(String[] args) throws BadFormException, IOException, RemoteException, VisADException Test the MapFamily class. Run java ucar.visad.MapFamily map1 map2 ... mapn- Parameters:
args
- map file locations- Throws:
BadFormException
IOException
RemoteException
VisADException
-