Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This guide explains how to create a SNAP bundle from checked-out sources. The typical use-case for such a bundle is to use the SNAP-API within processing environments, such as Calvalus or CEMS.
The BundleCreator tool will collect all jar files and necessary shared in a zip file. The jar files can be added to the classpath of your application. This way you have all needed dependencies bundled and can use the SNAP API in your application.

Step-by-step guide

  1. Check out the SNAP Engine sources, and build the project. See How to build SNAP from sources for directions.

  2. Check out the additional toolboxes you want to bundle. Directions are also given in the link above.

  3. On the command line, change to the directory where SNAP Engine has been checked out.

  4. Start the BundleCreator like this:

...

This call assumes that SNAP engine is checked out and built at C:\dev\projects\snap\snap-engine and the Sentinel-2 toolbox is checked out and built at C:\dev\projects\snap\s2tbx, and will create a SNAP-bundle at c:\bundle.zip. Note that this example refers to Windows, but the call is exactly the same on Linux or Mac, except for the directory paths.

...