public class OblongImpl extends Object implements Oblong
Oblong.| Constructor and Description |
|---|
OblongImpl(double minX,
double minY,
double width,
double height,
CoordinateReferenceSystem crs)
Creates a new oblong.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getArea()
Gets the area of this grid element.
|
ReferencedEnvelope |
getBounds()
Gets the bounds of this grid element.
|
Coordinate |
getCenter()
Gets the center coordinates of this grid element.
|
Coordinate[] |
getVertices()
Gets the vertices of this grid element.
|
Geometry |
toDenseGeometry(double maxSpacing)
Creates a new, densified
Geometry from this grid element. |
Geometry |
toGeometry()
Creates a new
Geometry from this grid element. |
public OblongImpl(double minX,
double minY,
double width,
double height,
CoordinateReferenceSystem crs)
minX - minimum X ordinateminY - minimum Y ordinatewidth - span in the X directionheight - span in the Y directioncrs - coordinate reference system (may be null)public double getArea()
getArea in interface PolygonElementpublic ReferencedEnvelope getBounds()
getBounds in interface GridElementpublic Coordinate getCenter()
getCenter in interface PolygonElementpublic Coordinate[] getVertices()
Vertex 0 is at the min X and Y coordinate (lower left) with the subsequent vertices being indexed clockwise.
getVertices in interface GridElementpublic Geometry toGeometry()
Geometry from this grid element.toGeometry in interface GridElementGeometrypublic Geometry toDenseGeometry(double maxSpacing)
Geometry from this grid element.toDenseGeometry in interface GridElementmaxSpacing - the maximum distance between adjacent verticesGeometryCopyright © 1996–2019 Geotools. All rights reserved.