index.rst 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. .. _wpsdownload:
  2. WPS Download plugin
  3. ===================
  4. WPS Download plugin provides some useful features for easily downloading:
  5. * Raster or Vector layer as zip files
  6. * Large maps as images
  7. * Time based animation
  8. The module also provides facilities to control the output file size.
  9. Installing the WPS Download extension
  10. -------------------------------------
  11. The WPS Download extension is listed among the other extension downloads on the GeoServer download page.
  12. The installation process is similar to other GeoServer extensions:
  13. #. From the :website:`website download <download>` page, locate your release, and download: :download_extension:`wps-download`
  14. Verify that the version number in the filename corresponds to the version of GeoServer you are running (for example |release| above).
  15. #. Extract the contents of the archive into the :file:`WEB-INF/lib` directory in GeoServer.
  16. Make sure you do not create any sub-directories during the extraction process.
  17. #. Restart GeoServer.
  18. Module description
  19. ------------------
  20. This module provides the following WPS process:
  21. * ``gs:Download`` : can be used for downloading Raster and Vector Layers
  22. * ``gs:DownloadEstimator`` : can be used for checking if the downloaded file does not exceeds the configured limits.
  23. * ``gs:DownloadMap``: allows to download a large map with the same composition found on the client side (eventually along with an asynchronous call)
  24. * ``gs:DownloadAnimation``: allows to download a map with the same composition found on the client side, with animation over a give set of times
  25. Configuring the limits
  26. ----------------------
  27. The user interface provides a way to configure the WPS download in the WPS administration page:
  28. .. figure:: images/admin.png
  29. :align: center
  30. Where the available limits are:
  31. * Maximum features : maximum number of features to download
  32. * Raster size limits : maximum pixel size of the Raster to read (in square pixels, width by height)
  33. * Write limits : maximum raw raster size in bytes (a limit of how much space can a raster take in memory). For a given raster, its raw size in bytes is calculated by multiplying pixel number (raster_width x raster_height) with the accumulated sum of each band's pixel sample_type size in bytes, for all bands
  34. * Hard output limit : maximum file size to download (will be checked while writing the output, post compression)
  35. * ZIP compresion level : compression level for the output zip file
  36. * Maximum frames in animation : maximum number of frames allowed (if no limit, the maximum execution time limits will still apply and stop the process in case there are too many)
  37. The configuration is stored in a **download.properties** file found in the root of the GeoServer data directory.
  38. .. code-block::
  39. # Max #of features
  40. maxFeatures=100000
  41. #8000 px X 8000 px
  42. rasterSizeLimits=64000000
  43. #8000 px X 8000 px X 3 bands X 1 byte per band = 192MB
  44. writeLimits=192000000
  45. # 50 MB
  46. hardOutputLimit=52428800
  47. # STORE =0, BEST =8
  48. compressionLevel=4
  49. # When set to 0 or below, no limit
  50. maxAnimationFrames=1000
  51. The file can also be manually modified while GeoServer is running, the file is under watch and gets
  52. reloaded on modification.
  53. The configuration can also be edited via :api:`the REST API <wpsdownload.yaml>`.
  54. The processes and their usage
  55. -----------------------------
  56. The following describes the various processes, separating raw downloads from rendered downloads:
  57. .. toctree::
  58. :maxdepth: 1
  59. rawDownload/
  60. mapAnimationDownload/