public class BoundingXYVisitor extends AbstractVisitor
OsmPrimitive
objects, using the
EastNorth values as reference.Modifier and Type | Field and Description |
---|---|
private ProjectionBounds |
bounds |
Constructor and Description |
---|
BoundingXYVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
computeBoundingBox(Collection<? extends OsmPrimitive> primitives) |
void |
enlargeBoundingBox()
Enlarges the calculated bounding box by 0.002 degrees.
|
void |
enlargeBoundingBox(double enlargeDegree)
Enlarges the calculated bounding box by the specified number of degrees.
|
ProjectionBounds |
getBounds() |
boolean |
hasExtend() |
String |
toString() |
void |
visit(Bounds b) |
void |
visit(EastNorth eastNorth) |
void |
visit(LatLon latlon) |
void |
visit(Node n)
Visiting call for points.
|
void |
visit(ProjectionBounds b) |
void |
visit(Relation e)
Visiting call for relations.
|
void |
visit(Way w)
Visiting call for lines.
|
visit
private ProjectionBounds bounds
public BoundingXYVisitor()
public void visit(Node n)
Visitor
n
- The node to inspect.public void visit(Way w)
Visitor
w
- The way to inspect.public void visit(Relation e)
Visitor
e
- The relation to inspect.public void visit(ProjectionBounds b)
public boolean hasExtend()
public ProjectionBounds getBounds()
null
if no coordinates have passedpublic void enlargeBoundingBox()
min
or max
equal null
) this method does not do anything.public void enlargeBoundingBox(double enlargeDegree)
min
or max
equal null
) this method does not do anything.enlargeDegree
- public void computeBoundingBox(Collection<? extends OsmPrimitive> primitives)