public interface Polygon extends SimpleGeometry
Modifier and Type | Method and Description |
---|---|
void |
addPoint(double x,
double y)
Add a point to this polygon's points list
|
Array |
getData()
Get the data associated with this Polygon
|
boolean |
getInteriorRing()
Get whether or not this polygon is an interior ring
|
Polygon |
getNext()
Get the next polygon in the sequence of multi-polygons
|
java.util.List<Point> |
getPoints()
Get the list of points which constitute the polygon.
|
Polygon |
getPrev()
Get the previous polygon in the sequence of multi-polygons
|
void |
setData(Array data)
Set the data associated with this Polygon
|
void |
setInteriorRing(boolean interior)
Simply sets whether or not this polygon is an interior ring
|
void |
setNext(Polygon next)
Sets the next polygon which make up the multipolygon which this polygon is a part of.
|
void |
setPrev(Polygon prev)
Sets the previous polygon which makes up the multipolygon which this polygon is a part of.
|
Polygon |
setupPolygon(NetcdfDataset dataset,
Variable variable,
int index)
Given a dataset, construct a polygon from the variable which holds polygons
and the index as given.
|
getBBLower, getBBUpper
java.util.List<Point> getPoints()
Array getData()
getData
in interface SimpleGeometry
Polygon getNext()
Polygon getPrev()
boolean getInteriorRing()
void addPoint(double x, double y)
void setData(Array data)
setData
in interface SimpleGeometry
data
- Array of data to set tovoid setNext(Polygon next)
next
- Polygon to setvoid setPrev(Polygon prev)
prev
- Polygon to setvoid setInteriorRing(boolean interior)
interior
- ring or notPolygon setupPolygon(NetcdfDataset dataset, Variable variable, int index)
dataset
- Where the polygon variable residesvariable
- Which holds polygon informationindex
- for Indexing within the polygon variable