Class SimpleGeometryCSBuilder
- java.lang.Object
-
- ucar.nc2.ft2.simpgeometry.adapter.SimpleGeometryCSBuilder
-
public class SimpleGeometryCSBuilder extends Object
Simple Geometry Coordinate System / Dataset Builder. Forked from DtCoverageCSBuilder.java- Since:
- 8/22/2018
-
-
Constructor Summary
Constructors Constructor Description SimpleGeometryCSBuilder(NetcdfDataset ds, CoordinateSystem cs, Formatter errlog)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimpleGeometryCSBuilder
classify(NetcdfDataset ds, Formatter errlog)
static String
describe(NetcdfDataset ds, Formatter errlog)
static String
describe(NetcdfDataset ds, CoordinateSystem cs, Formatter errlog)
List<CoordinateAxis>
getAllAxes()
Returns the list of all axes contained in this coordinate system.List<CoordinateTransform>
getCoordTransforms()
Returns a list of coord transforms contained in this coordinate system.List<Dimension>
getDimensions()
Returns the list of dimensions contained in this coordinate system.FeatureType
getFeatureType()
Returns the feature type of this typeList<String>
getGeometryContainerAssociations(String nameOfContainer)
Returns a list of variables (in no particular order) which utilize the given geometry container.List<String>
getGeometryContainerNames()
Returns the names of variables which are detected as geometry containers.List<String>
getGeometrySeriesNames()
Returns the names of variables which are detected as geometry data series.GeometryType
getGeometryType(String name)
Given a variable name, returns the type of geometry which that variable is holdingLine
getLine(String name, int index)
Given a certain variable name and geometry index, returns a Simple Geometry Line.List<Line>
getLines(String name, int indexBegin, int indexEnd)
Given a certain line variable name and geometry begin and end indicies, returns a list of Simple Geometry LinePoint
getPoint(String name, int index)
Given a certain variable name and geometry index, returns a Simple Geometry PointList<Point>
getPoints(String name, int indexBegin, int indexEnd)
Given a certain Point variable name and geometry begin and end indicies, returns a list of Simple Geometry PointsPolygon
getPolygon(String name, int index)
Given a certain variable name and geometry index, returns a Simple Geometry Polygon.List<Polygon>
getPolygons(String name, int indexBegin, int indexEnd)
Given a certain Polygon variable name and geometry begin and end indicies, returns a list of Simple Geometry PolygonProjection
getProjection()
Get the projection of this coordinate system.List<CoordinateAxis>
getSgAxes()
Returns the list of simple geometry axes contained in this coordinate system.SimpleGeometryCS
makeCoordSys()
String
showSummary()
String
toString()
-
-
-
Constructor Detail
-
SimpleGeometryCSBuilder
public SimpleGeometryCSBuilder(NetcdfDataset ds, CoordinateSystem cs, Formatter errlog)
-
-
Method Detail
-
classify
public static SimpleGeometryCSBuilder classify(NetcdfDataset ds, Formatter errlog)
-
describe
public static String describe(NetcdfDataset ds, Formatter errlog)
-
describe
public static String describe(NetcdfDataset ds, CoordinateSystem cs, Formatter errlog)
-
getAllAxes
public List<CoordinateAxis> getAllAxes()
Returns the list of all axes contained in this coordinate system.- Returns:
- simple geometry axes
-
getCoordTransforms
public List<CoordinateTransform> getCoordTransforms()
Returns a list of coord transforms contained in this coordinate system.- Returns:
- coordinate transforms
-
getDimensions
public List<Dimension> getDimensions()
Returns the list of dimensions contained in this coordinate system.- Returns:
- dimensions
-
getSgAxes
public List<CoordinateAxis> getSgAxes()
Returns the list of simple geometry axes contained in this coordinate system.- Returns:
- simple geometry axes
-
getGeometryType
public GeometryType getGeometryType(String name)
Given a variable name, returns the type of geometry which that variable is holding- Parameters:
name
- name of the variable- Returns:
- geometry type associated with that variable
-
getProjection
public Projection getProjection()
Get the projection of this coordinate system.- Returns:
- projection
-
getPolygon
public Polygon getPolygon(String name, int index)
Given a certain variable name and geometry index, returns a Simple Geometry Polygon.
-
getPolygons
public List<Polygon> getPolygons(String name, int indexBegin, int indexEnd)
Given a certain Polygon variable name and geometry begin and end indicies, returns a list of Simple Geometry Polygon
-
getLine
public Line getLine(String name, int index)
Given a certain variable name and geometry index, returns a Simple Geometry Line.- Returns:
- line
-
getLines
public List<Line> getLines(String name, int indexBegin, int indexEnd)
Given a certain line variable name and geometry begin and end indicies, returns a list of Simple Geometry Line
-
getPoint
public Point getPoint(String name, int index)
Given a certain variable name and geometry index, returns a Simple Geometry Point
-
getPoints
public List<Point> getPoints(String name, int indexBegin, int indexEnd)
Given a certain Point variable name and geometry begin and end indicies, returns a list of Simple Geometry Points
-
getGeometryContainerNames
public List<String> getGeometryContainerNames()
Returns the names of variables which are detected as geometry containers.- Returns:
- variable name
-
getGeometrySeriesNames
public List<String> getGeometrySeriesNames()
Returns the names of variables which are detected as geometry data series.- Returns:
- variable name
-
getGeometryContainerAssociations
public List<String> getGeometryContainerAssociations(String nameOfContainer)
Returns a list of variables (in no particular order) which utilize the given geometry container.- Parameters:
nameOfContainer
- to find associations for- Returns:
- associations (if any) null if none
-
makeCoordSys
public SimpleGeometryCS makeCoordSys()
-
getFeatureType
public FeatureType getFeatureType()
Returns the feature type of this type- Returns:
- Feature type of this type
-
showSummary
public String showSummary()
-
-