Skip to content

Commit

Permalink
Tilføj database-views mhp brug i QGIS
Browse files Browse the repository at this point in the history
Følgende views er tilføjet:

1. V_FIKSPUNKTER_DK
2. V_CORS_DK
3. V_TAPAS_PUNKTER
4. V_5D_PUNKTER
5. V_10KM_PUNKTER
6. V_DMI_PUNKTER
7. V_DVR_DEF_VANDSTAND_PUNKTER
8. V_GPSNET_PUNKTER
9. V_SMARTNET_PUNKTER
10. V_RTKCONNECT_PUNKTER
11. V_TABTE_PUNKTER
12. V_GNET_PUNKTER
13. V_PRES1_OBS
14. V_PRES2_OBS
15. V_PRES3_OBS

Alle views er konstrueret som "materialized views", da dette er den
eneste måde at lave spatial index på et view i en Oracle database.
Views er konstrueret sådan, at de opdateres en gang i timen for ikke
at overbelaste databasen mere end højest nødvendigt. Dog med undtagelse af
views med observationer fra de tre landsdækkende
præcisionsnivellementer, da disse ikke forventes at ændre sig over tid.
  • Loading branch information
kbevers committed Feb 5, 2024
1 parent 779faa5 commit 7c0d22a
Show file tree
Hide file tree
Showing 4 changed files with 1,084 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ jobs:
NLS_LANG=.AL32UTF8 ORACLE_PATH="${GITHUB_WORKSPACE}/misc/oracle" sqlplus64 -S system/oracle@//localhost:1521/XEPDB1 @test/ci/init.sql
# Indlæs DDL
NLS_LANG=.AL32UTF8 ORACLE_PATH="${GITHUB_WORKSPACE}/misc/oracle" sqlplus64 -S fire/fire@//localhost:1521/XEPDB1 @sql/ddl.sql
# Indlæs Views
NLS_LANG=.AL32UTF8 ORACLE_PATH="${GITHUB_WORKSPACE}/misc/oracle" sqlplus64 -S fire/fire@//localhost:1521/XEPDB1 @sql/views.sql
# Indlæs testdata
NLS_LANG=.AL32UTF8 ORACLE_PATH="${GITHUB_WORKSPACE}/misc/oracle" sqlplus64 -S fire/fire@//localhost:1521/XEPDB1 @test/sql/testdata.sql
# Indlæst opmålingsdistrikter
Expand Down
1 change: 1 addition & 0 deletions scripts/init-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ echo "Waky waky"

echo exit | ORACLE_PATH=misc/oracle sqlplus -S system/oracle@//localhost:1521/XEPDB1 @test/ci/init.sql
echo exit | ORACLE_PATH=misc/oracle sqlplus -S fire/fire@//localhost:1521/XEPDB1 @sql/ddl.sql
echo exit | ORACLE_PATH=misc/oracle sqlplus -S fire/fire@//localhost:1521/XEPDB1 @sql/views.sql
echo exit | ORACLE_PATH=misc/oracle sqlplus -S fire/fire@//localhost:1521/XEPDB1 @test/sql/testdata.sql

conda deactivate
Expand Down
Loading

0 comments on commit 7c0d22a

Please sign in to comment.