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)
OsmPrimitiveVisitorvisit in interface OsmPrimitiveVisitorn - The node to inspect.public void visit(Way w)
OsmPrimitiveVisitorvisit in interface OsmPrimitiveVisitorw - The way to inspect.public void visit(Relation r)
OsmPrimitiveVisitorvisit in interface OsmPrimitiveVisitorr - The relation to inspect.