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 linepublic ReferencedEnvelope getBounds()
getBounds
in interface GridElement
public Coordinate[] getVertices()
getVertices
in interface GridElement
public LineOrientation getOrientation()
public int getLevel()
public Geometry toGeometry()
GridElement
Geometry
from this grid element.toGeometry
in interface GridElement
Geometry
public Geometry toDenseGeometry(double maxSpacing)
GridElement
Geometry
from this grid element.toDenseGeometry
in interface GridElement
maxSpacing
- the maximum distance between adjacent verticesGeometry
Copyright © 1996–2022 Geotools. All rights reserved.