public class AggregatePrimitivesVisitor extends AbstractVisitor
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.
|
visit
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)
Visitor
n
- The node to inspect.public void visit(Way w)
Visitor
w
- The way to inspect.