gws.base.exporter.core¶
Base exporter.
Source code: gws.base.exporter.core
Module Contents¶
- class gws.base.exporter.core.Config(*args, **kwargs)¶
Bases:
gws.ConfigWithAccessExporter configuration.
- options: dict¶
Format-specific options, passed to the GDAL driver.
- target: gws.ExportTarget¶
Where the export result goes.
- class gws.base.exporter.core.Object¶
Bases:
gws.ExporterBase exporter.
Writes features to files in one format. Provides subclasses with the common export options, the client props and event notification.
Subclasses set
supportsVector,supportsRasterandsupportsMultiLayerand implementrun.- configure()¶
Configuration hook.
Called when the node is initialized. Raising an exception here aborts the creation of the node.
- notify(ea: gws.ExportArgs, event: str)¶
Pass an export event to the notification callback of the export arguments.
- Parameters:
ea – Export arguments.
event – Event name.
- props(user) Props¶
Generate a
Propsstruct for this object.Do not call this method directly, use
gws.props_ofinstead, which also checks permissions.- Parameters:
user – The user for which the props should be generated.
- Returns:
A
Propsobject or a dict. Nested objects are converted to props as well.