public class OrthoLine extends Object implements LineElement
| Constructor and Description |
|---|
OrthoLine(ReferencedEnvelope gridBounds,
LineOrientation orientation,
double ordinate,
int level)
Creates a new ortho-line element.
|
| Modifier and Type | Method and Description |
|---|---|
ReferencedEnvelope |
getBounds()
Gets the bounds of this grid element.
|
int |
getLevel()
Gets the level (precedence) associated with this line.
|
LineOrientation |
getOrientation()
Gets the orientation of this line.
|
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 OrthoLine(ReferencedEnvelope gridBounds, LineOrientation orientation, double ordinate, int level)
gridBounds - bounds of the area containing this lineorientation - line orientationordinate - position of the linelevel - integer level associated with this linevalue - public ReferencedEnvelope getBounds()
getBounds in interface GridElementpublic Coordinate[] getVertices()
getVertices in interface GridElementpublic LineOrientation getOrientation()
public int getLevel()
public Geometry toGeometry()
GridElementGeometry from this grid element.toGeometry in interface GridElementGeometrypublic Geometry toDenseGeometry(double maxSpacing)
GridElementGeometry from this grid element.toDenseGeometry in interface GridElementmaxSpacing - the maximum distance between adjacent verticesGeometryCopyright © 1996–2019 Geotools. All rights reserved.