public class DemFamily extends FunctionFormFamily implements FormFileInformer
Data data = new DemFamily("dems").open(string);
UsgsDemForm
,
ArcAsciiGridForm
forms
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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 ...
|
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.
|
add, save
addFormNode, getForms
public DemFamily(String name)
name
- name of the familypublic static void addFormToList(FormNode form) throws ArrayIndexOutOfBoundsException
form
- FormNode to add to the listArrayIndexOutOfBoundsException
- If there is no more room in the list.public boolean isThisType(String name)
isThisType
in interface FormFileInformer
name
- name of the filepublic boolean isThisType(byte[] block)
isThisType
in interface FormFileInformer
block
- block of data to checkpublic String[] getDefaultSuffixes()
getDefaultSuffixes
in interface FormFileInformer
public DataImpl open(String id) throws BadFormException, VisADException
open
in class FunctionFormFamily
id
- String representing the path of the map fileBadFormException
- - no form is appropriateVisADException
- - VisAD errorpublic DataImpl open(URL url) throws BadFormException, VisADException, IOException
open
in class FunctionFormFamily
url
- URL representing the location of the map fileBadFormException
- - no form is appropriateVisADException
- - VisAD errorIOException
- - file not foundpublic static void main(String[] args) throws BadFormException, IOException, RemoteException, VisADException
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.