LayersEditor

class LayersEditor

LayersEditor is an abstract class that inherits from LayersSet and is basis class of LayersUpdate and LayersWrite. It contains methods to edit an existing or new dataset.

Layers

create_layer(name, prj, geom[, …]) Create a new layer

Fields

add_fields(**kwargs) Add fields to this layers set
delete_fields(field_names[, layer_number]) Delete fields from this layers set
field_calculator(field_name, calc_function, …) Calculate field values for given field names.
calculate_area([field_name, scale, layer_number]) Calculate feature areas and set them to the given field name