public class AggregatePrimitivesVisitor extends java.lang.Object implements OsmPrimitiveVisitor
The primitives are sorted according to their type: first nodes, then ways.
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<OsmPrimitive> |
aggregatedData
Aggregated data
|
Constructor and Description |
---|
AggregatePrimitivesVisitor() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<OsmPrimitive> |
visit(java.util.Collection<OsmPrimitive> data)
Visits a collection of primitives
|
void |
visit(Node n)
Visiting call for points.
|
void |
visit(Relation r)
Visiting call for relations.
|
void |
visit(Way w)
Visiting call for lines.
|
private final java.util.Collection<OsmPrimitive> aggregatedData
public AggregatePrimitivesVisitor()
public java.util.Collection<OsmPrimitive> visit(java.util.Collection<OsmPrimitive> data)
data
- The collection of primitivespublic void visit(Node n)
OsmPrimitiveVisitor
visit
in interface OsmPrimitiveVisitor
n
- The node to inspect.public void visit(Way w)
OsmPrimitiveVisitor
visit
in interface OsmPrimitiveVisitor
w
- The way to inspect.public void visit(Relation r)
OsmPrimitiveVisitor
visit
in interface OsmPrimitiveVisitor
r
- The relation to inspect.