You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Copy all files into root's home, including the source, pom file, ./m2 directory and credentials
6
+
ADD . /root
7
+
8
+
# Populate settings templates with credentials, repo name
9
+
WORKDIR /root/.m2
10
+
# (Note that | rather than / is used as the sed delimiter, since encrypted passwords can contain the former, but not the latter
11
+
RUN sed -i "s|MASTER_PASSWORD|$(mvn --encrypt-master-password master_password)|" settings-security.xml
12
+
RUN sed -i "s|REPO_USERNAME|$(cat ../credentials/repo_username.txt)|;s|REPO_PASSWORD|$(cat ../credentials/repo_password.txt|xargs mvn --encrypt-password)|" settings.xml
13
+
14
+
# Build
15
+
WORKDIR /root/ceavisualisation-agent
16
+
RUN --mount=type=cache,target=/root/.m2/repository mvn package
The CEAVisualisationAgent is intended to create the necessary PostgreSQL table and GeoServer layer, as well as relevant set up, for the visualisation of CEA agent results within TWA-VF.
3
+
In the resulting TWA-VF visualisation, it is intended that the buildings are visualised with a color scale representing their energy demand and solar potential results from the CEA agent.
4
+
5
+
# Agent logic
6
+
The agent is designed to receive a POST request with the CEA agent outputs as annual values for energy demands and solar potentials and the solar suitable areas, together with the building IRI.
7
+
After receiving the request, the agent will create (if the table does not exist before) or update the table that with the building IRI and its corresponding annual values and solar suitable areas.
8
+
The agent will also create a GeoServer layer based on the aforementioned PostgreSQL table.
9
+
A `data.json` has been included in `./stack-manager-input/data/webspace` which uses the GeoServer layer that the agent created to visualise CEA results in TWA-VF.
10
+
11
+
# What has been implemented
12
+
- The main classes to receive the request, and to parse the data into PostgreSQL table and GeoServer layer.
0 commit comments