create_layer_from_copy

io.GeomSource.create_layer_from_copy(layer, overwrite=True)

Create a new layer by copying another layer.

Only in write ('w') mode.

Parameters

Name Type Description Default
layer ogr.Layer A layer defined by OGR. required
overwrite bool If set to True, it will overwrite an existing layer. True
Back to top