OMGraphicList graphics = new OMGraphicList();
// create OMLine from internal line representation
switch (line.rt) {
case OMGraphic.RENDERTYPE_LATLON:
omline = new OMLine(line.llpts[0], line.llpts[1], line.llpts[2], line.llpts[3], line.type, line.nsegs);
break;
case OMGraphic.RENDERTYPE_XY:
omline = new OMLine(line.xypts[0], line.xypts[1], line.xypts[2], line.xypts[3]);
break;
case OMGraphic.RENDERTYPE_OFFSET:
omline = new OMLine(line.llpts[0], line.llpts[1], line.xypts[0], line.xypts[1], line.xypts[2], line.xypts[3]);
break;
default:
System.err.println("ARRRR!");
break;
}