Coverage for gws-app/gws/plugin/exporter/__init__.py: 100%

0 statements  

« prev     ^ index     » next       coverage.py v7.16.2, created at 2026-10-05 13:35 +0200

1"""Feature exporters. 

2 

3Exporters write features to files in vector formats, with GDAL vector drivers 

4(``gws.base.exporter.util.run_gdal_vector_export``). Features are grouped by 

5model. Each group is written to its own file or, with ``withMultiLayer`` and a 

6format that supports it, to its own layer in a single file. Several files are 

7zipped. ``options`` are passed to the GDAL driver as creation options. 

8 

9Subpackages 

10----------- 

11 

12- ``csv`` - CSV. 

13- ``geojson`` - GeoJSON. 

14- ``gml`` - GML, supports several layers in one file. 

15- ``kml`` - KML, supports several layers in one file. 

16- ``shapefile`` - ESRI Shapefile. 

17 

18Example:: 

19 

20 exporters+ { 

21 type "geojson" 

22 title "GeoJSON" 

23 target "download" 

24 } 

25 

26 exporters+ { 

27 type "gml" 

28 title "GML, all layers in one file" 

29 target "download" 

30 withMultiLayer true 

31 } 

32"""