88. Mutation: Export ZonesMap as Zipped Shapefile
Generate a zip archive with the selected "ZonesMap" as shapefile.
The archive consists of *.shp, *.shx, *.prj, *.dbf files in EPSG:4326.
1. Preparation
The attribute
vectorAnalysisMaps
contains an array of ZonesMaps (VectorAnalysisMaps) objects to be exported. Each such object includes a pair offieldUuid
(linkage to the selected Field) anduuid
(linkage to the selected ZonesMap).The boolean attribute
asMultiGeometry
determines whether zones are exported asPolygons
orMultiPolygons
(when set totrue
).The boolean attribute
onlyProductColumns
specifies if only columns with products (RX) should be included in the shapefile (whentrue
). Otherwise, all statistical attributes and zone IDs will be included as columns.The attribute
archiveName
holds the name of the generated zip archive.The attribute
filePostfix
allows for custom postfixes to be added to the exported files and archive.
2. Download the generated archive
After execution of the GraphQL query, it is possible to download it using curl
or a similar approach.
Last updated