public class AggregatePrimitivesVisitor extends AbstractVisitor
The primitives are sorted according to their type: first nodes, then ways.
| Modifier and Type | Field and Description |
|---|---|
(package 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.
|
visitfinal 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)
Visitorn - The node to inspect.public void visit(Way w)
Visitorw - The way to inspect.