public class ShapefileForm
extends visad.data.Form
implements visad.data.FormFileInformer
| Constructor and Description |
|---|
ShapefileForm()
Construct a Form for reading in ESRI shapefile map files
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String id,
visad.Data data,
boolean replace)
Add data to an existing data object
|
java.lang.String[] |
getDefaultSuffixes()
Get a list of default suffixes for shapfile map files
|
visad.data.FormNode |
getForms(visad.Data data)
Return the data forms that are compatible with a data object
|
boolean |
isThisType(byte[] block)
Determines if this is a shapfile map file from the starting block
|
boolean |
isThisType(java.lang.String name)
Determines if this is a shapefile map file from the name
|
visad.DataImpl |
open(java.lang.String id)
Open the file specified by the string
|
visad.DataImpl |
open(java.net.URL url)
Open the file specified by the URL
|
void |
save(java.lang.String id,
visad.Data data,
boolean replace)
Save a VisAD data object in this form
|
public ShapefileForm()
public boolean isThisType(java.lang.String name)
isThisType in interface visad.data.FormFileInformername - name of the filepublic boolean isThisType(byte[] block)
isThisType in interface visad.data.FormFileInformerblock - block of data to checkpublic java.lang.String[] getDefaultSuffixes()
getDefaultSuffixes in interface visad.data.FormFileInformerpublic void save(java.lang.String id,
visad.Data data,
boolean replace)
throws visad.data.BadFormException,
java.io.IOException,
java.rmi.RemoteException,
visad.VisADException
save in class visad.data.FormNodeid - location of datadata - data to addreplace - true to replace old with newvisad.data.BadFormException - bad formjava.io.IOException - file doesn't existjava.rmi.RemoteException - Java RMI problemvisad.VisADException - Problem creating data. throws UnimplementedException - can't be done yet.public void add(java.lang.String id,
visad.Data data,
boolean replace)
throws visad.data.BadFormException
add in class visad.data.FormNodeid - location of datadata - data to addreplace - true to replace old with newvisad.data.BadFormException - always for this formpublic visad.DataImpl open(java.lang.String id)
throws visad.data.BadFormException,
java.io.IOException,
visad.VisADException
open in class visad.data.FormNodeid - string representing the path to the filevisad.data.BadFormException - bad formjava.io.IOException - file doesn't existvisad.VisADException - Problem creating datapublic visad.DataImpl open(java.net.URL url)
throws visad.data.BadFormException,
visad.VisADException,
java.io.IOException
open in class visad.data.FormNodeurl - URL of the remote mapvisad.data.BadFormException - bad formjava.io.IOException - file doesn't existvisad.VisADException - Problem creating datapublic visad.data.FormNode getForms(visad.Data data)
getForms in class visad.data.FormNodedata - data in question