Creates a part with the given segments and spatial reference.
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.
the spatial reference for the part if it is not null