fromCollection
fun fromCollection(collection: BufferPolygonCollection, options: BufferPolygonCollectionOptions? = definedExternally, predicate: Function<*>? = definedExternally): BufferPolygonCollection(source)
Returns a copy of the given collection, overriding any constructor options provided. Omitted options are inherited from the source collection. Any resized buffers must be large enough to hold every polygon.
Parameters
collection
Source collection to copy.
options
Constructor options to override. Omitted options are inherited from the source collection.
predicate
When provided, only polygons for which this returns true are copied. Surviving polygons are compacted into contiguous indices.