use of com.revolsys.record.io.format.saif.geometry.OrientedArcLineString in project com.revolsys.open by revolsys.
the class OrientedArcConverter method write.
@Override
public void write(final OsnSerializer serializer, final Object object) throws IOException {
if (object instanceof LineString) {
final LineString line = (LineString) object;
serializer.startObject(GEOMETRY_CLASS);
serializer.fieldName("arc");
super.write(serializer, object, false);
serializer.endAttribute();
if (line instanceof ArcLineString) {
super.writeAttributes(serializer, (ArcLineString) line);
}
if (line instanceof OrientedArcLineString) {
final OrientedArcLineString orientedLine = (OrientedArcLineString) line;
final String traversalDirection = orientedLine.getTraversalDirection();
attributeEnum(serializer, "traversalDirection", traversalDirection);
}
serializer.endObject();
}
}
Aggregations