newPolygon

fun newPolygon(classID: Long, pts: Array<GeoPoint>, atts: Array<Attribute>?): Polygon2D?

Adds a simple polygon into the specified class and returns the corresponding Polygon2D form.

Return

A valid Polygon2D form or null if an error occurs.

Parameters

classID
        The class identifier.
pts
        Coordinates of the 2D polygon.
atts
        An optional array of SVS attributes.

Throws