private static class GeoJSONWriter.GeometryPrimitiveVisitor extends java.lang.Object implements PrimitiveVisitor
| Modifier and Type | Field and Description |
|---|---|
private javax.json.JsonObjectBuilder |
geomObj |
| Constructor and Description |
|---|
GeometryPrimitiveVisitor(javax.json.JsonObjectBuilder geomObj) |
| Modifier and Type | Method and Description |
|---|---|
private javax.json.JsonArrayBuilder |
getCoorArray(LatLon c) |
void |
visit(INode n)
Visiting call for points.
|
void |
visit(IRelation r)
Visiting call for relations.
|
void |
visit(IWay w)
Visiting call for lines.
|
private final javax.json.JsonObjectBuilder geomObj
public GeometryPrimitiveVisitor(javax.json.JsonObjectBuilder geomObj)
public void visit(INode n)
PrimitiveVisitorvisit in interface PrimitiveVisitorn - The node to inspect.public void visit(IWay w)
PrimitiveVisitorvisit in interface PrimitiveVisitorw - The way to inspect.public void visit(IRelation r)
PrimitiveVisitorvisit in interface PrimitiveVisitorr - The relation to inspect.private javax.json.JsonArrayBuilder getCoorArray(LatLon c)