Package ucar.nc2.ft
Class SimpleGeometryStandardFactory
- java.lang.Object
-
- ucar.nc2.ft.SimpleGeometryStandardFactory
-
- All Implemented Interfaces:
FeatureDatasetFactory
public class SimpleGeometryStandardFactory extends Object implements FeatureDatasetFactory
Standard factory for Simple Geometry datatypes. Forked from GridDatasetStandardFactory.java- Since:
- 8/22/2018
-
-
Constructor Summary
Constructors Constructor Description SimpleGeometryStandardFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureType[]getFeatureTypes()This Factory can open these types of Feature datasets.ObjectisMine(FeatureType wantFeatureType, NetcdfDataset ncd, Formatter errlog)Determine if the factory can open this dataset as an instance of the given feature typeFeatureDatasetopen(FeatureType ftype, NetcdfDataset ncd, Object analysis, CancelTask task, Formatter errlog)Open a NetcdfDataset as a FeatureDataset.
-
-
-
Method Detail
-
isMine
public Object isMine(FeatureType wantFeatureType, NetcdfDataset ncd, Formatter errlog)
Description copied from interface:FeatureDatasetFactoryDetermine if the factory can open this dataset as an instance of the given feature type- Specified by:
isMinein interfaceFeatureDatasetFactory- Parameters:
wantFeatureType- can factory open as this feature type? If null, can factory open as any feature type?ncd- examine this NetcdfDataset.errlog- place errors here- Returns:
- "analysis object" - null if cannot open, else an Object that is passed back into FeatureDatasetFactory.open(). This allows expensive analysis results to be reused
-
open
public FeatureDataset open(FeatureType ftype, NetcdfDataset ncd, Object analysis, CancelTask task, Formatter errlog) throws IOException
Description copied from interface:FeatureDatasetFactoryOpen a NetcdfDataset as a FeatureDataset. Should only be called if isMine() returns non-null.- Specified by:
openin interfaceFeatureDatasetFactory- Parameters:
ftype- open as this feature type. If null, open as any feature type.ncd- an already opened NetcdfDataset.analysis- the object returned from isMine(). Likely given to a different instance of FeatureDatasetFactorytask- user may cancel, may be nullerrlog- write error messages here, may be null- Returns:
- a subclass of FeatureDataset
- Throws:
IOException- on error
-
getFeatureTypes
public FeatureType[] getFeatureTypes()
Description copied from interface:FeatureDatasetFactoryThis Factory can open these types of Feature datasets.- Specified by:
getFeatureTypesin interfaceFeatureDatasetFactory- Returns:
- array of FeatureType
-
-