Read-only mirror of https://github.com/swisstopo/swissgeol-lexic-webgis-qt — Bundesamt für Landestopografie swisstopo. Issues & pull requests at the source.
  • TypeScript 94.4%
  • CSS 3%
  • JavaScript 2%
  • Dockerfile 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-11-26 09:19:30 +01:00
.github/workflows Update AWS role for ECR push in workflow 2025-11-26 09:19:30 +01:00
__test__ Released version 0.4.3-pilot 2025-07-15 09:33:57 +02:00
app Released version 0.4.3-pilot 2025-07-15 09:33:57 +02:00
pages/api Released version 0.4.3-pilot 2025-07-15 09:33:57 +02:00
public Release for 22-Aug on demo environment 2024-08-28 19:49:21 +02:00
reactApp/swisstopo/.next/cache/webpack/client-development Release for 22-Aug on demo environment 2024-08-28 19:49:21 +02:00
.dockerignore Released version 0.3.0-pilot 2024-12-12 09:16:28 +01:00
.eslintrc.json Release for 22-Aug on demo environment 2024-08-28 19:49:21 +02:00
.gitignore Release for 22-Aug on demo environment 2024-08-28 19:49:21 +02:00
Dockerfile Released version 0.4.3-pilot 2025-07-15 09:33:57 +02:00
Dockerfile.dev Released version 0.3.0-pilot 2024-12-12 09:16:28 +01:00
jest.config.ts Release for 22-Aug on demo environment 2024-08-28 19:49:21 +02:00
jest.setup.ts Release for 22-Aug on demo environment 2024-08-28 19:49:21 +02:00
next.config.js Release for 22-Aug on demo environment 2024-08-28 19:49:21 +02:00
package-lock.json Released version 0.3.0-pilot 2024-12-12 09:16:28 +01:00
package.json Released version 0.3.0-pilot 2024-12-12 09:16:28 +01:00
queriesConfig.js Released version 0.4.3-pilot 2025-07-15 09:33:57 +02:00
queryConfig.json Released version 0.4.3-pilot 2025-07-15 09:33:57 +02:00
README.md Released version 0.4.3-pilot 2025-07-15 09:33:57 +02:00
tsconfig.json Release for 22-Aug on demo environment 2024-08-28 19:49:21 +02:00
vocabulariesConfig.dev-swiss.json Released version 0.4.3-pilot 2025-07-15 09:33:57 +02:00
vocabulariesConfig.epsit.json Released version 0.4.3-pilot 2025-07-15 09:33:57 +02:00

SwissGeolWebMap

A web map application for geologists, designed to visualize geological data layers. It allows users to apply attribute filters based on vocabularies like Chronostratigraphy, Tectonic Units, Lithostratigraphy, and Lithology. The map also features a popup that displays augmented data (such as ID, LitoDE, LitoEN, TectoLexic, etc.) upon clicking a point on the map.

Getting Started

First, create a .env.local file by copying .env.example and fill in the required environment variables.

Then, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Docker

To run the application using Docker, you can set the environment variables directly in the docker-compose.yml file.

Note: The NEXT_PUBLIC_GEOSERVER_BASE_URL variable must be passed as a build argument (using args in the build section). This is because it is required by Next.js during the build process to be embedded in the client-side code. It is not needed as a runtime environment variable. The docker-compose.yml files are already configured for this.

Then, run the container:

docker-compose up --build

The application will be available at http://localhost:3050.

Environment Variables

The application is configured via environment variables. When using Docker, these are set in the docker-compose.yml file. For local development, they should be in an .env.local file.

Variable Description
NEXT_PUBLIC_GEOSERVER_BASE_URL The base URL for GeoServer, used to load WMS and WMTS layers.
NEXT_PUBLIC_GRAPHDB_BASE_URL The base URL for the GraphDB instance.
NEXT_PUBLIC_GRAPHDB_USERNAME The username for GraphDB authentication (if required).
NEXT_PUBLIC_GRAPHDB_PASSWORD The password for GraphDB authentication (if required).
NEXT_PUBLIC_CHRONOSTRATIGRAPHY_REPO_ID The repository ID for the Chronostratigraphy vocabulary in GraphDB.
NEXT_PUBLIC_TECTONICUNITS_REPO_ID The repository ID for the TectonicUnits vocabulary in GraphDB.
NEXT_PUBLIC_LITHOSTRATIGRAPHY_REPO_ID The repository ID for the Lithostratigraphy vocabulary in GraphDB.
NEXT_PUBLIC_LITHOLOGY_REPO_ID The repository ID for the Lithology vocabulary in GraphDB.