Class SimpleGeometryCS
- java.lang.Object
-
- ucar.nc2.ft2.simpgeometry.adapter.SimpleGeometryCS
-
public class SimpleGeometryCS extends Object
Simple Geometry Coordinate System / Enhanced Dataset Implementation Forked from ucar.nc2.ft2.coverage.adapter.GridCS- Since:
- 8/9/2018
-
-
Constructor Summary
Constructors Constructor Description SimpleGeometryCS(SimpleGeometryCSBuilder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Dimension>
getDimensions()
Get a list of all dimensions in this dataset.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 Variable name and a geometry index returns a LineList<Line>
getLines(String name, int indexBegin, int indexEnd)
Given a Variable name and a beginning index and end index, returns a list of lines (inclusive on both sides)Point
getPoint(String name, int index)
Given a Variable name and a geometry index returns a PointList<Point>
getPoints(String name, int indexBegin, int indexEnd)
Given a Variable name and a beginning index and end index returns a list of points (inclusive on both sides)Polygon
getPolygon(String name, int index)
Given a Variable name and a geometry index returns a PolygonList<Polygon>
getPolygons(String name, int indexBegin, int indexEnd)
Given a Variable name and a beginning index and end index, returns a list of polygon (inclusive on both sides)List<CoordinateAxis>
getSimpleGeometryID()
Get a list of all simple geometry ID axes.List<CoordinateAxis>
getSimpleGeometryX()
Get a list of all simple geometry X axes.List<CoordinateAxis>
getSimpleGeometryY()
Get a list of all simple geometry Y axesList<CoordinateAxis>
getSimpleGeometryZ()
Get a list of all simple geometry Z axes.static SimpleGeometryCS
makeSGCoordSys(Formatter sbuff, CoordinateSystem cs, Variable v)
-
-
-
Constructor Detail
-
SimpleGeometryCS
public SimpleGeometryCS(SimpleGeometryCSBuilder builder)
-
-
Method Detail
-
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
-
getSimpleGeometryX
public List<CoordinateAxis> getSimpleGeometryX()
Get a list of all simple geometry X axes.- Returns:
- list of simple geometry X axes
-
getSimpleGeometryY
public List<CoordinateAxis> getSimpleGeometryY()
Get a list of all simple geometry Y axes- Returns:
- list of simple geometry Y axes
-
getSimpleGeometryZ
public List<CoordinateAxis> getSimpleGeometryZ()
Get a list of all simple geometry Z axes.- Returns:
- list of simple geometry Z axes.
-
getSimpleGeometryID
public List<CoordinateAxis> getSimpleGeometryID()
Get a list of all simple geometry ID axes. Simple Geometry ID axes are used for indexing into simple geometry variables.- Returns:
- list of simple geometry ID axes
-
getDimensions
public List<Dimension> getDimensions()
Get a list of all dimensions in this dataset.- Returns:
- list of dimensions.
-
getPolygon
public Polygon getPolygon(String name, int index)
Given a Variable name and a geometry index returns a Polygon- Parameters:
name
- of the data variableindex
- within the variable- Returns:
- polygon with all associated data, null if not found
-
getPolygons
public List<Polygon> getPolygons(String name, int indexBegin, int indexEnd)
Given a Variable name and a beginning index and end index, returns a list of polygon (inclusive on both sides)
-
getLine
public Line getLine(String name, int index)
Given a Variable name and a geometry index returns a Line- Parameters:
name
- of the data variableindex
- within the variable- Returns:
- line with all associated data, null if not found
-
getLines
public List<Line> getLines(String name, int indexBegin, int indexEnd)
Given a Variable name and a beginning index and end index, returns a list of lines (inclusive on both sides)
-
getPoint
public Point getPoint(String name, int index)
Given a Variable name and a geometry index returns a Point- Parameters:
name
- of the data variableindex
- within the variable- Returns:
- point with all associated data, null if not found
-
getPoints
public List<Point> getPoints(String name, int indexBegin, int indexEnd)
Given a Variable name and a beginning index and end index returns a list of points (inclusive on both sides)- Parameters:
name
- of the data variableindexBegin
- within the variableindexEnd
- within the variable- Returns:
- a list of points with associated data
-
makeSGCoordSys
public static SimpleGeometryCS makeSGCoordSys(Formatter sbuff, CoordinateSystem cs, Variable v)
-
-