createWithSegments

fun createWithSegments(segments: Iterable<Segment>, spatialReference: SpatialReference? = null): MutablePart

Creates a part with the given segments and spatial reference.

Return

a MutablePart

Since

200.1.0

Parameters

segments

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

spatialReference

the spatial reference for the part if it is not null