use of ch.interlis.iom_j.itf.impl.jtsext.geom.CompoundCurveRing in project ili2db by claeis.
the class Iox2fgdb method asOneLine.
private LineString asOneLine(LineString polyline) {
if (!(polyline instanceof CompoundCurveRing)) {
return polyline;
}
ArrayList<CurveSegment> segments = new ArrayList<CurveSegment>();
for (CompoundCurve curve : ((CompoundCurveRing) polyline).getLines()) {
segments.addAll(curve.getSegments());
}
CompoundCurve line = new CompoundCurve(segments, polyline.getFactory());
return line;
}
Aggregations