Skip to content

Commit

Permalink
reorg / add gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
edigonzales committed Sep 12, 2024
1 parent c9fe753 commit 05af783
Show file tree
Hide file tree
Showing 66 changed files with 3,740 additions and 1 deletion.
55 changes: 55 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI/CD

on:
workflow_dispatch:
push:
paths-ignore:
- '**.md'

jobs:
run-testbed:
# env:
# DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
# DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}

runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3

- uses: actions/checkout@v3
with: edigonzales/dmav-validierungsmodell-testbed

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'

- name: Debug
run: |
ls -la
# - name: Build
# run: |
# ./gradlew clean build -x test
# ls -la build/libs

# - name: Login to Docker Container Registry
# uses: docker/login-action@v2
# with:
# username: ${{ env.DOCKER_USERNAME }}
# password: ${{ env.DOCKER_PASSWORD }}

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2

# - name: Build Docker Image
# run: |
# ./gradlew buildAndPushMultiArchImage

9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# dmav-validierungsmodell
# dmav-validierungsmodell


Log-Dateien herstellen:

```
java -jar /Users/stefan/apps/ilivalidator-1.14.3/ilivalidator-1.14.3.jar --config ../../model/DMAV_V1_0_Validierung.ini --xtflog CH033551.log.xtf CH033551.xtf
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
239 changes: 239 additions & 0 deletions data/Validierungsmodell/CH031151.log.xtf

Large diffs are not rendered by default.

File renamed without changes.
172 changes: 172 additions & 0 deletions data/Validierungsmodell/CH033551.log.xtf

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
207 changes: 207 additions & 0 deletions model/dependencies/CH/CHBase_Part1_GEOMETRY_V2.ili
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
INTERLIS 2.4;

/* ########################################################################
CHBASE - BASE MODULES OF THE SWISS FEDERATION FOR MINIMAL GEODATA MODELS
======
BASISMODULE DES BUNDES MODULES DE BASE DE LA CONFEDERATION
FÜR MINIMALE GEODATENMODELLE POUR LES MODELES DE GEODONNEES MINIMAUX

PROVIDER: GKG/KOGIS - GCS/COSIG CONTACT: [email protected]
PUBLISHED: 2021-01-06
########################################################################
*/

/* ########################################################################
########################################################################
PART I -- GEOMETRY
- Package Geometry
- Package GeometryCHLV03
- Package GeometryCHLV95
*/

!! Version | Who | Modification
!!------------------------------------------------------------------------------
!! 2021-10-19 | KOGIS | DirectedLine and DirectedLineWithoutArcs in models GeometryCHLV03_V2 and GeometryCHLV95_V2 adapted

!! ########################################################################
!!@technicalContact=mailto:[email protected]
!!@furtherInformation=https://www.geo.admin.ch/de/geoinformation-schweiz/geobasisdaten/geodata-models.html
TYPE MODEL Geometry_V2 (en)
AT "https://models.geo.admin.ch/CH/" VERSION "2021-01-06" =

IMPORTS Units;

DOMAIN
Coord2 (GENERIC) = COORD NUMERIC, NUMERIC;
Coord3 (GENERIC) = COORD NUMERIC, NUMERIC, NUMERIC;
MultiPoint (GENERIC) = MULTICOORD NUMERIC, NUMERIC;
MultiPoint3D (GENERIC) = MULTICOORD NUMERIC, NUMERIC, NUMERIC;

/* line strings and surfaces with STRAIGHTS and ARCS */
Surface = SURFACE WITH (STRAIGHTS, ARCS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;
Area = AREA WITH (STRAIGHTS, ARCS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;
Line = POLYLINE WITH (STRAIGHTS, ARCS) VERTEX Coord2;
DirectedLine EXTENDS Line = DIRECTED POLYLINE;
LineWithAltitude = POLYLINE WITH (STRAIGHTS, ARCS) VERTEX Coord3;
DirectedLineWithAltitude = DIRECTED POLYLINE WITH (STRAIGHTS, ARCS) VERTEX Coord3;

/* line strings and surfaces without ARCS */
SurfaceWithoutArcs = SURFACE WITH (STRAIGHTS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;
AreaWithoutArcs = AREA WITH (STRAIGHTS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;
LineWithoutArcs = POLYLINE WITH (STRAIGHTS) VERTEX Coord2;
DirectedLineWithoutArcs EXTENDS LineWithoutArcs = DIRECTED POLYLINE;
LineWithAltitudeWithoutArcs = POLYLINE WITH (STRAIGHTS) VERTEX Coord3;
DirectedLineWithAltitudeWithoutArcs = DIRECTED POLYLINE WITH (STRAIGHTS) VERTEX Coord3;

Orientation = 0.00000 .. 359.99999 CIRCULAR [Units.Angle_Degree] <Coord2>;

Accuracy = (cm, cm50, m, m10, m50, vague);
Method = (measured, sketched, calculated);

END Geometry_V2.

!! ########################################################################
!!@technicalContact=mailto:[email protected]
!!@furtherInformation=https://www.geo.admin.ch/de/geoinformation-schweiz/geobasisdaten/geodata-models.html
TYPE MODEL GeometryCHLV03_V2 (en)
AT "https://models.geo.admin.ch/CH/" VERSION "2021-10-19" =

IMPORTS Units;
IMPORTS CoordSys;
IMPORTS Geometry_V2;

REFSYSTEM BASKET BCoordSys ~ CoordSys.CoordsysTopic
OBJECTS OF GeoCartesian2D: CHLV03
OBJECTS OF GeoHeight: SwissNormalAlt;

DOMAIN
!!@CRS=EPSG:21781
Coord2 EXTENDS Geometry_V2.Coord2 = COORD
460000.000 .. 870000.000 [INTERLIS.m] {CHLV03[1]},
45000.000 .. 310000.000 [INTERLIS.m] {CHLV03[2]},
ROTATION 2 -> 1;

!!@CRS=EPSG:21781
Coord3 EXTENDS Geometry_V2.Coord3 = COORD
460000.000 .. 870000.000 [INTERLIS.m] {CHLV03[1]},
45000.000 .. 310000.000 [INTERLIS.m] {CHLV03[2]},
-200.000 .. 5000.000 [INTERLIS.m] {SwissNormalAlt[1]},
ROTATION 2 -> 1;

!!@CRS=EPSG:21781
MultiPoint EXTENDS Geometry_V2.MultiPoint = MULTICOORD
460000.000 .. 870000.000 [INTERLIS.m] {CHLV03[1]},
45000.000 .. 310000.000 [INTERLIS.m] {CHLV03[2]},
ROTATION 2 -> 1;

!!@CRS=EPSG:21781
MultiPoint3D EXTENDS Geometry_V2.MultiPoint3D = MULTICOORD
460000.000 .. 870000.000 [INTERLIS.m] {CHLV03[1]},
45000.000 .. 310000.000 [INTERLIS.m] {CHLV03[2]},
-200.000 .. 5000.000 [INTERLIS.m] {SwissNormalAlt[1]},
ROTATION 2 -> 1;

/* line strings and surfaces with STRAIGHTS and ARCS */
Surface EXTENDS Geometry_V2.Surface = SURFACE WITH (STRAIGHTS, ARCS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;
Area EXTENDS Geometry_V2.Area = AREA WITH (STRAIGHTS, ARCS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;
Line EXTENDS Geometry_V2.Line = POLYLINE WITH (STRAIGHTS, ARCS) VERTEX Coord2;
DirectedLine EXTENDS Geometry_V2.DirectedLine = DIRECTED POLYLINE WITH (STRAIGHTS, ARCS) VERTEX Coord2;
LineWithAltitude EXTENDS Geometry_V2.LineWithAltitude = POLYLINE WITH (STRAIGHTS, ARCS) VERTEX Coord3;
DirectedLineWithAltitude EXTENDS Geometry_V2.DirectedLineWithAltitude = DIRECTED POLYLINE WITH (STRAIGHTS, ARCS) VERTEX Coord3;

MultiLine = MULTIPOLYLINE WITH (STRAIGHTS, ARCS) VERTEX Coord2;
MultiDirectedLine = DIRECTED MULTIPOLYLINE WITH (STRAIGHTS, ARCS) VERTEX Coord2;
MultiSurface = MULTISURFACE WITH (STRAIGHTS, ARCS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;

/* line strings and surfaces without ARCS */
SurfaceWithoutArcs EXTENDS Geometry_V2.SurfaceWithoutArcs = SURFACE WITH (STRAIGHTS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;
AreaWithoutArcs EXTENDS Geometry_V2.AreaWithoutArcs = AREA WITH (STRAIGHTS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;
LineWithoutArcs EXTENDS Geometry_V2.LineWithoutArcs = POLYLINE WITH (STRAIGHTS) VERTEX Coord2;
DirectedLineWithoutArcs EXTENDS LineWithoutArcs = DIRECTED POLYLINE WITH (STRAIGHTS) VERTEX Coord2;
LineWithAltitudeWithoutArcs EXTENDS Geometry_V2.LineWithAltitudeWithoutArcs = POLYLINE WITH (STRAIGHTS) VERTEX Coord3;
DirectedLineWithAltitudeWithoutArcs EXTENDS Geometry_V2.DirectedLineWithAltitudeWithoutArcs = DIRECTED POLYLINE WITH (STRAIGHTS) VERTEX Coord3;

MultiLineWithoutArcs = MULTIPOLYLINE WITH (STRAIGHTS) VERTEX Coord2;
MultiDirectedLineWithoutArcs = DIRECTED MULTIPOLYLINE WITH (STRAIGHTS) VERTEX Coord2;
MultiSurfaceWithoutArcs = MULTISURFACE WITH (STRAIGHTS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;

Orientation = 0.00000 .. 359.99999 CIRCULAR [Units.Angle_Degree] <Coord2>;

Accuracy = (cm, cm50, m, m10, m50, vague);
Method = (measured, sketched, calculated);

END GeometryCHLV03_V2.

!! ########################################################################
!!@technicalContact=mailto:[email protected]
!!@furtherInformation=https://www.geo.admin.ch/de/geoinformation-schweiz/geobasisdaten/geodata-models.html
TYPE MODEL GeometryCHLV95_V2 (en)
AT "https://models.geo.admin.ch/CH/" VERSION "2021-10-19" =

IMPORTS Units;
IMPORTS CoordSys;
IMPORTS Geometry_V2;

REFSYSTEM BASKET BCoordSys ~ CoordSys.CoordsysTopic
OBJECTS OF GeoCartesian2D: CHLV95
OBJECTS OF GeoHeight: SwissNormalAlt;

DOMAIN
!!@CRS=EPSG:2056
Coord2 EXTENDS Geometry_V2.Coord2 = COORD
2460000.000 .. 2870000.000 [INTERLIS.m] {CHLV95[1]},
1045000.000 .. 1310000.000 [INTERLIS.m] {CHLV95[2]},
ROTATION 2 -> 1;

!!@CRS=EPSG:2056
Coord3 EXTENDS Geometry_V2.Coord3 = COORD
2460000.000 .. 2870000.000 [INTERLIS.m] {CHLV95[1]},
1045000.000 .. 1310000.000 [INTERLIS.m] {CHLV95[2]},
-200.000 .. 5000.000 [INTERLIS.m] {SwissNormalAlt[1]},
ROTATION 2 -> 1;

!!@CRS=EPSG:2056
MultiPoint EXTENDS Geometry_V2.MultiPoint = MULTICOORD
2460000.000 .. 2870000.000 [INTERLIS.m] {CHLV95[1]},
1045000.000 .. 1310000.000 [INTERLIS.m] {CHLV95[2]},
ROTATION 2 -> 1;

!!@CRS=EPSG:2056
MultiPoint3D EXTENDS Geometry_V2.MultiPoint3D = MULTICOORD
2460000.000 .. 2870000.000 [INTERLIS.m] {CHLV95[1]},
1045000.000 .. 1310000.000 [INTERLIS.m] {CHLV95[2]},
-200.000 .. 5000.000 [INTERLIS.m] {SwissNormalAlt[1]},
ROTATION 2 -> 1;

/* line strings and surfaces with STRAIGHTS and ARCS */
Surface EXTENDS Geometry_V2.Surface = SURFACE WITH (STRAIGHTS, ARCS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;
Area EXTENDS Geometry_V2.Area = AREA WITH (STRAIGHTS, ARCS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;
Line EXTENDS Geometry_V2.Line = POLYLINE WITH (STRAIGHTS, ARCS) VERTEX Coord2;
DirectedLine EXTENDS Geometry_V2.DirectedLine = DIRECTED POLYLINE WITH (STRAIGHTS, ARCS) VERTEX Coord2;
LineWithAltitude EXTENDS Geometry_V2.LineWithAltitude = POLYLINE WITH (STRAIGHTS, ARCS) VERTEX Coord3;
DirectedLineWithAltitude EXTENDS Geometry_V2.DirectedLineWithAltitude = DIRECTED POLYLINE WITH (STRAIGHTS, ARCS) VERTEX Coord3;

MultiLine = MULTIPOLYLINE WITH (STRAIGHTS, ARCS) VERTEX Coord2;
MultiDirectedLine = DIRECTED MULTIPOLYLINE WITH (STRAIGHTS, ARCS) VERTEX Coord2;
MultiSurface = MULTISURFACE WITH (STRAIGHTS, ARCS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;

/* line strings and surfaces without ARCS */
SurfaceWithoutArcs EXTENDS Geometry_V2.SurfaceWithoutArcs = SURFACE WITH (STRAIGHTS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;
AreaWithoutArcs EXTENDS Geometry_V2.AreaWithoutArcs = AREA WITH (STRAIGHTS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;
LineWithoutArcs EXTENDS Geometry_V2.LineWithoutArcs = POLYLINE WITH (STRAIGHTS) VERTEX Coord2;
DirectedLineWithoutArcs EXTENDS LineWithoutArcs = DIRECTED POLYLINE WITH (STRAIGHTS) VERTEX Coord2;
LineWithAltitudeWithoutArcs EXTENDS Geometry_V2.LineWithAltitudeWithoutArcs = POLYLINE WITH (STRAIGHTS) VERTEX Coord3;
DirectedLineWithAltitudeWithoutArcs EXTENDS Geometry_V2.DirectedLineWithAltitudeWithoutArcs = DIRECTED POLYLINE WITH (STRAIGHTS) VERTEX Coord3;

MultiLineWithoutArcs = MULTIPOLYLINE WITH (STRAIGHTS) VERTEX Coord2;
MultiDirectedLineWithoutArcs = DIRECTED MULTIPOLYLINE WITH (STRAIGHTS) VERTEX Coord2;
MultiSurfaceWithoutArcs = MULTISURFACE WITH (STRAIGHTS) VERTEX Coord2 WITHOUT OVERLAPS > 0.001;

Orientation = 0.00000 .. 359.99999 CIRCULAR [Units.Angle_Degree] <Coord2>;

Accuracy = (cm, cm50, m, m10, m50, vague);
Method = (measured, sketched, calculated);

END GeometryCHLV95_V2.

!! ########################################################################
Loading

0 comments on commit 05af783

Please sign in to comment.