:tocdepth: 3 :py:mod:`gws.base.exporter.util` ================================ .. py:module:: gws.base.exporter.util .. autoapi-nested-parse:: Export utilities. **Source code:** :source:`gws.base.exporter.util` Module Contents --------------- .. py:class:: Group(*args, **kwargs) Bases: :py:obj:`gws.Data` Basic data object. This object can be instantiated by passing one or or ``dict`` arguments and/or keyword args. All dicts keys and keywords become attributes of the object. Accessing an undefined attribute returns ``None`` and no error is raised, unless the attribute name starts with an underscore. .. py:attribute:: columns :type: dict[str, gws.AttributeType] .. py:attribute:: crs :type: Optional[gws.Crs] .. py:attribute:: geomType :type: Optional[gws.GeometryType] .. py:attribute:: records :type: list[gws.FeatureRecord] .. py:attribute:: title :type: str .. py:function:: group_features(ea: gws.ExportArgs, er: gws.ExportResult) -> list[Group] Group features by model, determine export columns and geometry type. :param ea: Export arguments. :param er: Export result, used to report errors and counts. :returns: List of groups, one per model, with export-ready records. .. py:function:: run_gdal_vector_export(driver_name: str, mime: str, ea: gws.ExportArgs, er: gws.ExportResult) Run the export for a GDAL vector driver.