public class FeatureDatasetFactoryManager
extends java.lang.Object
All point datasets are going through PointDatasetStandardFactory, which uses TableAnalyzer to deal with specific dataset conventions.
FeatureDatasetFactory| Constructor and Description |
|---|
FeatureDatasetFactoryManager() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
featureTypeOk(FeatureType want,
FeatureType facType)
Determine if factory type matches wanted feature type.
|
static FeatureType |
findFeatureType(NetcdfFile ncd)
Try to determine the feature type of the dataset, by looking at its metadata.
|
static void |
main(java.lang.String[] args) |
static FeatureDataset |
open(FeatureType wantFeatureType,
java.lang.String location,
CancelTask task,
java.util.Formatter errlog)
Open a dataset as a FeatureDataset.
|
static void |
registerFactory(java.lang.Class c)
Register a class that implements a FeatureDatasetFactory.
|
static void |
registerFactory(FeatureType datatype,
java.lang.Class c)
Register a class that implements a FeatureDatasetFactory.
|
static boolean |
registerFactory(FeatureType datatype,
java.lang.String className)
Register a class that implements a FeatureDatasetFactory.
|
static void |
registerFactory(java.lang.String className)
Register a class that implements a FeatureDatasetFactory.
|
static FeatureDataset |
wrap(FeatureType wantFeatureType,
NetcdfDataset ncd,
CancelTask task,
java.util.Formatter errlog)
Wrap a NetcdfDataset as a FeatureDataset.
|
public static boolean registerFactory(FeatureType datatype, java.lang.String className)
datatype - scientific data typeclassName - name of class that implements FeatureDatasetFactory.public static void registerFactory(FeatureType datatype, java.lang.Class c)
datatype - scientific data typec - class that implements FeatureDatasetFactory.public static void registerFactory(java.lang.String className)
throws java.lang.ClassNotFoundException
className - name of class that implements FeatureDatasetFactory.java.lang.ClassNotFoundException - if loading errorpublic static void registerFactory(java.lang.Class c)
c - class that implements FeatureDatasetFactory.public static FeatureDataset open(FeatureType wantFeatureType, java.lang.String location, CancelTask task, java.util.Formatter errlog) throws java.io.IOException
wantFeatureType - open this kind of FeatureDataset; may be null, which means search all factories.
If datatype is not null, only return correct FeatureDataset (eg PointFeatureDataset for DataType.POINT).location - URL or file location of the dataset. This may be a
task - user may cancelerrlog - place errors here, may not be nulljava.io.IOException - on io errorpublic static FeatureDataset wrap(FeatureType wantFeatureType, NetcdfDataset ncd, CancelTask task, java.util.Formatter errlog) throws java.io.IOException
wantFeatureType - open this kind of FeatureDataset; may be null, which means search all factories.
If datatype is not null, only return FeatureDataset with objects of that typencd - the NetcdfDataset to wrap as a FeatureDatasettask - user may cancelerrlog - place errors here, may not be nulljava.io.IOException - on io errorpublic static boolean featureTypeOk(FeatureType want, FeatureType facType)
want - looking for this FeatureTypefacType - factory is of this typepublic static FeatureType findFeatureType(NetcdfFile ncd)
ncd - the datasetpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException