gws.base.exporter.util¶
Export utilities.
Source code: gws.base.exporter.util
Module Contents¶
- class gws.base.exporter.util.Group(*args, **kwargs)¶
Bases:
gws.DataBasic data object.
This object can be instantiated by passing one or or
dictarguments and/or keyword args. All dicts keys and keywords become attributes of the object.Accessing an undefined attribute returns
Noneand no error is raised, unless the attribute name starts with an underscore.- columns: dict[str, gws.AttributeType]¶
- geomType: gws.GeometryType | None¶
- records: list[gws.FeatureRecord]¶
- title: str¶
- gws.base.exporter.util.group_features(ea: gws.ExportArgs, er: gws.ExportResult) list[Group]¶
Group features by model, determine export columns and geometry type.
- Parameters:
ea – Export arguments.
er – Export result, used to report errors and counts.
- Returns:
List of groups, one per model, with export-ready records.
- gws.base.exporter.util.run_gdal_vector_export(driver_name: str, mime: str, ea: gws.ExportArgs, er: gws.ExportResult)¶
Run the export for a GDAL vector driver.