public class VariableAdapter extends CoverageSourceDescriptor
| Modifier and Type | Class and Description |
|---|---|
class |
VariableAdapter.UnidataAdditionalDomain
TODO improve support for this
|
class |
VariableAdapter.UnidataSpatialDomain |
class |
VariableAdapter.UnidataTemporalDomain |
class |
VariableAdapter.UnidataVerticalDomain |
| Constructor and Description |
|---|
VariableAdapter(NetCDFImageReader reader,
Name coverageName,
VariableDS variable) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFeatures(int startIndex,
int limit,
ListFeatureCollection collection)
Return features for that variable adapter, starting from slices with index = "startIndex",
and up to "limit" elements.
|
protected GridGeometry2D |
getGridGeometry()
Extracts the
grid geometry from the unidata variable. |
int |
getHeight() |
int |
getNIndex(int n,
int imageIndex)
Utility method to retrieve the n-index of a Variable coverageDescriptor stored on
NetCDFImageReader NetCDF Flat Reader HashMap indexMap. |
int |
getNumBands() |
int |
getNumberOfSlices() |
int |
getRank() |
SampleModel |
getSampleModel() |
int[] |
getShape() |
VariableAdapter.UnidataSpatialDomain |
getSpatialDomain() |
VariableAdapter.UnidataTemporalDomain |
getTemporalDomain() |
VariableAdapter.UnidataVerticalDomain |
getVerticalDomain() |
int |
getWidth() |
Map<String,Integer> |
mapIndex(int[] splittedIndex) |
int[] |
splitIndex(int imageIndex)
Utility method to split the index of a Variable coverageDescriptor stored on
NetCDFImageReader NetCDF Flat Reader HashMap indexMap into dimensions. |
void |
updateMapping(SimpleFeatureType indexSchema,
List<DimensionDescriptor> descriptors)
Update the dimensionDescriptor attributes mapping by checking the actual attribute names from
the schema
|
dispose, getAdditionalDomains, getDimensionDescriptors, getName, getRangeType, isHasAdditionalDomains, isHasTemporalDomain, isHasVerticalDomain, setAdditionalDomains, setDimensionDescriptors, setHasAdditionalDomains, setHasTemporalDomain, setHasVerticalDomain, setName, setRangeType, setSpatialDomain, setTemporalDomain, setVerticalDomainpublic static final int Z
public static final int T
public VariableAdapter(NetCDFImageReader reader, Name coverageName, VariableDS variable) throws Exception
Exceptionpublic int getRank()
public void updateMapping(SimpleFeatureType indexSchema, List<DimensionDescriptor> descriptors) throws IOException
indexSchema - descriptors - IOExceptionprotected GridGeometry2D getGridGeometry() throws IOException
grid geometry from the unidata variable.GridGeometry2D.IOExceptionpublic int getNumBands()
public SampleModel getSampleModel()
public VariableAdapter.UnidataSpatialDomain getSpatialDomain()
getSpatialDomain in class CoverageSourceDescriptorpublic VariableAdapter.UnidataTemporalDomain getTemporalDomain()
getTemporalDomain in class CoverageSourceDescriptorpublic VariableAdapter.UnidataVerticalDomain getVerticalDomain()
getVerticalDomain in class CoverageSourceDescriptorpublic int getWidth()
public int getHeight()
public int getNIndex(int n,
int imageIndex)
NetCDFImageReader NetCDF Flat Reader HashMap indexMap.n - int the dimensionimageIndex - int the image indexint -1 if not presentpublic int[] splitIndex(int imageIndex)
NetCDFImageReader NetCDF Flat Reader HashMap indexMap into dimensions.imageIndex - int the indexpublic int getNumberOfSlices()
public int[] getShape()
public int getFeatures(int startIndex,
int limit,
ListFeatureCollection collection)
startIndex - the first slice to be returnedlimit - the max number of features to be createdcollection - the feature collection where features need to be storedCopyright © 1996–2019 Geotools. All rights reserved.