Coverage for gws-app/gws/plugin/exporter/shapefile/__init__.py: 100%
16 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-05 13:35 +0200
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-05 13:35 +0200
1"""ESRI Shapefile exporter.
3Exports vector features with the GDAL ``ESRI Shapefile`` driver. Each model is
4written to its own file. GDAL creation options can be passed with
5``options``, see https://gdal.org/en/stable/drivers/vector/shapefile.html.
7Example::
9 exporters+ {
10 type "shapefile"
11 title "Shapefile"
12 target "download"
13 }
14"""
16import gws
17import gws.base.exporter
18import gws.lib.gdalx
21@gws.ext.config.exporter('shapefile')
22class Config(gws.base.exporter.Config):
23 """Export of features to ESRI Shapefile."""
25 pass
28@gws.ext.props.exporter('shapefile')
29class Props(gws.base.exporter.Props):
30 """Shapefile Exporter properties."""
32 pass
35@gws.ext.object.exporter('shapefile')
36class Object(gws.base.exporter.Object):
37 """ESRI Shapefile exporter."""
39 supportsVector = True
40 supportsRaster = False
41 supportsMultiLayer = False
43 def run(self, ea, er):
44 gws.base.exporter.util.run_gdal_vector_export('ESRI Shapefile', '', ea, er)