gws.base.exporter.core

Source code: gws.base.exporter.core

Module Contents

class gws.base.exporter.core.Config(*args, **kwargs)

Exporter configuration.

options: dict

Additional exporter-specific options.

target: gws.ExportTarget

Target export type.

targetPath: str | None

Target export path (if applicable).

title: str

Exporter title.

withMixedCrs: bool = False

Allow features with different CRS in the same layer.

withMixedGeometry: bool = False

Allow features with different geometries in the same layer.

withMultiLayer: bool = False

Store multiple layers in a single file.

withNoGeometry: bool = False

Allow features with no geometry.

class gws.base.exporter.core.Object

Exporter object.

configure()

Configuration hook.

notify(ea: ExportArgs, event: str)

Notify exporter of export events.

props(user) Props

Return exporter properties.

class gws.base.exporter.core.Props(*args, **kwargs)

Exporter properties.

supportsRaster: bool

Whether exporter supports raster features.

supportsVector: bool

Whether exporter supports vector features.

title: str

Exporter title.