public class SimpleGeometryReader
extends java.lang.Object
Constructor and Description |
---|
SimpleGeometryReader(NetcdfDataset ds)
Constructs a new Simple Geometry Reader over the specified dataset.
|
Modifier and Type | Method and Description |
---|---|
GeometryType |
getGeometryType(java.lang.String name)
Given a variable name, returns the geometry type which that variable is associated with.
|
Line |
readLine(java.lang.String name,
int index)
Returns a Line given a variable name and the geometric index.
|
Point |
readPoint(java.lang.String name,
int index)
Returns a Point given a variable name and the geometric index.
|
Polygon |
readPolygon(java.lang.String name,
int index)
Returns a Polygon given a variable name and the geometric index.
|
public SimpleGeometryReader(NetcdfDataset ds)
ds
- - the specified datasetpublic Polygon readPolygon(java.lang.String name, int index)
name
- of the variable which holds the Polygonindex
- of the Polygon within the variablepublic Line readLine(java.lang.String name, int index)
name
- of the variable which holds the Lineindex
- of the Line within the variablepublic Point readPoint(java.lang.String name, int index)
name
- of the variable which holds the Pointindex
- of the Point within the variablepublic GeometryType getGeometryType(java.lang.String name)
name
- variable name which will have geometry type be checked