createWithPoints

fun createWithPoints(points: Iterable<Point>, spatialReference: SpatialReference? = null): MutablePart

Creates a part with the given points and spatial reference.

Return

a MutablePart

Since

200.1.0

Parameters

points

the points with which to create the part. If spatialReference is non-null then the spatial reference of each point should either be null or equal to spatialReference. If spatialReference is null then the spatial reference of the first point in points will be used, or null if points is empty.

spatialReference

the spatial reference for the part if it is not null