|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.data.FormNode
visad.data.FormFamily
visad.data.FunctionFormFamily
visad.data.gis.DemFamily
public class DemFamily
A container for all the supported DEM types. Currently, USGS
DEM and Arc ASCIIGRID formats are supported.
To read a Data object from a file or URL:
Data data = new DemFamily("dems").open(string);
UsgsDemForm,
ArcAsciiGridForm| Field Summary |
|---|
| Fields inherited from class visad.data.FormFamily |
|---|
forms |
| Constructor Summary | |
|---|---|
DemFamily(String name)
Construct a family of the supported map datatype Forms |
|
DemFamily(String name,
MathType dataFormat)
Construct a family of the supported map datatype Forms |
|
| Method Summary | |
|---|---|
static void |
addFormToList(FormNode form)
Add to the family of the supported map datatype Forms |
String[] |
getDefaultSuffixes()
Get a list of default suffixes for McIDAS map files |
boolean |
isThisType(byte[] block)
Determines if this is a USGS DEM file from the starting block |
boolean |
isThisType(String name)
Determines if this is a DEM file from the name |
static void |
main(String[] args)
Test the DemFamily class run java visad.data.gis.DemFamily dem1 dem2 ... demn |
DataImpl |
open(String id)
Open a local data object using the first appropriate map form. |
DataImpl |
open(URL url)
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 |
| Methods inherited from class visad.data.FormNode |
|---|
getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DemFamily(String name)
name - name of the family
public DemFamily(String name,
MathType dataFormat)
name - name of the family| Method Detail |
|---|
public static void addFormToList(FormNode form)
throws ArrayIndexOutOfBoundsException
form - FormNode to add to the list
ArrayIndexOutOfBoundsException - If there is no more room in the list.public boolean isThisType(String name)
isThisType in interface FormFileInformername - name of the file
public boolean isThisType(byte[] block)
isThisType in interface FormFileInformerblock - block of data to check
public String[] getDefaultSuffixes()
getDefaultSuffixes in interface FormFileInformer
public DataImpl open(String id)
throws BadFormException,
VisADException
open in class FunctionFormFamilyid - String representing the path of the map file
BadFormException - - no form is appropriate
VisADException - - VisAD error
public DataImpl open(URL url)
throws BadFormException,
VisADException,
IOException
open in class FunctionFormFamilyurl - URL representing the location of the map file
BadFormException - - no form is appropriate
VisADException - - VisAD error
IOException - - file not found
public static void main(String[] args)
throws BadFormException,
IOException,
RemoteException,
VisADException
BadFormException
IOException
RemoteException
VisADException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||