Export Layer Data
MapStore allows to export both vector and raster layers present in TOC. In order to provide advanced export capabilities the WPS Download process must be installed and available in GeoServer. MapStore performs a preventive check for this as soon as the user opens the tool: if the WPS Download process is not available, MapStore uses the WFS service as fallback and the export options are limited (eg. only vector data can be exported). Once a layer is selected in the TOC, the user can open the Export Data tool by clicking the button available in the layer toolbar.
Only for the Vector layer, the user can also download data by opening the Attribute Table from the TOC and clicking the button.
From the Export Data panel the user can:
Select the File Format. The list of formats depends on the availability of the WPS Download process in GeoServer. If the WPS process is available, the user can choose between
CSVfor vector layers, and between
JPEG, in case of raster layers. If the WPS Download process is not available for some reasons, MapStore provides the list of formats valid for the WFS service by looking at the ones offered by the services capabilities (WFS Capabilities).
Select the Spatial Reference System (By default
Enable the Crop dataset to current viewport for downloading only the part of the layer visible on the map at that moment (this option is present in the form only if the WPS Download process is available)
Only for Vector layer, allows to consider for the download also an eventual filter applied to the layer using the Filter layer tool (this option is present in the form only if the WPS Download process is available)
Only for Raster layer (and if the WPS Download process is available) the user can open the Advanced options to choose:
The Compression type used to store internal tiles (
- The Compression quality for lossy compression (JPEG). Value is in the range [0 : 1] where 0 is for worst quality/higher compression and 1 is for best quality/lower compression
- Tile Width of internal tiles, in pixels
- Tile Height of internal tiles, in pixels
With a click on the button MapStore performs the export request. In case of WPS Download process available, multiple export requests can be performed from MapStore asynchronously. An information popup informs the user when an export process starts and the user can check the status of the process itself by opening the Export Data Result panel with a clicking on the button available on the right side of the footer.
The Export Data Result provides the list of exports processes started by the user and their status: as soon as the WPS completes the export operation, its status is reported by MapStore to the user (in progress, completed, and so ready for download, or failed). Therefore, the user can:
Check for eventual reported errors: a specific icon informs the user that the process failed with a popup message.
Download the final
zipfile: clicking the button
Remove the final
zipfile: clicking the button