public class CFPoint extends java.lang.Object implements Point
Constructor and Description |
---|
CFPoint()
Constructs a new empty point at (0,0) with no connections.
|
CFPoint(double x,
double y,
Point prev,
Point next,
Array data)
Construct a new point from specified parameters
The construction will automatically connect in related parts of a Multipoint - just specify any constituents
of a multipoint as next or prev.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getBBLower()
Gets the lower bounding box coordinate on the polygon.
|
double[] |
getBBUpper()
Gets the upper bounding box coordinate on the point.
|
Array |
getData()
Get the data associated with this point
|
GeometryType |
getGeometryType()
Get the geometry the data is associated with.
|
Point |
getNext()
Retrieves the next point within a multipoint if any
|
Point |
getPrev()
Retrieves the previous point within a multipoint if any
|
double |
getX()
Return the x coordinate for the point.
|
double |
getY()
Return the y coordinate for the point
|
void |
setData(Array arr)
Sets the data array of the point.
|
void |
setNext(Point next)
Sets the next point in a multipoint
|
void |
setPrev(Point prev)
Set the previous point in a multipoint
|
Point |
setupPoint(NetcdfDataset dataset,
Variable vari,
int index)
Given a dataset, variable, and index, automatically populates this Point and
returns it.
|
void |
setX(double x)
Sets the x coordinate of the point.
|
void |
setY(double y)
Set the y coordinate of the point.
|
public CFPoint(double x, double y, Point prev, Point next, Array data)
x
- - the x coordinate of the pointy
- - the y coordinate of the pointprev
- - previous point if part of a multipointnext
- - next point if part of a multipointdata
- - data associated with the pointpublic CFPoint()
public GeometryType getGeometryType()
public Array getData()
getData
in interface Point
getData
in interface SimpleGeometry
public double getX()
public double getY()
public Point getNext()
public Point getPrev()
public void setData(Array arr)
setData
in interface Point
setData
in interface SimpleGeometry
arr
- the array which will be the points new data arraypublic void setX(double x)
public void setY(double y)
public void setNext(Point next)
public void setPrev(Point prev)
public Point setupPoint(NetcdfDataset dataset, Variable vari, int index)
setupPoint
in interface Point
dataset
- which the variable is a part ofvari
- the variable which has a geometry attributeindex
- of the point within the variablepublic double[] getBBUpper()
getBBUpper
in interface SimpleGeometry
public double[] getBBLower()
getBBLower
in interface SimpleGeometry