Table of Content

Section Description
1. AWS Connection Setup Setting up SSH connection permissions to AWS GeoServer
2. Adding Images to Timeseries WMS Process of adding new images to existing WMS timeseries
3. Creating New Timesereis WMS Steps to create a new WMS timeseries from scratch
4. Style Updates Instructions for updating layer styles and color schemes
5. Metadata Updates Procedures for updating WMS metadata

Note

Set up connection permission to AWS geoserver

Add the following ssh key to C:/.ssh: <REPLACE_WITH_KEY_FILE_NAME>.pem

Add new images to an existing WMS timeseries

  1. Upload images to the data folder in AWS:

    1. Use the following PowerShell commands (replace <FILE_PATH> with the actual file path and <AWS_IP_ADDRESS> with the server IP):

      scp -i .ssh/<KEY_FILE_NAME>.pem -prq <FILE_PATH> ubuntu@<AWS_IP_ADDRESS>:<FOLDER_PATH>/<FILENAME>
      
  2. Delete older metadata:

    1. Connect to AWS GeoServer:

      ssh -i .ssh/<KEY_FILE_NAME>.pem ubuntu@<AWS_IP_ADDRESS>
      
    2. Delete the older version of the metadata of the WMS.

      cd ..
      cd <FOLDER_PATH>
      find . \\( -name "*.dat" -o -name "*.dbf" -o -name "*.fix" -o -name "*.prj" -o -name "*.qix" -o -name "*.shp" -o -name "*.shx" \\) -type f -delete
      
  3. Update the auto-generated metadata on the GeoServer GUI:

    1. Access the GeoServer GUI at <GEO_SERVER_URL> .
    2. Use credentials: <USERNAME>:<PASSWORD>.
    3. Click on Stores on the side menu and then search wms on the search bar.
    4. Click each one of the results, and click Browse to confirm the new datasets were uploaded successfully. Then click Save
    5. After that, the auto-generated metadata will be regenerated.
  4. Open WMS on QGIS:

    1. Configure QGIS to use the updated WMS.

Create a new WMS timeseries

  1. Create a new folder on AWS for the new datasets:

    1. Connect to AWS GeoServer:

      ssh -i .ssh/<KEY_FILE_NAME>.pem ubuntu@<AWS_IP_ADDRESS>
      
    2. Create a new folder:

      cd ..
      cd <FOLDER_PATH>
      cd mkdir <SUBFOLDER_NAME>
      
  2. Upload new datasets to AWS

    1. Use the following command (replace <FILE_PATH> with the actual file path):

      scp -i .ssh/<KEY_FILE_NAME>.pem -prq <FILE_PATH> ubuntu@<AWS_IP_ADDRESS>:<FOLDER_PATH>/<SUBFOLDER_NAME>/<FILENAME>
      
  3. Upload the configuration files, the following two files, to all new folders just created.

    timeregex.properties

    indexer.properties

    scp -i .ssh/<KEY_FILE_NAME>.pem -prq <CONFIG_FILE_PATH> ubuntu@<AWS_IP_ADDRESS>:<FOLDER_PATH>/<SUBFOLDER_NAME>/<CONFIG_FILE>
    
  4. Configure in GeoServer GUI:

    1. Access GeoServer GUI at <GEO_SERVER_URL>.
    2. Use credentials: <USERNAME>:<PASSWORD>.
  5. Create a new store for each new set of data

    1. Click Stores on the side menu
    2. Click Add new store
    3. Click ImageMosaic
    4. Choose the Workspace for this project
    5. Write Data Source Name as for example <SUBFOLDER_NAME>
    6. In Connection Parameters, enter or choose the URL where the data is stored, for example, <FOLDER_PATH>/<SUBFOLDER_NAME>
    7. Wait until the page jumps to publishing layers, and click publish
    8. Edit Layer, including Name, Title in the Data Page. In the Publishing page, under the WMS Settings section, change the Default Style to the one that best suits the layer. Following the next section of this tutorial and learn how to create a style.

Update styles or color scheme for a layer

  1. Defined a raster style on QGIS