newLine

fun newLine(classID: Long, pt1: GeoPoint, pt2: GeoPoint, atts: Array<Attribute>?): Polyline2D?

Adds a simple line into the specified class and returns the corresponding Polyline2D form.

Return

A valid Polyline2D form or null if an error occurs.

Parameters

classID
        The class identifier.
pt1
        The first point of the 2D line.
pt2
        The second point of the 2D line.
atts
        An optional array of SVS attributes.

Throws