Package org.geotools.imageio.netcdf.cv
Class CoordinateVariable<T>
- Object
-
- CoordinateVariable<T>
-
- Type Parameters:
T
-
- Direct Known Subclasses:
ClimatologicalTimeCoordinateVariable
public abstract class CoordinateVariable<T> extends Object
- Author:
- Simone Giannecchini GeoSolutions SAS, Niels Charlier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
CoordinateVariable.AxisHelper<T>
protected class
CoordinateVariable.CoordinateAxis1DNumericHelper
protected class
CoordinateVariable.CoordinateAxisGeneralHelper
To use in case that (1) coordinate axis is not one-dimensional (2) coordinate axis is not numerical
-
Field Summary
Fields Modifier and Type Field Description protected Class<T>
binding
protected CoordinateAxis
coordinateAxis
-
Constructor Summary
Constructors Constructor Description CoordinateVariable(Class<T> binding, CoordinateAxis coordinateAxis)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract CoordinateReferenceSystem
buildCoordinateReferenceSystem()
protected abstract T
convertValue(Object o)
static CoordinateVariable<?>
create(CoordinateAxis coordinateAxis)
AxisType
getAxisType()
CoordinateReferenceSystem
getCoordinateReferenceSystem()
double
getIncrement()
T
getMaximum()
T
getMinimum()
String
getName()
long
getSize()
double
getStart()
Class<T>
getType()
String
getUnit()
protected void
init()
protected boolean
isMissing(Object val)
abstract boolean
isNumeric()
boolean
isRegular()
List<T>
read()
T
read(Map<String,Integer> indexMap)
static Class<?>
suggestBinding(CoordinateAxis coordinateAxis)
String
toString()
CoordinateAxis
unwrap()
-
-
-
Method Detail
-
suggestBinding
public static Class<?> suggestBinding(CoordinateAxis coordinateAxis)
-
create
public static CoordinateVariable<?> create(CoordinateAxis coordinateAxis)
-
init
protected void init()
-
isMissing
protected boolean isMissing(Object val)
-
getUnit
public String getUnit()
-
unwrap
public CoordinateAxis unwrap()
-
getAxisType
public AxisType getAxisType()
-
getName
public String getName()
-
getSize
public long getSize() throws IOException
- Throws:
IOException
-
isRegular
public boolean isRegular()
-
getIncrement
public double getIncrement()
-
getStart
public double getStart()
-
getMinimum
public T getMinimum() throws IOException
- Throws:
IOException
-
getMaximum
public T getMaximum() throws IOException
- Throws:
IOException
-
read
public T read(Map<String,Integer> indexMap) throws IndexOutOfBoundsException
- Throws:
IndexOutOfBoundsException
-
read
public List<T> read() throws IndexOutOfBoundsException
- Throws:
IndexOutOfBoundsException
-
getCoordinateReferenceSystem
public final CoordinateReferenceSystem getCoordinateReferenceSystem()
-
isNumeric
public abstract boolean isNumeric()
-
buildCoordinateReferenceSystem
protected abstract CoordinateReferenceSystem buildCoordinateReferenceSystem()
-
-